@chipi-stack/types 12.1.0 → 12.3.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/index.d.mts CHANGED
@@ -58,7 +58,7 @@ interface DeploymentData {
58
58
  calldata: string[];
59
59
  }
60
60
  interface CreateWalletParams {
61
- encryptKey: string;
61
+ encryptKey?: string;
62
62
  externalUserId: string;
63
63
  userId?: string;
64
64
  /**
@@ -67,6 +67,7 @@ interface CreateWalletParams {
67
67
  * - "ARGENT": Argent X Account v0.4.0
68
68
  */
69
69
  walletType?: WalletType;
70
+ usePasskey?: boolean;
70
71
  }
71
72
  interface CreateWalletResponse {
72
73
  txHash: string;
@@ -103,7 +104,7 @@ interface PrepareWalletCreationParams {
103
104
  apiPublicKey: string;
104
105
  }
105
106
  interface PrepareWalletCreationResponse {
106
- typeData: TypedData;
107
+ typedData: TypedData;
107
108
  accountClassHash: string;
108
109
  }
109
110
  interface CreateCustodialWalletParams {
@@ -115,14 +116,26 @@ interface GetMerchantWalletParams {
115
116
  chain: Chain;
116
117
  orgId: string;
117
118
  }
119
+ interface MigrateWalletToPasskeyParams {
120
+ wallet: WalletData;
121
+ oldEncryptKey: string;
122
+ externalUserId: string;
123
+ }
124
+ interface PasskeyMetadata {
125
+ credentialId: string;
126
+ createdAt: string;
127
+ userId: string;
128
+ prfSupported: boolean;
129
+ }
118
130
 
119
131
  /**
120
132
  * Transaction-related types
121
133
  */
122
134
  interface ExecuteTransactionParams {
123
- encryptKey: string;
135
+ encryptKey?: string;
124
136
  wallet: WalletData;
125
137
  calls: Call[];
138
+ usePasskey?: boolean;
126
139
  }
127
140
  interface Transaction {
128
141
  id: string;
@@ -145,6 +158,10 @@ interface PrepareTypedDataParams {
145
158
  calls: Call[];
146
159
  walletAddress: string;
147
160
  }
161
+ interface PrepareTypedDataResponse {
162
+ typedData: TypedData;
163
+ walletType: WalletType;
164
+ }
148
165
  interface ExecuteSponsoredTransactionParams {
149
166
  calls: Call[];
150
167
  walletAddress: string;
@@ -163,7 +180,7 @@ interface RecordSendTransactionParams {
163
180
  chain: Chain;
164
181
  }
165
182
  interface TransferParams {
166
- encryptKey: string;
183
+ encryptKey?: string;
167
184
  wallet: WalletData;
168
185
  token: ChainToken;
169
186
  otherToken?: {
@@ -172,9 +189,10 @@ interface TransferParams {
172
189
  };
173
190
  recipient: string;
174
191
  amount: string;
192
+ usePasskey?: boolean;
175
193
  }
176
194
  interface TransferHookInput {
177
- encryptKey: string;
195
+ encryptKey?: string;
178
196
  wallet: WalletData;
179
197
  token: ChainToken;
180
198
  otherToken?: {
@@ -183,28 +201,32 @@ interface TransferHookInput {
183
201
  };
184
202
  recipient: string;
185
203
  amount: number;
204
+ usePasskey?: boolean;
186
205
  }
187
206
  interface ApproveParams {
188
- encryptKey: string;
207
+ encryptKey?: string;
189
208
  wallet: WalletData;
190
209
  contractAddress: string;
191
210
  spender: string;
192
211
  amount: string;
193
212
  decimals?: number;
213
+ usePasskey?: boolean;
194
214
  }
195
215
  interface ApproveHookInput {
196
- encryptKey: string;
216
+ encryptKey?: string;
197
217
  wallet: WalletData;
198
218
  contractAddress: string;
199
219
  spender: string;
200
220
  decimals?: number;
201
221
  amount: number;
222
+ usePasskey?: boolean;
202
223
  }
203
224
  interface CallAnyContractParams {
204
- encryptKey: string;
225
+ encryptKey?: string;
205
226
  wallet: WalletData;
206
227
  contractAddress: string;
207
228
  calls: Call[];
229
+ usePasskey?: boolean;
208
230
  }
209
231
  interface GetTransactionsParams {
210
232
  page?: number;
@@ -267,28 +289,32 @@ interface CreateSkuTransactionParams {
267
289
  }
268
290
 
269
291
  interface StakeVesuUsdcHookInputParams {
270
- encryptKey: string;
292
+ encryptKey?: string;
271
293
  wallet: WalletData;
272
294
  amount: number;
273
295
  receiverWallet: string;
296
+ usePasskey?: boolean;
274
297
  }
275
298
  interface StakeVesuUsdcParams {
276
- encryptKey: string;
299
+ encryptKey?: string;
277
300
  wallet: WalletData;
278
301
  amount: string;
279
302
  receiverWallet: string;
303
+ usePasskey?: boolean;
280
304
  }
281
305
  interface WithdrawVesuUsdcParams {
282
- encryptKey: string;
306
+ encryptKey?: string;
283
307
  wallet: WalletData;
284
308
  amount: string;
285
309
  recipient: string;
310
+ usePasskey?: boolean;
286
311
  }
287
312
  interface WithdrawVesuUsdcHookInputParams {
288
- encryptKey: string;
313
+ encryptKey?: string;
289
314
  wallet: WalletData;
290
315
  amount: number;
291
316
  recipient: string;
317
+ usePasskey?: boolean;
292
318
  }
293
319
 
294
320
  /**
@@ -530,4 +556,4 @@ interface SessionWalletData extends WalletData {
530
556
  walletType: WalletType;
531
557
  }
532
558
 
533
- export { type AddSessionKeyParams, type ApiError, type ApiKey, type ApiResponse, type ApproveHookInput, type ApproveParams, type AsyncReturnType, type AuthContext, type CallAnyContractParams, type Chain, type ChainToken, type ChipiBrowserSDKConfig, type ChipiSDKConfig, type ChipiServerSDKConfig, type Country, type CreateCustodialWalletParams, type CreateSessionKeyParams, type CreateSkuTransactionParams, type CreateUserParams, type CreateWalletParams, type CreateWalletResponse, type DeepPartial, type DeploymentData, type ErrorWithCode, type ExecuteSponsoredTransactionParams, type ExecuteSponsoredTransactionResponse, type ExecuteTransactionParams, type ExecuteWithSessionParams, type GetMerchantWalletParams, type GetSessionDataParams, type GetSkuListQuery, type GetTokenBalanceParams, type GetTokenBalanceResponse, type GetTransactionListQuery, type GetTransactionsParams, type GetUserParams, type GetWalletParams, type GetWalletResponse, type JwtPayload, type MaybePromise, type NonEmptyArray, type Optional, type PaginatedResponse, type PaginationQuery, type PrepareTypedDataParams, type PrepareWalletCreationParams, type PrepareWalletCreationResponse, type Prettify, type RecordSendTransactionParams, type RequireAtLeastOne, type RevokeSessionKeyParams, STARKNET_CONTRACTS, type SessionConfig, type SessionDataResponse, type SessionKeyData, type SessionWalletData, type Sku, type SkuCategory, type SkuTransaction, type StakeVesuUsdcHookInputParams, type StakeVesuUsdcParams, type Transaction, type TransferHookInput, type TransferParams, type User, type ValueOrFunction, type WalletData, type WalletType, type WithdrawVesuUsdcHookInputParams, type WithdrawVesuUsdcParams, type alphaUrl };
559
+ export { type AddSessionKeyParams, type ApiError, type ApiKey, type ApiResponse, type ApproveHookInput, type ApproveParams, type AsyncReturnType, type AuthContext, type CallAnyContractParams, type Chain, type ChainToken, type ChipiBrowserSDKConfig, type ChipiSDKConfig, type ChipiServerSDKConfig, type Country, type CreateCustodialWalletParams, type CreateSessionKeyParams, type CreateSkuTransactionParams, type CreateUserParams, type CreateWalletParams, type CreateWalletResponse, type DeepPartial, type DeploymentData, type ErrorWithCode, type ExecuteSponsoredTransactionParams, type ExecuteSponsoredTransactionResponse, type ExecuteTransactionParams, type ExecuteWithSessionParams, type GetMerchantWalletParams, type GetSessionDataParams, type GetSkuListQuery, type GetTokenBalanceParams, type GetTokenBalanceResponse, type GetTransactionListQuery, type GetTransactionsParams, type GetUserParams, type GetWalletParams, type GetWalletResponse, type JwtPayload, type MaybePromise, type MigrateWalletToPasskeyParams, type NonEmptyArray, type Optional, type PaginatedResponse, type PaginationQuery, type PasskeyMetadata, type PrepareTypedDataParams, type PrepareTypedDataResponse, type PrepareWalletCreationParams, type PrepareWalletCreationResponse, type Prettify, type RecordSendTransactionParams, type RequireAtLeastOne, type RevokeSessionKeyParams, STARKNET_CONTRACTS, type SessionConfig, type SessionDataResponse, type SessionKeyData, type SessionWalletData, type Sku, type SkuCategory, type SkuTransaction, type StakeVesuUsdcHookInputParams, type StakeVesuUsdcParams, type Transaction, type TransferHookInput, type TransferParams, type User, type ValueOrFunction, type WalletData, type WalletType, type WithdrawVesuUsdcHookInputParams, type WithdrawVesuUsdcParams, type alphaUrl };
package/dist/index.d.ts CHANGED
@@ -58,7 +58,7 @@ interface DeploymentData {
58
58
  calldata: string[];
59
59
  }
60
60
  interface CreateWalletParams {
61
- encryptKey: string;
61
+ encryptKey?: string;
62
62
  externalUserId: string;
63
63
  userId?: string;
64
64
  /**
@@ -67,6 +67,7 @@ interface CreateWalletParams {
67
67
  * - "ARGENT": Argent X Account v0.4.0
68
68
  */
69
69
  walletType?: WalletType;
70
+ usePasskey?: boolean;
70
71
  }
71
72
  interface CreateWalletResponse {
72
73
  txHash: string;
@@ -103,7 +104,7 @@ interface PrepareWalletCreationParams {
103
104
  apiPublicKey: string;
104
105
  }
105
106
  interface PrepareWalletCreationResponse {
106
- typeData: TypedData;
107
+ typedData: TypedData;
107
108
  accountClassHash: string;
108
109
  }
109
110
  interface CreateCustodialWalletParams {
@@ -115,14 +116,26 @@ interface GetMerchantWalletParams {
115
116
  chain: Chain;
116
117
  orgId: string;
117
118
  }
119
+ interface MigrateWalletToPasskeyParams {
120
+ wallet: WalletData;
121
+ oldEncryptKey: string;
122
+ externalUserId: string;
123
+ }
124
+ interface PasskeyMetadata {
125
+ credentialId: string;
126
+ createdAt: string;
127
+ userId: string;
128
+ prfSupported: boolean;
129
+ }
118
130
 
119
131
  /**
120
132
  * Transaction-related types
121
133
  */
122
134
  interface ExecuteTransactionParams {
123
- encryptKey: string;
135
+ encryptKey?: string;
124
136
  wallet: WalletData;
125
137
  calls: Call[];
138
+ usePasskey?: boolean;
126
139
  }
127
140
  interface Transaction {
128
141
  id: string;
@@ -145,6 +158,10 @@ interface PrepareTypedDataParams {
145
158
  calls: Call[];
146
159
  walletAddress: string;
147
160
  }
161
+ interface PrepareTypedDataResponse {
162
+ typedData: TypedData;
163
+ walletType: WalletType;
164
+ }
148
165
  interface ExecuteSponsoredTransactionParams {
149
166
  calls: Call[];
150
167
  walletAddress: string;
@@ -163,7 +180,7 @@ interface RecordSendTransactionParams {
163
180
  chain: Chain;
164
181
  }
165
182
  interface TransferParams {
166
- encryptKey: string;
183
+ encryptKey?: string;
167
184
  wallet: WalletData;
168
185
  token: ChainToken;
169
186
  otherToken?: {
@@ -172,9 +189,10 @@ interface TransferParams {
172
189
  };
173
190
  recipient: string;
174
191
  amount: string;
192
+ usePasskey?: boolean;
175
193
  }
176
194
  interface TransferHookInput {
177
- encryptKey: string;
195
+ encryptKey?: string;
178
196
  wallet: WalletData;
179
197
  token: ChainToken;
180
198
  otherToken?: {
@@ -183,28 +201,32 @@ interface TransferHookInput {
183
201
  };
184
202
  recipient: string;
185
203
  amount: number;
204
+ usePasskey?: boolean;
186
205
  }
187
206
  interface ApproveParams {
188
- encryptKey: string;
207
+ encryptKey?: string;
189
208
  wallet: WalletData;
190
209
  contractAddress: string;
191
210
  spender: string;
192
211
  amount: string;
193
212
  decimals?: number;
213
+ usePasskey?: boolean;
194
214
  }
195
215
  interface ApproveHookInput {
196
- encryptKey: string;
216
+ encryptKey?: string;
197
217
  wallet: WalletData;
198
218
  contractAddress: string;
199
219
  spender: string;
200
220
  decimals?: number;
201
221
  amount: number;
222
+ usePasskey?: boolean;
202
223
  }
203
224
  interface CallAnyContractParams {
204
- encryptKey: string;
225
+ encryptKey?: string;
205
226
  wallet: WalletData;
206
227
  contractAddress: string;
207
228
  calls: Call[];
229
+ usePasskey?: boolean;
208
230
  }
209
231
  interface GetTransactionsParams {
210
232
  page?: number;
@@ -267,28 +289,32 @@ interface CreateSkuTransactionParams {
267
289
  }
268
290
 
269
291
  interface StakeVesuUsdcHookInputParams {
270
- encryptKey: string;
292
+ encryptKey?: string;
271
293
  wallet: WalletData;
272
294
  amount: number;
273
295
  receiverWallet: string;
296
+ usePasskey?: boolean;
274
297
  }
275
298
  interface StakeVesuUsdcParams {
276
- encryptKey: string;
299
+ encryptKey?: string;
277
300
  wallet: WalletData;
278
301
  amount: string;
279
302
  receiverWallet: string;
303
+ usePasskey?: boolean;
280
304
  }
281
305
  interface WithdrawVesuUsdcParams {
282
- encryptKey: string;
306
+ encryptKey?: string;
283
307
  wallet: WalletData;
284
308
  amount: string;
285
309
  recipient: string;
310
+ usePasskey?: boolean;
286
311
  }
287
312
  interface WithdrawVesuUsdcHookInputParams {
288
- encryptKey: string;
313
+ encryptKey?: string;
289
314
  wallet: WalletData;
290
315
  amount: number;
291
316
  recipient: string;
317
+ usePasskey?: boolean;
292
318
  }
293
319
 
294
320
  /**
@@ -530,4 +556,4 @@ interface SessionWalletData extends WalletData {
530
556
  walletType: WalletType;
531
557
  }
532
558
 
533
- export { type AddSessionKeyParams, type ApiError, type ApiKey, type ApiResponse, type ApproveHookInput, type ApproveParams, type AsyncReturnType, type AuthContext, type CallAnyContractParams, type Chain, type ChainToken, type ChipiBrowserSDKConfig, type ChipiSDKConfig, type ChipiServerSDKConfig, type Country, type CreateCustodialWalletParams, type CreateSessionKeyParams, type CreateSkuTransactionParams, type CreateUserParams, type CreateWalletParams, type CreateWalletResponse, type DeepPartial, type DeploymentData, type ErrorWithCode, type ExecuteSponsoredTransactionParams, type ExecuteSponsoredTransactionResponse, type ExecuteTransactionParams, type ExecuteWithSessionParams, type GetMerchantWalletParams, type GetSessionDataParams, type GetSkuListQuery, type GetTokenBalanceParams, type GetTokenBalanceResponse, type GetTransactionListQuery, type GetTransactionsParams, type GetUserParams, type GetWalletParams, type GetWalletResponse, type JwtPayload, type MaybePromise, type NonEmptyArray, type Optional, type PaginatedResponse, type PaginationQuery, type PrepareTypedDataParams, type PrepareWalletCreationParams, type PrepareWalletCreationResponse, type Prettify, type RecordSendTransactionParams, type RequireAtLeastOne, type RevokeSessionKeyParams, STARKNET_CONTRACTS, type SessionConfig, type SessionDataResponse, type SessionKeyData, type SessionWalletData, type Sku, type SkuCategory, type SkuTransaction, type StakeVesuUsdcHookInputParams, type StakeVesuUsdcParams, type Transaction, type TransferHookInput, type TransferParams, type User, type ValueOrFunction, type WalletData, type WalletType, type WithdrawVesuUsdcHookInputParams, type WithdrawVesuUsdcParams, type alphaUrl };
559
+ export { type AddSessionKeyParams, type ApiError, type ApiKey, type ApiResponse, type ApproveHookInput, type ApproveParams, type AsyncReturnType, type AuthContext, type CallAnyContractParams, type Chain, type ChainToken, type ChipiBrowserSDKConfig, type ChipiSDKConfig, type ChipiServerSDKConfig, type Country, type CreateCustodialWalletParams, type CreateSessionKeyParams, type CreateSkuTransactionParams, type CreateUserParams, type CreateWalletParams, type CreateWalletResponse, type DeepPartial, type DeploymentData, type ErrorWithCode, type ExecuteSponsoredTransactionParams, type ExecuteSponsoredTransactionResponse, type ExecuteTransactionParams, type ExecuteWithSessionParams, type GetMerchantWalletParams, type GetSessionDataParams, type GetSkuListQuery, type GetTokenBalanceParams, type GetTokenBalanceResponse, type GetTransactionListQuery, type GetTransactionsParams, type GetUserParams, type GetWalletParams, type GetWalletResponse, type JwtPayload, type MaybePromise, type MigrateWalletToPasskeyParams, type NonEmptyArray, type Optional, type PaginatedResponse, type PaginationQuery, type PasskeyMetadata, type PrepareTypedDataParams, type PrepareTypedDataResponse, type PrepareWalletCreationParams, type PrepareWalletCreationResponse, type Prettify, type RecordSendTransactionParams, type RequireAtLeastOne, type RevokeSessionKeyParams, STARKNET_CONTRACTS, type SessionConfig, type SessionDataResponse, type SessionKeyData, type SessionWalletData, type Sku, type SkuCategory, type SkuTransaction, type StakeVesuUsdcHookInputParams, type StakeVesuUsdcParams, type Transaction, type TransferHookInput, type TransferParams, type User, type ValueOrFunction, type WalletData, type WalletType, type WithdrawVesuUsdcHookInputParams, type WithdrawVesuUsdcParams, type alphaUrl };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chipi-stack/types",
3
- "version": "12.1.0",
3
+ "version": "12.3.0",
4
4
  "description": "Type definitions for Chipi SDK packages",
5
5
  "keywords": [
6
6
  "chipi",