@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
|
@@ -5,30 +5,34 @@ import { APIResource } from '../core/resource';
|
|
|
5
5
|
export class CrossApp extends APIResource {}
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* A cross-app connection definition
|
|
9
9
|
*/
|
|
10
|
-
export interface
|
|
11
|
-
|
|
12
|
-
}
|
|
10
|
+
export interface CrossAppConnection {
|
|
11
|
+
provider_app_custom_api_url: string | null;
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
export interface Connection {
|
|
16
|
-
provider_app_custom_api_url: string | null;
|
|
13
|
+
provider_app_custom_auth_authorize_url: string | null;
|
|
17
14
|
|
|
18
|
-
|
|
15
|
+
provider_app_custom_auth_transact_url: string | null;
|
|
19
16
|
|
|
20
|
-
|
|
17
|
+
provider_app_icon_url: string | null;
|
|
21
18
|
|
|
22
|
-
|
|
19
|
+
provider_app_id: string;
|
|
23
20
|
|
|
24
|
-
|
|
21
|
+
provider_app_name: string;
|
|
25
22
|
|
|
26
|
-
|
|
23
|
+
read_only: boolean;
|
|
24
|
+
}
|
|
27
25
|
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
/**
|
|
27
|
+
* The response for getting the list of cross-app connections.
|
|
28
|
+
*/
|
|
29
|
+
export interface CrossAppConnectionsResponse {
|
|
30
|
+
connections: Array<CrossAppConnection>;
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
export declare namespace CrossApp {
|
|
33
|
-
export {
|
|
34
|
+
export {
|
|
35
|
+
type CrossAppConnection as CrossAppConnection,
|
|
36
|
+
type CrossAppConnectionsResponse as CrossAppConnectionsResponse,
|
|
37
|
+
};
|
|
34
38
|
}
|
|
@@ -1,203 +1,299 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as SharedAPI from './shared';
|
|
5
|
+
import * as WalletsAPI from './wallets/wallets';
|
|
4
6
|
|
|
5
7
|
export class EmbeddedWallets extends APIResource {}
|
|
6
8
|
|
|
7
9
|
/**
|
|
8
|
-
* The
|
|
10
|
+
* The configuration object for smart wallets.
|
|
9
11
|
*/
|
|
10
|
-
export
|
|
11
|
-
client_type: 'web' | 'expo-ios';
|
|
12
|
-
}
|
|
12
|
+
export type SmartWalletConfiguration = SmartWalletConfigurationDisabled | SmartWalletConfigurationEnabled;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* The
|
|
15
|
+
* The input configuration object for smart wallets.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
container_identifier: string;
|
|
17
|
+
export type SmartWalletConfigurationInput =
|
|
18
|
+
| SmartWalletConfigurationDisabled
|
|
19
|
+
| SmartWalletConfigurationInputEnabled;
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
/**
|
|
22
|
+
* The supported smart wallet providers.
|
|
23
|
+
*/
|
|
24
|
+
export type SmartWalletType =
|
|
25
|
+
| 'safe'
|
|
26
|
+
| 'kernel'
|
|
27
|
+
| 'light_account'
|
|
28
|
+
| 'biconomy'
|
|
29
|
+
| 'coinbase_smart_wallet'
|
|
30
|
+
| 'thirdweb';
|
|
24
31
|
|
|
25
32
|
/**
|
|
26
|
-
* The
|
|
33
|
+
* The Alchemy paymaster context for a smart wallet network configuration.
|
|
27
34
|
*/
|
|
28
|
-
export interface
|
|
29
|
-
|
|
35
|
+
export interface AlchemyPaymasterContext {
|
|
36
|
+
policy_id: string;
|
|
30
37
|
}
|
|
31
38
|
|
|
32
39
|
/**
|
|
33
|
-
*
|
|
40
|
+
* Network configuration for a smart wallet.
|
|
34
41
|
*/
|
|
35
|
-
export interface
|
|
36
|
-
|
|
42
|
+
export interface SmartWalletNetworkConfiguration {
|
|
43
|
+
bundler_url: string;
|
|
37
44
|
|
|
38
|
-
|
|
45
|
+
chain_id: string;
|
|
39
46
|
|
|
40
|
-
|
|
47
|
+
chain_name?: string;
|
|
41
48
|
|
|
42
|
-
|
|
49
|
+
/**
|
|
50
|
+
* The Alchemy paymaster context for a smart wallet network configuration.
|
|
51
|
+
*/
|
|
52
|
+
paymaster_context?: AlchemyPaymasterContext;
|
|
43
53
|
|
|
44
|
-
|
|
54
|
+
paymaster_url?: string;
|
|
45
55
|
|
|
46
|
-
|
|
47
|
-
| 'user_passcode_derived_recovery_key'
|
|
48
|
-
| 'privy_passcode_derived_recovery_key'
|
|
49
|
-
| 'privy_generated_recovery_key'
|
|
50
|
-
| 'google_drive_recovery_secret'
|
|
51
|
-
| 'icloud_recovery_secret';
|
|
56
|
+
rpc_url?: string;
|
|
52
57
|
}
|
|
53
58
|
|
|
54
59
|
/**
|
|
55
|
-
*
|
|
60
|
+
* Input for network configuration for a smart wallet.
|
|
56
61
|
*/
|
|
57
|
-
export interface
|
|
58
|
-
|
|
59
|
-
}
|
|
62
|
+
export interface SmartWalletNetworkConfigurationInput {
|
|
63
|
+
chain_id: string;
|
|
60
64
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
bundler_url?: string;
|
|
66
|
+
|
|
67
|
+
chain_name?: string;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* The Alchemy paymaster context for a smart wallet network configuration.
|
|
71
|
+
*/
|
|
72
|
+
paymaster_context?: AlchemyPaymasterContext;
|
|
73
|
+
|
|
74
|
+
paymaster_url?: string;
|
|
75
|
+
|
|
76
|
+
rpc_url?: string;
|
|
66
77
|
}
|
|
67
78
|
|
|
68
79
|
/**
|
|
69
|
-
*
|
|
80
|
+
* A disabled smart wallet configuration.
|
|
70
81
|
*/
|
|
71
|
-
export interface
|
|
72
|
-
|
|
82
|
+
export interface SmartWalletConfigurationDisabled {
|
|
83
|
+
enabled: false;
|
|
73
84
|
}
|
|
74
85
|
|
|
75
86
|
/**
|
|
76
|
-
*
|
|
87
|
+
* An enabled smart wallet configuration.
|
|
77
88
|
*/
|
|
78
|
-
export interface
|
|
79
|
-
|
|
89
|
+
export interface SmartWalletConfigurationEnabled {
|
|
90
|
+
configured_networks: Array<SmartWalletNetworkConfiguration>;
|
|
80
91
|
|
|
81
|
-
|
|
92
|
+
enabled: true;
|
|
82
93
|
|
|
83
|
-
|
|
94
|
+
/**
|
|
95
|
+
* The supported smart wallet providers.
|
|
96
|
+
*/
|
|
97
|
+
smart_wallet_type: SmartWalletType;
|
|
84
98
|
|
|
85
|
-
|
|
99
|
+
smart_wallet_version?: string;
|
|
86
100
|
}
|
|
87
101
|
|
|
88
102
|
/**
|
|
89
|
-
*
|
|
103
|
+
* An enabled smart wallet configuration input.
|
|
90
104
|
*/
|
|
91
|
-
export
|
|
92
|
-
|
|
93
|
-
| SmartWalletConfiguration.UnionMember1;
|
|
105
|
+
export interface SmartWalletConfigurationInputEnabled {
|
|
106
|
+
configured_networks: Array<SmartWalletNetworkConfigurationInput>;
|
|
94
107
|
|
|
95
|
-
|
|
96
|
-
export interface Enabled {
|
|
97
|
-
enabled: false;
|
|
98
|
-
}
|
|
108
|
+
enabled: true;
|
|
99
109
|
|
|
100
|
-
|
|
101
|
-
|
|
110
|
+
/**
|
|
111
|
+
* The supported smart wallet providers.
|
|
112
|
+
*/
|
|
113
|
+
smart_wallet_type: SmartWalletType;
|
|
102
114
|
|
|
103
|
-
|
|
115
|
+
smart_wallet_version?: string | null;
|
|
116
|
+
}
|
|
104
117
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
118
|
+
/**
|
|
119
|
+
* The type of recovery mechanism used for wallet recovery.
|
|
120
|
+
*/
|
|
121
|
+
export type RecoveryType =
|
|
122
|
+
| 'user_passcode_derived_recovery_key'
|
|
123
|
+
| 'privy_passcode_derived_recovery_key'
|
|
124
|
+
| 'privy_generated_recovery_key'
|
|
125
|
+
| 'google_drive_recovery_secret'
|
|
126
|
+
| 'icloud_recovery_secret';
|
|
112
127
|
|
|
113
|
-
|
|
114
|
-
|
|
128
|
+
/**
|
|
129
|
+
* The client type for iCloud recovery operations.
|
|
130
|
+
*/
|
|
131
|
+
export type ICloudClientType = 'web' | 'expo-ios';
|
|
115
132
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
133
|
+
/**
|
|
134
|
+
* The input for getting the recovery key material.
|
|
135
|
+
*/
|
|
136
|
+
export interface RecoveryKeyMaterialInput {
|
|
137
|
+
chain_type?: string;
|
|
138
|
+
}
|
|
119
139
|
|
|
120
|
-
|
|
140
|
+
/**
|
|
141
|
+
* The response containing the recovery key material.
|
|
142
|
+
*/
|
|
143
|
+
export interface RecoveryKeyMaterialResponse {
|
|
144
|
+
file_id: string;
|
|
121
145
|
|
|
122
|
-
|
|
146
|
+
icloud_record_name: string;
|
|
123
147
|
|
|
124
|
-
|
|
148
|
+
recovery_code: string;
|
|
125
149
|
|
|
126
|
-
|
|
150
|
+
recovery_key: string;
|
|
127
151
|
|
|
128
|
-
|
|
129
|
-
}
|
|
152
|
+
recovery_key_derivation_salt: string;
|
|
130
153
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
}
|
|
154
|
+
/**
|
|
155
|
+
* The type of recovery mechanism used for wallet recovery.
|
|
156
|
+
*/
|
|
157
|
+
recovery_type: RecoveryType;
|
|
137
158
|
}
|
|
138
159
|
|
|
139
160
|
/**
|
|
140
|
-
* The input
|
|
161
|
+
* The input for initiating an OAuth recovery flow.
|
|
141
162
|
*/
|
|
142
|
-
export
|
|
143
|
-
|
|
144
|
-
| SmartWalletConfigurationInput.UnionMember1;
|
|
163
|
+
export interface OAuthInitRecoveryInput {
|
|
164
|
+
redirect_to: string;
|
|
145
165
|
|
|
146
|
-
|
|
147
|
-
export interface Enabled {
|
|
148
|
-
enabled: false;
|
|
149
|
-
}
|
|
166
|
+
token?: string;
|
|
150
167
|
|
|
151
|
-
|
|
152
|
-
configured_networks: Array<UnionMember1.ConfiguredNetwork>;
|
|
168
|
+
code_challenge?: string;
|
|
153
169
|
|
|
154
|
-
|
|
170
|
+
state_code?: string;
|
|
171
|
+
}
|
|
155
172
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
| 'thirdweb';
|
|
173
|
+
/**
|
|
174
|
+
* The response from authenticating with OAuth for recovery.
|
|
175
|
+
*/
|
|
176
|
+
export interface OAuthAuthenticateRecoveryResponse {
|
|
177
|
+
access_token: string;
|
|
178
|
+
}
|
|
163
179
|
|
|
164
|
-
|
|
165
|
-
|
|
180
|
+
/**
|
|
181
|
+
* The input for initiating an iCloud OAuth recovery flow.
|
|
182
|
+
*/
|
|
183
|
+
export interface OAuthInitICloudRecoveryInput {
|
|
184
|
+
/**
|
|
185
|
+
* The client type for iCloud recovery operations.
|
|
186
|
+
*/
|
|
187
|
+
client_type: ICloudClientType;
|
|
188
|
+
}
|
|
166
189
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
190
|
+
/**
|
|
191
|
+
* The input for the iCloud Expo OAuth callback.
|
|
192
|
+
*/
|
|
193
|
+
export interface OAuthCallbackICloudExpoInput {
|
|
194
|
+
ckWebAuthToken: string;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* The input for getting the iCloud recovery configuration.
|
|
199
|
+
*/
|
|
200
|
+
export interface RecoveryConfigurationICloudInput {
|
|
201
|
+
/**
|
|
202
|
+
* The client type for iCloud recovery operations.
|
|
203
|
+
*/
|
|
204
|
+
client_type: ICloudClientType;
|
|
205
|
+
}
|
|
170
206
|
|
|
171
|
-
|
|
207
|
+
/**
|
|
208
|
+
* The response containing the iCloud recovery configuration.
|
|
209
|
+
*/
|
|
210
|
+
export interface RecoveryConfigurationICloudResponse {
|
|
211
|
+
api_token: string;
|
|
172
212
|
|
|
173
|
-
|
|
213
|
+
container_identifier: string;
|
|
174
214
|
|
|
175
|
-
|
|
215
|
+
environment: string;
|
|
216
|
+
}
|
|
176
217
|
|
|
177
|
-
|
|
218
|
+
/**
|
|
219
|
+
* An additional signer configuration for a wallet.
|
|
220
|
+
*/
|
|
221
|
+
export interface WalletCreationAdditionalSignerItem {
|
|
222
|
+
/**
|
|
223
|
+
* A unique identifier for a key quorum.
|
|
224
|
+
*/
|
|
225
|
+
signer_id: SharedAPI.KeyQuorumID;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* The array of policy IDs that will be applied to wallet requests. If specified,
|
|
229
|
+
* this will override the base policy IDs set on the wallet. Currently, only one
|
|
230
|
+
* policy is supported per signer.
|
|
231
|
+
*/
|
|
232
|
+
override_policy_ids?: Array<string>;
|
|
233
|
+
}
|
|
178
234
|
|
|
179
|
-
|
|
180
|
-
|
|
235
|
+
/**
|
|
236
|
+
* The fields on wallet creation that can be specified when creating a
|
|
237
|
+
* user-controlled embedded server wallet.
|
|
238
|
+
*/
|
|
239
|
+
export interface WalletCreationInput {
|
|
240
|
+
/**
|
|
241
|
+
* The wallet chain types.
|
|
242
|
+
*/
|
|
243
|
+
chain_type: WalletsAPI.WalletChainType;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Additional signers for the wallet.
|
|
247
|
+
*/
|
|
248
|
+
additional_signers?: Array<WalletCreationAdditionalSignerItem>;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Create a smart wallet with this wallet as the signer. Only supported for wallets
|
|
252
|
+
* with `chain_type: "ethereum"`.
|
|
253
|
+
*/
|
|
254
|
+
create_smart_wallet?: boolean;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Policy IDs to enforce on the wallet. Currently, only one policy is supported per
|
|
258
|
+
* wallet.
|
|
259
|
+
*/
|
|
260
|
+
policy_ids?: Array<string>;
|
|
261
|
+
}
|
|
181
262
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
263
|
+
/**
|
|
264
|
+
* The fields describing embedded wallet creation, used for user import and
|
|
265
|
+
* embedded wallet generation.
|
|
266
|
+
*/
|
|
267
|
+
export interface EmbeddedWalletCreationInput {
|
|
268
|
+
/**
|
|
269
|
+
* Wallets to create.
|
|
270
|
+
*/
|
|
271
|
+
wallets?: Array<WalletCreationInput>;
|
|
188
272
|
}
|
|
189
273
|
|
|
190
274
|
export declare namespace EmbeddedWallets {
|
|
191
275
|
export {
|
|
192
|
-
type RecoveryConfigurationICloudRequestBody as RecoveryConfigurationICloudRequestBody,
|
|
193
|
-
type RecoveryConfigurationICloudResponseBody as RecoveryConfigurationICloudResponseBody,
|
|
194
|
-
type RecoveryKeyMaterialRequestBody as RecoveryKeyMaterialRequestBody,
|
|
195
|
-
type RecoveryKeyMaterialResponseBody as RecoveryKeyMaterialResponseBody,
|
|
196
|
-
type RecoveryOAuthAuthenticateResponseBody as RecoveryOAuthAuthenticateResponseBody,
|
|
197
|
-
type RecoveryOAuthCallbackICloudExpoRequestBody as RecoveryOAuthCallbackICloudExpoRequestBody,
|
|
198
|
-
type RecoveryOAuthInitICloudRequestBody as RecoveryOAuthInitICloudRequestBody,
|
|
199
|
-
type RecoveryOAuthInitRequestBody as RecoveryOAuthInitRequestBody,
|
|
200
276
|
type SmartWalletConfiguration as SmartWalletConfiguration,
|
|
201
277
|
type SmartWalletConfigurationInput as SmartWalletConfigurationInput,
|
|
278
|
+
type SmartWalletType as SmartWalletType,
|
|
279
|
+
type AlchemyPaymasterContext as AlchemyPaymasterContext,
|
|
280
|
+
type SmartWalletNetworkConfiguration as SmartWalletNetworkConfiguration,
|
|
281
|
+
type SmartWalletNetworkConfigurationInput as SmartWalletNetworkConfigurationInput,
|
|
282
|
+
type SmartWalletConfigurationDisabled as SmartWalletConfigurationDisabled,
|
|
283
|
+
type SmartWalletConfigurationEnabled as SmartWalletConfigurationEnabled,
|
|
284
|
+
type SmartWalletConfigurationInputEnabled as SmartWalletConfigurationInputEnabled,
|
|
285
|
+
type RecoveryType as RecoveryType,
|
|
286
|
+
type ICloudClientType as ICloudClientType,
|
|
287
|
+
type RecoveryKeyMaterialInput as RecoveryKeyMaterialInput,
|
|
288
|
+
type RecoveryKeyMaterialResponse as RecoveryKeyMaterialResponse,
|
|
289
|
+
type OAuthInitRecoveryInput as OAuthInitRecoveryInput,
|
|
290
|
+
type OAuthAuthenticateRecoveryResponse as OAuthAuthenticateRecoveryResponse,
|
|
291
|
+
type OAuthInitICloudRecoveryInput as OAuthInitICloudRecoveryInput,
|
|
292
|
+
type OAuthCallbackICloudExpoInput as OAuthCallbackICloudExpoInput,
|
|
293
|
+
type RecoveryConfigurationICloudInput as RecoveryConfigurationICloudInput,
|
|
294
|
+
type RecoveryConfigurationICloudResponse as RecoveryConfigurationICloudResponse,
|
|
295
|
+
type WalletCreationAdditionalSignerItem as WalletCreationAdditionalSignerItem,
|
|
296
|
+
type WalletCreationInput as WalletCreationInput,
|
|
297
|
+
type EmbeddedWalletCreationInput as EmbeddedWalletCreationInput,
|
|
202
298
|
};
|
|
203
299
|
}
|