@chipi-stack/types 0.2.0 → 3.0.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 +23 -1
- package/dist/index.d.ts +23 -1
- package/package.json +12 -12
package/dist/index.d.mts
CHANGED
|
@@ -45,6 +45,28 @@ interface CreateWalletResponse {
|
|
|
45
45
|
walletPublicKey: string;
|
|
46
46
|
wallet: WalletData;
|
|
47
47
|
}
|
|
48
|
+
interface GetWalletParams {
|
|
49
|
+
externalUserId: string;
|
|
50
|
+
bearerToken: string;
|
|
51
|
+
apiPublicKey?: string;
|
|
52
|
+
encryptKey: string;
|
|
53
|
+
nodeUrl?: string;
|
|
54
|
+
}
|
|
55
|
+
interface GetWalletResponse {
|
|
56
|
+
success: boolean;
|
|
57
|
+
wallet: WalletData;
|
|
58
|
+
}
|
|
59
|
+
interface BackendGetWalletResponse {
|
|
60
|
+
id: string;
|
|
61
|
+
userId?: string;
|
|
62
|
+
orgId?: string;
|
|
63
|
+
apiPublicKey: string;
|
|
64
|
+
publicKey: string;
|
|
65
|
+
encryptedPrivateKey: string;
|
|
66
|
+
externalUserId?: string;
|
|
67
|
+
createdAt?: string;
|
|
68
|
+
updatedAt?: string;
|
|
69
|
+
}
|
|
48
70
|
interface PrepareWalletCreationParams {
|
|
49
71
|
encryptKey: string;
|
|
50
72
|
apiPublicKey: string;
|
|
@@ -270,4 +292,4 @@ type AsyncReturnType<T extends (...args: any) => Promise<any>> = T extends (...a
|
|
|
270
292
|
type ValueOrFunction<T> = T | (() => T);
|
|
271
293
|
type MaybePromise<T> = T | Promise<T>;
|
|
272
294
|
|
|
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 };
|
|
295
|
+
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,28 @@ interface CreateWalletResponse {
|
|
|
45
45
|
walletPublicKey: string;
|
|
46
46
|
wallet: WalletData;
|
|
47
47
|
}
|
|
48
|
+
interface GetWalletParams {
|
|
49
|
+
externalUserId: string;
|
|
50
|
+
bearerToken: string;
|
|
51
|
+
apiPublicKey?: string;
|
|
52
|
+
encryptKey: string;
|
|
53
|
+
nodeUrl?: string;
|
|
54
|
+
}
|
|
55
|
+
interface GetWalletResponse {
|
|
56
|
+
success: boolean;
|
|
57
|
+
wallet: WalletData;
|
|
58
|
+
}
|
|
59
|
+
interface BackendGetWalletResponse {
|
|
60
|
+
id: string;
|
|
61
|
+
userId?: string;
|
|
62
|
+
orgId?: string;
|
|
63
|
+
apiPublicKey: string;
|
|
64
|
+
publicKey: string;
|
|
65
|
+
encryptedPrivateKey: string;
|
|
66
|
+
externalUserId?: string;
|
|
67
|
+
createdAt?: string;
|
|
68
|
+
updatedAt?: string;
|
|
69
|
+
}
|
|
48
70
|
interface PrepareWalletCreationParams {
|
|
49
71
|
encryptKey: string;
|
|
50
72
|
apiPublicKey: string;
|
|
@@ -270,4 +292,4 @@ type AsyncReturnType<T extends (...args: any) => Promise<any>> = T extends (...a
|
|
|
270
292
|
type ValueOrFunction<T> = T | (() => T);
|
|
271
293
|
type MaybePromise<T> = T | Promise<T>;
|
|
272
294
|
|
|
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 };
|
|
295
|
+
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": "0.
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Type definitions for Chipi SDK packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chipi",
|
|
@@ -27,16 +27,6 @@
|
|
|
27
27
|
"files": [
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
|
-
"scripts": {
|
|
31
|
-
"build": "tsup --env.NODE_ENV production",
|
|
32
|
-
"build:declarations": "tsc -p tsconfig.declarations.json",
|
|
33
|
-
"clean": "rimraf ./dist",
|
|
34
|
-
"dev": "tsup --watch",
|
|
35
|
-
"format": "prettier --write src/**/*.ts",
|
|
36
|
-
"format:check": "prettier --check src/**/*.ts",
|
|
37
|
-
"lint": "eslint src",
|
|
38
|
-
"typecheck": "tsc --noEmit"
|
|
39
|
-
},
|
|
40
30
|
"dependencies": {
|
|
41
31
|
"starknet": ">=6.23.1"
|
|
42
32
|
},
|
|
@@ -53,5 +43,15 @@
|
|
|
53
43
|
},
|
|
54
44
|
"publishConfig": {
|
|
55
45
|
"access": "public"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"build": "tsup --env.NODE_ENV production",
|
|
49
|
+
"build:declarations": "tsc -p tsconfig.declarations.json",
|
|
50
|
+
"clean": "rimraf ./dist",
|
|
51
|
+
"dev": "tsup --watch",
|
|
52
|
+
"format": "prettier --write src/**/*.ts",
|
|
53
|
+
"format:check": "prettier --check src/**/*.ts",
|
|
54
|
+
"lint": "eslint src",
|
|
55
|
+
"typecheck": "tsc --noEmit"
|
|
56
56
|
}
|
|
57
|
-
}
|
|
57
|
+
}
|