@chipi-stack/types 12.2.0 → 12.4.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;
@@ -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;
@@ -167,7 +180,7 @@ interface RecordSendTransactionParams {
167
180
  chain: Chain;
168
181
  }
169
182
  interface TransferParams {
170
- encryptKey: string;
183
+ encryptKey?: string;
171
184
  wallet: WalletData;
172
185
  token: ChainToken;
173
186
  otherToken?: {
@@ -176,9 +189,10 @@ interface TransferParams {
176
189
  };
177
190
  recipient: string;
178
191
  amount: string;
192
+ usePasskey?: boolean;
179
193
  }
180
194
  interface TransferHookInput {
181
- encryptKey: string;
195
+ encryptKey?: string;
182
196
  wallet: WalletData;
183
197
  token: ChainToken;
184
198
  otherToken?: {
@@ -187,28 +201,32 @@ interface TransferHookInput {
187
201
  };
188
202
  recipient: string;
189
203
  amount: number;
204
+ usePasskey?: boolean;
190
205
  }
191
206
  interface ApproveParams {
192
- encryptKey: string;
207
+ encryptKey?: string;
193
208
  wallet: WalletData;
194
209
  contractAddress: string;
195
210
  spender: string;
196
211
  amount: string;
197
212
  decimals?: number;
213
+ usePasskey?: boolean;
198
214
  }
199
215
  interface ApproveHookInput {
200
- encryptKey: string;
216
+ encryptKey?: string;
201
217
  wallet: WalletData;
202
218
  contractAddress: string;
203
219
  spender: string;
204
220
  decimals?: number;
205
221
  amount: number;
222
+ usePasskey?: boolean;
206
223
  }
207
224
  interface CallAnyContractParams {
208
- encryptKey: string;
225
+ encryptKey?: string;
209
226
  wallet: WalletData;
210
227
  contractAddress: string;
211
228
  calls: Call[];
229
+ usePasskey?: boolean;
212
230
  }
213
231
  interface GetTransactionsParams {
214
232
  page?: number;
@@ -271,28 +289,32 @@ interface CreateSkuTransactionParams {
271
289
  }
272
290
 
273
291
  interface StakeVesuUsdcHookInputParams {
274
- encryptKey: string;
292
+ encryptKey?: string;
275
293
  wallet: WalletData;
276
294
  amount: number;
277
295
  receiverWallet: string;
296
+ usePasskey?: boolean;
278
297
  }
279
298
  interface StakeVesuUsdcParams {
280
- encryptKey: string;
299
+ encryptKey?: string;
281
300
  wallet: WalletData;
282
301
  amount: string;
283
302
  receiverWallet: string;
303
+ usePasskey?: boolean;
284
304
  }
285
305
  interface WithdrawVesuUsdcParams {
286
- encryptKey: string;
306
+ encryptKey?: string;
287
307
  wallet: WalletData;
288
308
  amount: string;
289
309
  recipient: string;
310
+ usePasskey?: boolean;
290
311
  }
291
312
  interface WithdrawVesuUsdcHookInputParams {
292
- encryptKey: string;
313
+ encryptKey?: string;
293
314
  wallet: WalletData;
294
315
  amount: number;
295
316
  recipient: string;
317
+ usePasskey?: boolean;
296
318
  }
297
319
 
298
320
  /**
@@ -534,4 +556,4 @@ interface SessionWalletData extends WalletData {
534
556
  walletType: WalletType;
535
557
  }
536
558
 
537
- 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 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 };
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;
@@ -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;
@@ -167,7 +180,7 @@ interface RecordSendTransactionParams {
167
180
  chain: Chain;
168
181
  }
169
182
  interface TransferParams {
170
- encryptKey: string;
183
+ encryptKey?: string;
171
184
  wallet: WalletData;
172
185
  token: ChainToken;
173
186
  otherToken?: {
@@ -176,9 +189,10 @@ interface TransferParams {
176
189
  };
177
190
  recipient: string;
178
191
  amount: string;
192
+ usePasskey?: boolean;
179
193
  }
180
194
  interface TransferHookInput {
181
- encryptKey: string;
195
+ encryptKey?: string;
182
196
  wallet: WalletData;
183
197
  token: ChainToken;
184
198
  otherToken?: {
@@ -187,28 +201,32 @@ interface TransferHookInput {
187
201
  };
188
202
  recipient: string;
189
203
  amount: number;
204
+ usePasskey?: boolean;
190
205
  }
191
206
  interface ApproveParams {
192
- encryptKey: string;
207
+ encryptKey?: string;
193
208
  wallet: WalletData;
194
209
  contractAddress: string;
195
210
  spender: string;
196
211
  amount: string;
197
212
  decimals?: number;
213
+ usePasskey?: boolean;
198
214
  }
199
215
  interface ApproveHookInput {
200
- encryptKey: string;
216
+ encryptKey?: string;
201
217
  wallet: WalletData;
202
218
  contractAddress: string;
203
219
  spender: string;
204
220
  decimals?: number;
205
221
  amount: number;
222
+ usePasskey?: boolean;
206
223
  }
207
224
  interface CallAnyContractParams {
208
- encryptKey: string;
225
+ encryptKey?: string;
209
226
  wallet: WalletData;
210
227
  contractAddress: string;
211
228
  calls: Call[];
229
+ usePasskey?: boolean;
212
230
  }
213
231
  interface GetTransactionsParams {
214
232
  page?: number;
@@ -271,28 +289,32 @@ interface CreateSkuTransactionParams {
271
289
  }
272
290
 
273
291
  interface StakeVesuUsdcHookInputParams {
274
- encryptKey: string;
292
+ encryptKey?: string;
275
293
  wallet: WalletData;
276
294
  amount: number;
277
295
  receiverWallet: string;
296
+ usePasskey?: boolean;
278
297
  }
279
298
  interface StakeVesuUsdcParams {
280
- encryptKey: string;
299
+ encryptKey?: string;
281
300
  wallet: WalletData;
282
301
  amount: string;
283
302
  receiverWallet: string;
303
+ usePasskey?: boolean;
284
304
  }
285
305
  interface WithdrawVesuUsdcParams {
286
- encryptKey: string;
306
+ encryptKey?: string;
287
307
  wallet: WalletData;
288
308
  amount: string;
289
309
  recipient: string;
310
+ usePasskey?: boolean;
290
311
  }
291
312
  interface WithdrawVesuUsdcHookInputParams {
292
- encryptKey: string;
313
+ encryptKey?: string;
293
314
  wallet: WalletData;
294
315
  amount: number;
295
316
  recipient: string;
317
+ usePasskey?: boolean;
296
318
  }
297
319
 
298
320
  /**
@@ -534,4 +556,4 @@ interface SessionWalletData extends WalletData {
534
556
  walletType: WalletType;
535
557
  }
536
558
 
537
- 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 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 };
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.2.0",
3
+ "version": "12.4.0",
4
4
  "description": "Type definitions for Chipi SDK packages",
5
5
  "keywords": [
6
6
  "chipi",