@privy-io/api-types 0.6.1 → 0.8.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/CHANGELOG.md +72 -0
- package/client.d.mts +53 -29
- package/client.d.mts.map +1 -1
- package/client.d.ts +53 -29
- package/client.d.ts.map +1 -1
- package/client.js +32 -7
- package/client.js.map +1 -1
- package/client.mjs +34 -9
- package/client.mjs.map +1 -1
- package/package.json +12 -1
- package/resources/accounts.d.mts +146 -4
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +146 -4
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs.map +1 -1
- package/resources/aggregations.d.mts +18 -392
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +18 -392
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/aggregations.js.map +1 -1
- package/resources/aggregations.mjs.map +1 -1
- package/resources/apps.d.mts +197 -70
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +197 -70
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs.map +1 -1
- package/resources/client-auth.d.mts +975 -463
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +975 -463
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/client-auth.js.map +1 -1
- package/resources/client-auth.mjs.map +1 -1
- package/resources/cross-app.d.mts +14 -13
- package/resources/cross-app.d.mts.map +1 -1
- package/resources/cross-app.d.ts +14 -13
- package/resources/cross-app.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +165 -81
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +165 -81
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/embedded-wallets.js.map +1 -1
- package/resources/embedded-wallets.mjs.map +1 -1
- package/resources/funding.d.mts +150 -64
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +150 -64
- package/resources/funding.d.ts.map +1 -1
- package/resources/funding.js.map +1 -1
- package/resources/funding.mjs.map +1 -1
- package/resources/index.d.mts +18 -14
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +18 -14
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +6 -2
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +446 -31
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +446 -31
- package/resources/intents.d.ts.map +1 -1
- package/resources/intents.js.map +1 -1
- package/resources/intents.mjs.map +1 -1
- package/resources/key-quorums.d.mts +108 -17
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +108 -17
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.js +26 -9
- package/resources/key-quorums.js.map +1 -1
- package/resources/key-quorums.mjs +26 -9
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/kraken-embed.d.mts +62 -0
- package/resources/kraken-embed.d.mts.map +1 -0
- package/resources/kraken-embed.d.ts +62 -0
- package/resources/kraken-embed.d.ts.map +1 -0
- package/resources/kraken-embed.js +9 -0
- package/resources/kraken-embed.js.map +1 -0
- package/resources/kraken-embed.mjs +5 -0
- package/resources/kraken-embed.mjs.map +1 -0
- package/resources/policies.d.mts +342 -926
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +342 -926
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +51 -41
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +51 -41
- package/resources/policies.mjs.map +1 -1
- package/resources/shared.d.mts +59 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +59 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +9 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +5 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/swaps.d.mts +108 -0
- package/resources/swaps.d.mts.map +1 -0
- package/resources/swaps.d.ts +108 -0
- package/resources/swaps.d.ts.map +1 -0
- package/resources/swaps.js +9 -0
- package/resources/swaps.js.map +1 -0
- package/resources/swaps.mjs +5 -0
- package/resources/swaps.mjs.map +1 -0
- package/resources/transactions.d.mts +158 -93
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +158 -93
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js +3 -0
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs +3 -0
- package/resources/transactions.mjs.map +1 -1
- package/resources/users.d.mts +64 -94
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +64 -94
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +3 -0
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +3 -0
- package/resources/users.mjs.map +1 -1
- package/resources/wallet-actions.d.mts +187 -0
- package/resources/wallet-actions.d.mts.map +1 -0
- package/resources/wallet-actions.d.ts +187 -0
- package/resources/wallet-actions.d.ts.map +1 -0
- package/resources/wallet-actions.js +9 -0
- package/resources/wallet-actions.js.map +1 -0
- package/resources/wallet-actions.mjs +5 -0
- package/resources/wallet-actions.mjs.map +1 -0
- package/resources/wallets/balance.d.mts +7 -4
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +7 -4
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.js +3 -0
- package/resources/wallets/balance.js.map +1 -1
- package/resources/wallets/balance.mjs +3 -0
- package/resources/wallets/balance.mjs.map +1 -1
- package/resources/wallets/index.d.mts +1 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +1 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +10 -6
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +10 -6
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js +3 -0
- package/resources/wallets/transactions.js.map +1 -1
- package/resources/wallets/transactions.mjs +3 -0
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +2399 -936
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +2399 -936
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +28 -10
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +28 -10
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +780 -339
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +780 -339
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/yield.d.mts +50 -9
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +50 -9
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +884 -99
- package/src/resources/accounts.ts +179 -3
- package/src/resources/aggregations.ts +18 -702
- package/src/resources/apps.ts +250 -85
- package/src/resources/client-auth.ts +1453 -786
- package/src/resources/cross-app.ts +19 -15
- package/src/resources/embedded-wallets.ts +219 -123
- package/src/resources/funding.ts +263 -173
- package/src/resources/index.ts +444 -61
- package/src/resources/intents.ts +575 -37
- package/src/resources/key-quorums.ts +137 -21
- package/src/resources/kraken-embed.ts +85 -0
- package/src/resources/policies.ts +582 -1550
- package/src/resources/shared.ts +79 -0
- package/src/resources/swaps.ts +136 -0
- package/src/resources/transactions.ts +188 -91
- package/src/resources/users.ts +82 -132
- package/src/resources/wallet-actions.ts +251 -0
- package/src/resources/wallets/balance.ts +9 -2
- package/src/resources/wallets/index.ts +146 -16
- package/src/resources/wallets/transactions.ts +12 -4
- package/src/resources/wallets/wallets.ts +2922 -974
- package/src/resources/webhooks.ts +970 -454
- package/src/resources/yield.ts +68 -10
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,125 +1,209 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as SharedAPI from "./shared.js";
|
|
3
|
+
import * as WalletsAPI from "./wallets/wallets.js";
|
|
2
4
|
export declare class EmbeddedWallets extends APIResource {
|
|
3
5
|
}
|
|
4
6
|
/**
|
|
5
|
-
* The
|
|
7
|
+
* The configuration object for smart wallets.
|
|
8
|
+
*/
|
|
9
|
+
export type SmartWalletConfiguration = SmartWalletConfigurationDisabled | SmartWalletConfigurationEnabled;
|
|
10
|
+
/**
|
|
11
|
+
* The input configuration object for smart wallets.
|
|
6
12
|
*/
|
|
7
|
-
export
|
|
8
|
-
|
|
13
|
+
export type SmartWalletConfigurationInput = SmartWalletConfigurationDisabled | SmartWalletConfigurationInputEnabled;
|
|
14
|
+
/**
|
|
15
|
+
* The supported smart wallet providers.
|
|
16
|
+
*/
|
|
17
|
+
export type SmartWalletType = 'safe' | 'kernel' | 'light_account' | 'biconomy' | 'coinbase_smart_wallet' | 'thirdweb';
|
|
18
|
+
/**
|
|
19
|
+
* The Alchemy paymaster context for a smart wallet network configuration.
|
|
20
|
+
*/
|
|
21
|
+
export interface AlchemyPaymasterContext {
|
|
22
|
+
policy_id: string;
|
|
9
23
|
}
|
|
10
24
|
/**
|
|
11
|
-
*
|
|
25
|
+
* Network configuration for a smart wallet.
|
|
12
26
|
*/
|
|
13
|
-
export interface
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
27
|
+
export interface SmartWalletNetworkConfiguration {
|
|
28
|
+
bundler_url: string;
|
|
29
|
+
chain_id: string;
|
|
30
|
+
chain_name?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The Alchemy paymaster context for a smart wallet network configuration.
|
|
33
|
+
*/
|
|
34
|
+
paymaster_context?: AlchemyPaymasterContext;
|
|
35
|
+
paymaster_url?: string;
|
|
36
|
+
rpc_url?: string;
|
|
17
37
|
}
|
|
18
38
|
/**
|
|
19
|
-
*
|
|
39
|
+
* Input for network configuration for a smart wallet.
|
|
40
|
+
*/
|
|
41
|
+
export interface SmartWalletNetworkConfigurationInput {
|
|
42
|
+
chain_id: string;
|
|
43
|
+
bundler_url?: string;
|
|
44
|
+
chain_name?: string;
|
|
45
|
+
/**
|
|
46
|
+
* The Alchemy paymaster context for a smart wallet network configuration.
|
|
47
|
+
*/
|
|
48
|
+
paymaster_context?: AlchemyPaymasterContext;
|
|
49
|
+
paymaster_url?: string;
|
|
50
|
+
rpc_url?: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* A disabled smart wallet configuration.
|
|
54
|
+
*/
|
|
55
|
+
export interface SmartWalletConfigurationDisabled {
|
|
56
|
+
enabled: false;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* An enabled smart wallet configuration.
|
|
60
|
+
*/
|
|
61
|
+
export interface SmartWalletConfigurationEnabled {
|
|
62
|
+
configured_networks: Array<SmartWalletNetworkConfiguration>;
|
|
63
|
+
enabled: true;
|
|
64
|
+
/**
|
|
65
|
+
* The supported smart wallet providers.
|
|
66
|
+
*/
|
|
67
|
+
smart_wallet_type: SmartWalletType;
|
|
68
|
+
smart_wallet_version?: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* An enabled smart wallet configuration input.
|
|
72
|
+
*/
|
|
73
|
+
export interface SmartWalletConfigurationInputEnabled {
|
|
74
|
+
configured_networks: Array<SmartWalletNetworkConfigurationInput>;
|
|
75
|
+
enabled: true;
|
|
76
|
+
/**
|
|
77
|
+
* The supported smart wallet providers.
|
|
78
|
+
*/
|
|
79
|
+
smart_wallet_type: SmartWalletType;
|
|
80
|
+
smart_wallet_version?: string | null;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The type of recovery mechanism used for wallet recovery.
|
|
84
|
+
*/
|
|
85
|
+
export type RecoveryType = 'user_passcode_derived_recovery_key' | 'privy_passcode_derived_recovery_key' | 'privy_generated_recovery_key' | 'google_drive_recovery_secret' | 'icloud_recovery_secret';
|
|
86
|
+
/**
|
|
87
|
+
* The client type for iCloud recovery operations.
|
|
20
88
|
*/
|
|
21
|
-
export
|
|
89
|
+
export type ICloudClientType = 'web' | 'expo-ios';
|
|
90
|
+
/**
|
|
91
|
+
* The input for getting the recovery key material.
|
|
92
|
+
*/
|
|
93
|
+
export interface RecoveryKeyMaterialInput {
|
|
22
94
|
chain_type?: string;
|
|
23
95
|
}
|
|
24
96
|
/**
|
|
25
|
-
* The response
|
|
97
|
+
* The response containing the recovery key material.
|
|
26
98
|
*/
|
|
27
|
-
export interface
|
|
99
|
+
export interface RecoveryKeyMaterialResponse {
|
|
28
100
|
file_id: string;
|
|
29
101
|
icloud_record_name: string;
|
|
30
102
|
recovery_code: string;
|
|
31
103
|
recovery_key: string;
|
|
32
104
|
recovery_key_derivation_salt: string;
|
|
33
|
-
|
|
105
|
+
/**
|
|
106
|
+
* The type of recovery mechanism used for wallet recovery.
|
|
107
|
+
*/
|
|
108
|
+
recovery_type: RecoveryType;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* The input for initiating an OAuth recovery flow.
|
|
112
|
+
*/
|
|
113
|
+
export interface OAuthInitRecoveryInput {
|
|
114
|
+
redirect_to: string;
|
|
115
|
+
token?: string;
|
|
116
|
+
code_challenge?: string;
|
|
117
|
+
state_code?: string;
|
|
34
118
|
}
|
|
35
119
|
/**
|
|
36
|
-
* The response
|
|
120
|
+
* The response from authenticating with OAuth for recovery.
|
|
37
121
|
*/
|
|
38
|
-
export interface
|
|
122
|
+
export interface OAuthAuthenticateRecoveryResponse {
|
|
39
123
|
access_token: string;
|
|
40
124
|
}
|
|
41
125
|
/**
|
|
42
|
-
* The
|
|
126
|
+
* The input for initiating an iCloud OAuth recovery flow.
|
|
127
|
+
*/
|
|
128
|
+
export interface OAuthInitICloudRecoveryInput {
|
|
129
|
+
/**
|
|
130
|
+
* The client type for iCloud recovery operations.
|
|
131
|
+
*/
|
|
132
|
+
client_type: ICloudClientType;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* The input for the iCloud Expo OAuth callback.
|
|
43
136
|
*/
|
|
44
|
-
export interface
|
|
137
|
+
export interface OAuthCallbackICloudExpoInput {
|
|
45
138
|
ckWebAuthToken: string;
|
|
46
139
|
}
|
|
47
140
|
/**
|
|
48
|
-
* The
|
|
141
|
+
* The input for getting the iCloud recovery configuration.
|
|
49
142
|
*/
|
|
50
|
-
export interface
|
|
51
|
-
|
|
143
|
+
export interface RecoveryConfigurationICloudInput {
|
|
144
|
+
/**
|
|
145
|
+
* The client type for iCloud recovery operations.
|
|
146
|
+
*/
|
|
147
|
+
client_type: ICloudClientType;
|
|
52
148
|
}
|
|
53
149
|
/**
|
|
54
|
-
* The
|
|
150
|
+
* The response containing the iCloud recovery configuration.
|
|
55
151
|
*/
|
|
56
|
-
export interface
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
state_code?: string;
|
|
152
|
+
export interface RecoveryConfigurationICloudResponse {
|
|
153
|
+
api_token: string;
|
|
154
|
+
container_identifier: string;
|
|
155
|
+
environment: string;
|
|
61
156
|
}
|
|
62
157
|
/**
|
|
63
|
-
*
|
|
158
|
+
* An additional signer configuration for a wallet.
|
|
64
159
|
*/
|
|
65
|
-
export
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
namespace UnionMember1 {
|
|
77
|
-
interface ConfiguredNetwork {
|
|
78
|
-
bundler_url: string;
|
|
79
|
-
chain_id: string;
|
|
80
|
-
chain_name?: string;
|
|
81
|
-
paymaster_context?: ConfiguredNetwork.PaymasterContext;
|
|
82
|
-
paymaster_url?: string;
|
|
83
|
-
rpc_url?: string;
|
|
84
|
-
}
|
|
85
|
-
namespace ConfiguredNetwork {
|
|
86
|
-
interface PaymasterContext {
|
|
87
|
-
policy_id: string;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
160
|
+
export interface WalletCreationAdditionalSignerItem {
|
|
161
|
+
/**
|
|
162
|
+
* A unique identifier for a key quorum.
|
|
163
|
+
*/
|
|
164
|
+
signer_id: SharedAPI.KeyQuorumID;
|
|
165
|
+
/**
|
|
166
|
+
* The array of policy IDs that will be applied to wallet requests. If specified,
|
|
167
|
+
* this will override the base policy IDs set on the wallet. Currently, only one
|
|
168
|
+
* policy is supported per signer.
|
|
169
|
+
*/
|
|
170
|
+
override_policy_ids?: Array<string>;
|
|
91
171
|
}
|
|
92
172
|
/**
|
|
93
|
-
* The
|
|
173
|
+
* The fields on wallet creation that can be specified when creating a
|
|
174
|
+
* user-controlled embedded server wallet.
|
|
175
|
+
*/
|
|
176
|
+
export interface WalletCreationInput {
|
|
177
|
+
/**
|
|
178
|
+
* The wallet chain types.
|
|
179
|
+
*/
|
|
180
|
+
chain_type: WalletsAPI.WalletChainType;
|
|
181
|
+
/**
|
|
182
|
+
* Additional signers for the wallet.
|
|
183
|
+
*/
|
|
184
|
+
additional_signers?: Array<WalletCreationAdditionalSignerItem>;
|
|
185
|
+
/**
|
|
186
|
+
* Create a smart wallet with this wallet as the signer. Only supported for wallets
|
|
187
|
+
* with `chain_type: "ethereum"`.
|
|
188
|
+
*/
|
|
189
|
+
create_smart_wallet?: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* Policy IDs to enforce on the wallet. Currently, only one policy is supported per
|
|
192
|
+
* wallet.
|
|
193
|
+
*/
|
|
194
|
+
policy_ids?: Array<string>;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* The fields describing embedded wallet creation, used for user import and
|
|
198
|
+
* embedded wallet generation.
|
|
94
199
|
*/
|
|
95
|
-
export
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
interface UnionMember1 {
|
|
101
|
-
configured_networks: Array<UnionMember1.ConfiguredNetwork>;
|
|
102
|
-
enabled: true;
|
|
103
|
-
smart_wallet_type: 'safe' | 'kernel' | 'light_account' | 'biconomy' | 'coinbase_smart_wallet' | 'thirdweb';
|
|
104
|
-
smart_wallet_version?: string | null;
|
|
105
|
-
}
|
|
106
|
-
namespace UnionMember1 {
|
|
107
|
-
interface ConfiguredNetwork {
|
|
108
|
-
chain_id: string;
|
|
109
|
-
bundler_url?: string;
|
|
110
|
-
chain_name?: string;
|
|
111
|
-
paymaster_context?: ConfiguredNetwork.PaymasterContext;
|
|
112
|
-
paymaster_url?: string;
|
|
113
|
-
rpc_url?: string;
|
|
114
|
-
}
|
|
115
|
-
namespace ConfiguredNetwork {
|
|
116
|
-
interface PaymasterContext {
|
|
117
|
-
policy_id: string;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
200
|
+
export interface EmbeddedWalletCreationInput {
|
|
201
|
+
/**
|
|
202
|
+
* Wallets to create.
|
|
203
|
+
*/
|
|
204
|
+
wallets?: Array<WalletCreationInput>;
|
|
121
205
|
}
|
|
122
206
|
export declare namespace EmbeddedWallets {
|
|
123
|
-
export { type
|
|
207
|
+
export { type SmartWalletConfiguration as SmartWalletConfiguration, type SmartWalletConfigurationInput as SmartWalletConfigurationInput, type SmartWalletType as SmartWalletType, type AlchemyPaymasterContext as AlchemyPaymasterContext, type SmartWalletNetworkConfiguration as SmartWalletNetworkConfiguration, type SmartWalletNetworkConfigurationInput as SmartWalletNetworkConfigurationInput, type SmartWalletConfigurationDisabled as SmartWalletConfigurationDisabled, type SmartWalletConfigurationEnabled as SmartWalletConfigurationEnabled, type SmartWalletConfigurationInputEnabled as SmartWalletConfigurationInputEnabled, type RecoveryType as RecoveryType, type ICloudClientType as ICloudClientType, type RecoveryKeyMaterialInput as RecoveryKeyMaterialInput, type RecoveryKeyMaterialResponse as RecoveryKeyMaterialResponse, type OAuthInitRecoveryInput as OAuthInitRecoveryInput, type OAuthAuthenticateRecoveryResponse as OAuthAuthenticateRecoveryResponse, type OAuthInitICloudRecoveryInput as OAuthInitICloudRecoveryInput, type OAuthCallbackICloudExpoInput as OAuthCallbackICloudExpoInput, type RecoveryConfigurationICloudInput as RecoveryConfigurationICloudInput, type RecoveryConfigurationICloudResponse as RecoveryConfigurationICloudResponse, type WalletCreationAdditionalSignerItem as WalletCreationAdditionalSignerItem, type WalletCreationInput as WalletCreationInput, type EmbeddedWalletCreationInput as EmbeddedWalletCreationInput, };
|
|
124
208
|
}
|
|
125
209
|
//# sourceMappingURL=embedded-wallets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embedded-wallets.d.ts","sourceRoot":"","sources":["../src/resources/embedded-wallets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,eAAgB,SAAQ,WAAW;CAAG;AAEnD;;GAEG;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"embedded-wallets.d.ts","sourceRoot":"","sources":["../src/resources/embedded-wallets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,KAAK,UAAU;AAEtB,qBAAa,eAAgB,SAAQ,WAAW;CAAG;AAEnD;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,gCAAgC,GAAG,+BAA+B,CAAC;AAE1G;;GAEG;AACH,MAAM,MAAM,6BAA6B,GACrC,gCAAgC,GAChC,oCAAoC,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,eAAe,GACvB,MAAM,GACN,QAAQ,GACR,eAAe,GACf,UAAU,GACV,uBAAuB,GACvB,UAAU,CAAC;AAEf;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C,WAAW,EAAE,MAAM,CAAC;IAEpB,QAAQ,EAAE,MAAM,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;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O,CAAC;IAE9B;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embedded-wallets.js","sourceRoot":"","sources":["../src/resources/embedded-wallets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"embedded-wallets.js","sourceRoot":"","sources":["../src/resources/embedded-wallets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,eAAgB,SAAQ,sBAAW;CAAG;AAAnD,0CAAmD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embedded-wallets.mjs","sourceRoot":"","sources":["../src/resources/embedded-wallets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"embedded-wallets.mjs","sourceRoot":"","sources":["../src/resources/embedded-wallets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,eAAgB,SAAQ,WAAW;CAAG"}
|
package/resources/funding.d.mts
CHANGED
|
@@ -1,32 +1,11 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as FundingAPI from "./funding.mjs";
|
|
2
3
|
export declare class Funding extends APIResource {
|
|
3
4
|
}
|
|
4
5
|
/**
|
|
5
6
|
* The input for initializing a Coinbase on-ramp session.
|
|
6
7
|
*/
|
|
7
|
-
export type CoinbaseOnRampInitInput =
|
|
8
|
-
export declare namespace CoinbaseOnRampInitInput {
|
|
9
|
-
interface UnionMember0 {
|
|
10
|
-
addresses: Array<UnionMember0.Address>;
|
|
11
|
-
assets?: Array<'eth' | 'ETH' | 'USDC' | 'POL' | 'MON'>;
|
|
12
|
-
}
|
|
13
|
-
namespace UnionMember0 {
|
|
14
|
-
interface Address {
|
|
15
|
-
address: string;
|
|
16
|
-
blockchains: Array<'ethereum' | 'bitcoin' | 'base' | 'avacchain' | 'optimism' | 'solana' | 'polygon' | 'arbitrum' | 'stellar' | 'monad'>;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
interface UnionMember1 {
|
|
20
|
-
addresses: Array<UnionMember1.Address>;
|
|
21
|
-
assets?: Array<'SOL' | 'USDC'>;
|
|
22
|
-
}
|
|
23
|
-
namespace UnionMember1 {
|
|
24
|
-
interface Address {
|
|
25
|
-
address: string;
|
|
26
|
-
blockchains: Array<'ethereum' | 'bitcoin' | 'base' | 'avacchain' | 'optimism' | 'solana' | 'polygon' | 'arbitrum' | 'stellar' | 'monad'>;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
8
|
+
export type CoinbaseOnRampInitInput = CoinbaseOnRampInitEthereumInput | CoinbaseOnRampInitSolanaInput;
|
|
30
9
|
/**
|
|
31
10
|
* The response from initializing a Coinbase on-ramp session.
|
|
32
11
|
*/
|
|
@@ -40,52 +19,25 @@ export interface CoinbaseOnRampInitResponse {
|
|
|
40
19
|
* The response for getting the status of a Coinbase on-ramp session.
|
|
41
20
|
*/
|
|
42
21
|
export interface CoinbaseOnRampStatusResponse {
|
|
43
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Status of a Coinbase on-ramp session.
|
|
24
|
+
*/
|
|
25
|
+
status: CoinbaseOnRampStatus;
|
|
44
26
|
}
|
|
45
27
|
/**
|
|
46
28
|
* The input for signing a Moonpay on-ramp.
|
|
47
29
|
*/
|
|
48
|
-
export type MoonpayOnRampSignInput = MoonpayOnRampSignInput.
|
|
30
|
+
export type MoonpayOnRampSignInput = MoonpayOnRampSignInput.MoonpayFiatOnRampEthereumInput | MoonpayOnRampSignInput.MoonpayFiatOnRampSolanaInput;
|
|
49
31
|
export declare namespace MoonpayOnRampSignInput {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
namespace UnionMember0 {
|
|
56
|
-
interface Config {
|
|
57
|
-
currencyCode?: 'AVAX_CCHAIN' | 'CELO_CELO' | 'CUSD_CELO' | 'DAI_ETHEREUM' | 'ETH_ETHEREUM' | 'ETH_ARBITRUM' | 'ETH_OPTIMISM' | 'ETH_POLYGON' | 'ETH_BASE' | 'FIL_FVM' | 'MATIC_ETHEREUM' | 'MATIC_POLYGON' | 'POL_POLYGON' | 'POL_ETHEREUM' | 'USDC_ETHEREUM' | 'USDC_ARBITRUM' | 'USDC_OPTIMISM' | 'USDC_POLYGON' | 'USDC_BASE' | 'USDC_CCHAIN' | 'USDC_SOL' | 'USDT_ETHEREUM' | 'USDT_POLYGON' | 'WETH_POLYGON' | 'WBTC_ETHEREUM' | 'BNB_BNB' | 'BNB_BSC' | 'MON_MON' | 'CELO' | 'CUSD' | 'DAI' | 'ETH' | 'FIL' | 'MATIC' | 'USDC' | 'USDT' | 'WETH' | 'WBTC';
|
|
58
|
-
email?: string;
|
|
59
|
-
paymentMethod?: 'ach_bank_transfer' | 'credit_debit_card' | 'gbp_bank_transfer' | 'gbp_open_banking_payment' | 'mobile_wallet' | 'sepa_bank_transfer' | 'sepa_open_banking_payment' | 'pix_instant_payment' | 'yellow_card_bank_transfer';
|
|
60
|
-
quoteCurrencyAmount?: number;
|
|
61
|
-
uiConfig?: Config.UiConfig;
|
|
62
|
-
}
|
|
63
|
-
namespace Config {
|
|
64
|
-
interface UiConfig {
|
|
65
|
-
accentColor?: string;
|
|
66
|
-
theme?: 'light' | 'dark';
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
interface UnionMember1 {
|
|
71
|
-
address: string;
|
|
72
|
-
config: UnionMember1.Config;
|
|
73
|
-
useSandbox?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Sandbox configuration for a Moonpay on-ramp.
|
|
34
|
+
*/
|
|
35
|
+
interface MoonpayFiatOnRampEthereumInput extends FundingAPI.MoonpayOnRampSandboxConfig, FundingAPI.MoonpayFiatOnRampEthereumInput {
|
|
74
36
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
paymentMethod?: 'ach_bank_transfer' | 'credit_debit_card' | 'gbp_bank_transfer' | 'gbp_open_banking_payment' | 'mobile_wallet' | 'sepa_bank_transfer' | 'sepa_open_banking_payment' | 'pix_instant_payment' | 'yellow_card_bank_transfer';
|
|
80
|
-
quoteCurrencyAmount?: number;
|
|
81
|
-
uiConfig?: Config.UiConfig;
|
|
82
|
-
}
|
|
83
|
-
namespace Config {
|
|
84
|
-
interface UiConfig {
|
|
85
|
-
accentColor?: string;
|
|
86
|
-
theme?: 'light' | 'dark';
|
|
87
|
-
}
|
|
88
|
-
}
|
|
37
|
+
/**
|
|
38
|
+
* Sandbox configuration for a Moonpay on-ramp.
|
|
39
|
+
*/
|
|
40
|
+
interface MoonpayFiatOnRampSolanaInput extends FundingAPI.MoonpayOnRampSandboxConfig, FundingAPI.MoonpayFiatOnRampSolanaInput {
|
|
89
41
|
}
|
|
90
42
|
}
|
|
91
43
|
/**
|
|
@@ -95,7 +47,141 @@ export interface MoonpayOnRampSignResponse {
|
|
|
95
47
|
externalTransactionId: string;
|
|
96
48
|
signedUrl: string;
|
|
97
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* A blockchain supported by Coinbase on-ramp.
|
|
52
|
+
*/
|
|
53
|
+
export type CoinbaseBlockchain = 'ethereum' | 'bitcoin' | 'base' | 'avacchain' | 'optimism' | 'solana' | 'polygon' | 'arbitrum' | 'stellar' | 'monad';
|
|
54
|
+
/**
|
|
55
|
+
* An Ethereum asset supported by Coinbase on-ramp.
|
|
56
|
+
*/
|
|
57
|
+
export type CoinbaseEthereumAsset = 'eth' | 'ETH' | 'USDC' | 'POL' | 'MON';
|
|
58
|
+
/**
|
|
59
|
+
* A Solana asset supported by Coinbase on-ramp.
|
|
60
|
+
*/
|
|
61
|
+
export type CoinbaseSolanaAsset = 'SOL' | 'USDC';
|
|
62
|
+
/**
|
|
63
|
+
* An Ethereum address with supported blockchains for Coinbase on-ramp.
|
|
64
|
+
*/
|
|
65
|
+
export interface CoinbaseOnRampEthereumAddress {
|
|
66
|
+
address: string;
|
|
67
|
+
blockchains: Array<CoinbaseBlockchain>;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* A Solana address with supported blockchains for Coinbase on-ramp.
|
|
71
|
+
*/
|
|
72
|
+
export interface CoinbaseOnRampSolanaAddress {
|
|
73
|
+
address: string;
|
|
74
|
+
blockchains: Array<CoinbaseBlockchain>;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Input for initializing a Coinbase on-ramp session for Ethereum.
|
|
78
|
+
*/
|
|
79
|
+
export interface CoinbaseOnRampInitEthereumInput {
|
|
80
|
+
addresses: Array<CoinbaseOnRampEthereumAddress>;
|
|
81
|
+
assets?: Array<CoinbaseEthereumAsset>;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Input for initializing a Coinbase on-ramp session for Solana.
|
|
85
|
+
*/
|
|
86
|
+
export interface CoinbaseOnRampInitSolanaInput {
|
|
87
|
+
addresses: Array<CoinbaseOnRampSolanaAddress>;
|
|
88
|
+
assets?: Array<CoinbaseSolanaAsset>;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Status of a Coinbase on-ramp session.
|
|
92
|
+
*/
|
|
93
|
+
export type CoinbaseOnRampStatus = 'pending' | 'success' | 'failure';
|
|
94
|
+
/**
|
|
95
|
+
* A payment method supported by Moonpay on-ramp.
|
|
96
|
+
*/
|
|
97
|
+
export type MoonpayPaymentMethod = 'ach_bank_transfer' | 'credit_debit_card' | 'gbp_bank_transfer' | 'gbp_open_banking_payment' | 'mobile_wallet' | 'sepa_bank_transfer' | 'sepa_open_banking_payment' | 'pix_instant_payment' | 'yellow_card_bank_transfer';
|
|
98
|
+
/**
|
|
99
|
+
* A Moonpay currency code for an Ethereum-compatible chain asset.
|
|
100
|
+
*/
|
|
101
|
+
export type MoonpayCurrencyCode = 'AVAX_CCHAIN' | 'CELO_CELO' | 'CUSD_CELO' | 'DAI_ETHEREUM' | 'ETH_ETHEREUM' | 'ETH_ARBITRUM' | 'ETH_OPTIMISM' | 'ETH_POLYGON' | 'ETH_BASE' | 'FIL_FVM' | 'MATIC_ETHEREUM' | 'MATIC_POLYGON' | 'POL_POLYGON' | 'POL_ETHEREUM' | 'USDC_ETHEREUM' | 'USDC_ARBITRUM' | 'USDC_OPTIMISM' | 'USDC_POLYGON' | 'USDC_BASE' | 'USDC_CCHAIN' | 'USDC_SOL' | 'USDT_ETHEREUM' | 'USDT_POLYGON' | 'WETH_POLYGON' | 'WBTC_ETHEREUM' | 'BNB_BNB' | 'BNB_BSC' | 'MON_MON' | 'CELO' | 'CUSD' | 'DAI' | 'ETH' | 'FIL' | 'MATIC' | 'USDC' | 'USDT' | 'WETH' | 'WBTC';
|
|
102
|
+
/**
|
|
103
|
+
* The theme for the Moonpay on-ramp widget.
|
|
104
|
+
*/
|
|
105
|
+
export type MoonpayUiTheme = 'light' | 'dark';
|
|
106
|
+
/**
|
|
107
|
+
* UI configuration for the Moonpay on-ramp widget.
|
|
108
|
+
*/
|
|
109
|
+
export interface MoonpayUiConfig {
|
|
110
|
+
accentColor?: string;
|
|
111
|
+
/**
|
|
112
|
+
* The theme for the Moonpay on-ramp widget.
|
|
113
|
+
*/
|
|
114
|
+
theme?: MoonpayUiTheme;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* A Moonpay currency code for a Solana asset.
|
|
118
|
+
*/
|
|
119
|
+
export type MoonpaySolanaCurrencyCode = 'SOL' | 'USDC_SOL';
|
|
120
|
+
/**
|
|
121
|
+
* Configuration for a Moonpay fiat on-ramp for an Ethereum-compatible chain.
|
|
122
|
+
*/
|
|
123
|
+
export interface MoonpayFiatOnRampEthereumConfig {
|
|
124
|
+
/**
|
|
125
|
+
* A Moonpay currency code for an Ethereum-compatible chain asset.
|
|
126
|
+
*/
|
|
127
|
+
currencyCode?: MoonpayCurrencyCode;
|
|
128
|
+
email?: string;
|
|
129
|
+
/**
|
|
130
|
+
* A payment method supported by Moonpay on-ramp.
|
|
131
|
+
*/
|
|
132
|
+
paymentMethod?: MoonpayPaymentMethod;
|
|
133
|
+
quoteCurrencyAmount?: number;
|
|
134
|
+
/**
|
|
135
|
+
* UI configuration for the Moonpay on-ramp widget.
|
|
136
|
+
*/
|
|
137
|
+
uiConfig?: MoonpayUiConfig;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Configuration for a Moonpay fiat on-ramp for Solana.
|
|
141
|
+
*/
|
|
142
|
+
export interface MoonpayFiatOnRampSolanaConfig {
|
|
143
|
+
/**
|
|
144
|
+
* A Moonpay currency code for a Solana asset.
|
|
145
|
+
*/
|
|
146
|
+
currencyCode?: MoonpaySolanaCurrencyCode;
|
|
147
|
+
email?: string;
|
|
148
|
+
/**
|
|
149
|
+
* A payment method supported by Moonpay on-ramp.
|
|
150
|
+
*/
|
|
151
|
+
paymentMethod?: MoonpayPaymentMethod;
|
|
152
|
+
quoteCurrencyAmount?: number;
|
|
153
|
+
/**
|
|
154
|
+
* UI configuration for the Moonpay on-ramp widget.
|
|
155
|
+
*/
|
|
156
|
+
uiConfig?: MoonpayUiConfig;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Input for a Moonpay fiat on-ramp for an Ethereum-compatible chain.
|
|
160
|
+
*/
|
|
161
|
+
export interface MoonpayFiatOnRampEthereumInput {
|
|
162
|
+
address: string;
|
|
163
|
+
/**
|
|
164
|
+
* Configuration for a Moonpay fiat on-ramp for an Ethereum-compatible chain.
|
|
165
|
+
*/
|
|
166
|
+
config: MoonpayFiatOnRampEthereumConfig;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Input for a Moonpay fiat on-ramp for Solana.
|
|
170
|
+
*/
|
|
171
|
+
export interface MoonpayFiatOnRampSolanaInput {
|
|
172
|
+
address: string;
|
|
173
|
+
/**
|
|
174
|
+
* Configuration for a Moonpay fiat on-ramp for Solana.
|
|
175
|
+
*/
|
|
176
|
+
config: MoonpayFiatOnRampSolanaConfig;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Sandbox configuration for a Moonpay on-ramp.
|
|
180
|
+
*/
|
|
181
|
+
export interface MoonpayOnRampSandboxConfig {
|
|
182
|
+
useSandbox?: boolean;
|
|
183
|
+
}
|
|
98
184
|
export declare namespace Funding {
|
|
99
|
-
export { type CoinbaseOnRampInitInput as CoinbaseOnRampInitInput, type CoinbaseOnRampInitResponse as CoinbaseOnRampInitResponse, type CoinbaseOnRampStatusResponse as CoinbaseOnRampStatusResponse, type MoonpayOnRampSignInput as MoonpayOnRampSignInput, type MoonpayOnRampSignResponse as MoonpayOnRampSignResponse, };
|
|
185
|
+
export { type CoinbaseOnRampInitInput as CoinbaseOnRampInitInput, type CoinbaseOnRampInitResponse as CoinbaseOnRampInitResponse, type CoinbaseOnRampStatusResponse as CoinbaseOnRampStatusResponse, type MoonpayOnRampSignInput as MoonpayOnRampSignInput, type MoonpayOnRampSignResponse as MoonpayOnRampSignResponse, type CoinbaseBlockchain as CoinbaseBlockchain, type CoinbaseEthereumAsset as CoinbaseEthereumAsset, type CoinbaseSolanaAsset as CoinbaseSolanaAsset, type CoinbaseOnRampEthereumAddress as CoinbaseOnRampEthereumAddress, type CoinbaseOnRampSolanaAddress as CoinbaseOnRampSolanaAddress, type CoinbaseOnRampInitEthereumInput as CoinbaseOnRampInitEthereumInput, type CoinbaseOnRampInitSolanaInput as CoinbaseOnRampInitSolanaInput, type CoinbaseOnRampStatus as CoinbaseOnRampStatus, type MoonpayPaymentMethod as MoonpayPaymentMethod, type MoonpayCurrencyCode as MoonpayCurrencyCode, type MoonpayUiTheme as MoonpayUiTheme, type MoonpayUiConfig as MoonpayUiConfig, type MoonpaySolanaCurrencyCode as MoonpaySolanaCurrencyCode, type MoonpayFiatOnRampEthereumConfig as MoonpayFiatOnRampEthereumConfig, type MoonpayFiatOnRampSolanaConfig as MoonpayFiatOnRampSolanaConfig, type MoonpayFiatOnRampEthereumInput as MoonpayFiatOnRampEthereumInput, type MoonpayFiatOnRampSolanaInput as MoonpayFiatOnRampSolanaInput, type MoonpayOnRampSandboxConfig as MoonpayOnRampSandboxConfig, };
|
|
100
186
|
}
|
|
101
187
|
//# sourceMappingURL=funding.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"funding.d.mts","sourceRoot":"","sources":["../src/resources/funding.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,OAAQ,SAAQ,WAAW;CAAG;AAE3C;;GAEG;AACH,MAAM,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"funding.d.mts","sourceRoot":"","sources":["../src/resources/funding.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;AAEtB,qBAAa,OAAQ,SAAQ,WAAW;CAAG;AAE3C;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,+BAA+B,GAAG,6BAA6B,CAAC;AAEtG;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,MAAM,CAAC;IAEf,UAAU,EAAE,MAAM,CAAC;IAEnB,eAAe,EAAE,MAAM,CAAC;IAExB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,MAAM,EAAE,oBAAoB,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAC9B,sBAAsB,CAAC,8BAA8B,GACrD,sBAAsB,CAAC,4BAA4B,CAAC;AAExD,yBAAiB,sBAAsB,CAAC;IACtC;;OAEG;IACH,UAAiB,8BACf,SAAQ,UAAU,CAAC,0BAA0B,EAC3C,UAAU,CAAC,8BAA8B;KAAG;IAEhD;;OAEG;IACH,UAAiB,4BACf,SAAQ,UAAU,CAAC,0BAA0B,EAC3C,UAAU,CAAC,4BAA4B;KAAG;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,qBAAqB,EAAE,MAAM,CAAC;IAE9B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,UAAU,GACV,SAAS,GACT,MAAM,GACN,WAAW,GACX,UAAU,GACV,QAAQ,GACR,SAAS,GACT,UAAU,GACV,SAAS,GACT,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