@chipi-stack/types 1.0.0 → 1.1.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
@@ -45,6 +45,29 @@ interface CreateWalletResponse {
45
45
  walletPublicKey: string;
46
46
  wallet: WalletData;
47
47
  }
48
+ interface GetWalletParams {
49
+ externalUserId: string;
50
+ bearerToken: string;
51
+ encryptKey: string;
52
+ apiPublicKey?: string;
53
+ backendUrl?: string;
54
+ nodeUrl?: string;
55
+ }
56
+ interface GetWalletResponse {
57
+ success: boolean;
58
+ wallet: WalletData;
59
+ }
60
+ interface BackendGetWalletResponse {
61
+ id: string;
62
+ userId?: string;
63
+ orgId?: string;
64
+ apiPublicKey: string;
65
+ publicKey: string;
66
+ encryptedPrivateKey: string;
67
+ externalUserId?: string;
68
+ createdAt?: string;
69
+ updatedAt?: string;
70
+ }
48
71
  interface PrepareWalletCreationParams {
49
72
  encryptKey: string;
50
73
  apiPublicKey: string;
@@ -270,4 +293,4 @@ type AsyncReturnType<T extends (...args: any) => Promise<any>> = T extends (...a
270
293
  type ValueOrFunction<T> = T | (() => T);
271
294
  type MaybePromise<T> = T | Promise<T>;
272
295
 
273
- export { type ApiError, type ApiKey, type ApiResponse, type ApproveParams, type AsyncReturnType, type AuthContext, type CallAnyContractParams, type Chain, type ChainToken, type ChipiSDKConfig, type CreateCustodialWalletParams, type CreateSkuTransactionParams, type CreateWalletParams, type CreateWalletResponse, type DeepPartial, type Environment, type ErrorWithCode, type ExecuteSponsoredTransactionParams, type ExecuteSponsoredTransactionResponse, type ExecuteTransactionParams, type FindSkusParams, type FindSkusResponse, type GetMerchantWalletParams, type GetTransactionsParams, type JwtPayload, type MaybePromise, type NonEmptyArray, type Optional, type PaginatedResponse, type PaginationQuery, type PrepareTypedDataParams, type PrepareWalletCreationParams, type PrepareWalletCreationResponse, type Prettify, type RecordSendTransactionParams, type RequireAtLeastOne, STARKNET_CONTRACTS, type Sku, type SkuCategory, type SkuTransaction, type StakeVesuUsdcParams, type Transaction, type TransferParams, type ValueOrFunction, type WalletData, type WithdrawVesuUsdcParams };
296
+ export { type ApiError, type ApiKey, type ApiResponse, type ApproveParams, type AsyncReturnType, type AuthContext, type BackendGetWalletResponse, type CallAnyContractParams, type Chain, type ChainToken, type ChipiSDKConfig, type CreateCustodialWalletParams, type CreateSkuTransactionParams, type CreateWalletParams, type CreateWalletResponse, type DeepPartial, type Environment, type ErrorWithCode, type ExecuteSponsoredTransactionParams, type ExecuteSponsoredTransactionResponse, type ExecuteTransactionParams, type FindSkusParams, type FindSkusResponse, type GetMerchantWalletParams, type GetTransactionsParams, 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, STARKNET_CONTRACTS, type Sku, type SkuCategory, type SkuTransaction, type StakeVesuUsdcParams, type Transaction, type TransferParams, type ValueOrFunction, type WalletData, type WithdrawVesuUsdcParams };
package/dist/index.d.ts CHANGED
@@ -45,6 +45,29 @@ interface CreateWalletResponse {
45
45
  walletPublicKey: string;
46
46
  wallet: WalletData;
47
47
  }
48
+ interface GetWalletParams {
49
+ externalUserId: string;
50
+ bearerToken: string;
51
+ encryptKey: string;
52
+ apiPublicKey?: string;
53
+ backendUrl?: string;
54
+ nodeUrl?: string;
55
+ }
56
+ interface GetWalletResponse {
57
+ success: boolean;
58
+ wallet: WalletData;
59
+ }
60
+ interface BackendGetWalletResponse {
61
+ id: string;
62
+ userId?: string;
63
+ orgId?: string;
64
+ apiPublicKey: string;
65
+ publicKey: string;
66
+ encryptedPrivateKey: string;
67
+ externalUserId?: string;
68
+ createdAt?: string;
69
+ updatedAt?: string;
70
+ }
48
71
  interface PrepareWalletCreationParams {
49
72
  encryptKey: string;
50
73
  apiPublicKey: string;
@@ -270,4 +293,4 @@ type AsyncReturnType<T extends (...args: any) => Promise<any>> = T extends (...a
270
293
  type ValueOrFunction<T> = T | (() => T);
271
294
  type MaybePromise<T> = T | Promise<T>;
272
295
 
273
- export { type ApiError, type ApiKey, type ApiResponse, type ApproveParams, type AsyncReturnType, type AuthContext, type CallAnyContractParams, type Chain, type ChainToken, type ChipiSDKConfig, type CreateCustodialWalletParams, type CreateSkuTransactionParams, type CreateWalletParams, type CreateWalletResponse, type DeepPartial, type Environment, type ErrorWithCode, type ExecuteSponsoredTransactionParams, type ExecuteSponsoredTransactionResponse, type ExecuteTransactionParams, type FindSkusParams, type FindSkusResponse, type GetMerchantWalletParams, type GetTransactionsParams, type JwtPayload, type MaybePromise, type NonEmptyArray, type Optional, type PaginatedResponse, type PaginationQuery, type PrepareTypedDataParams, type PrepareWalletCreationParams, type PrepareWalletCreationResponse, type Prettify, type RecordSendTransactionParams, type RequireAtLeastOne, STARKNET_CONTRACTS, type Sku, type SkuCategory, type SkuTransaction, type StakeVesuUsdcParams, type Transaction, type TransferParams, type ValueOrFunction, type WalletData, type WithdrawVesuUsdcParams };
296
+ export { type ApiError, type ApiKey, type ApiResponse, type ApproveParams, type AsyncReturnType, type AuthContext, type BackendGetWalletResponse, type CallAnyContractParams, type Chain, type ChainToken, type ChipiSDKConfig, type CreateCustodialWalletParams, type CreateSkuTransactionParams, type CreateWalletParams, type CreateWalletResponse, type DeepPartial, type Environment, type ErrorWithCode, type ExecuteSponsoredTransactionParams, type ExecuteSponsoredTransactionResponse, type ExecuteTransactionParams, type FindSkusParams, type FindSkusResponse, type GetMerchantWalletParams, type GetTransactionsParams, 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, STARKNET_CONTRACTS, type Sku, type SkuCategory, type SkuTransaction, type StakeVesuUsdcParams, type Transaction, type TransferParams, type ValueOrFunction, type WalletData, type WithdrawVesuUsdcParams };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chipi-stack/types",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Type definitions for Chipi SDK packages",
5
5
  "keywords": [
6
6
  "chipi",