@chipi-stack/types 9.0.0 → 11.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/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @chipi-stack/types
2
+
3
+ Utilities for Chipi SDKs
package/dist/index.d.mts CHANGED
@@ -34,10 +34,6 @@ interface WalletData {
34
34
  publicKey: string;
35
35
  encryptedPrivateKey: string;
36
36
  }
37
- interface WalletDataResponse {
38
- publicKey: string;
39
- encryptedPrivateKey: string;
40
- }
41
37
  interface CreateWalletParams {
42
38
  encryptKey: string;
43
39
  externalUserId: string;
@@ -51,11 +47,10 @@ interface GetWalletParams {
51
47
  externalUserId: string;
52
48
  bearerToken: string;
53
49
  }
54
- interface BackendGetWalletResponse {
50
+ interface GetWalletResponse {
55
51
  id: string;
56
52
  userId?: string;
57
53
  orgId?: string;
58
- apiPublicKey: string;
59
54
  publicKey: string;
60
55
  encryptedPrivateKey: string;
61
56
  externalUserId?: string;
@@ -89,6 +84,7 @@ interface ExecuteTransactionParams {
89
84
  calls: Call[];
90
85
  bearerToken: string;
91
86
  apiPublicKey: string;
87
+ backendUrl: string;
92
88
  }
93
89
  interface Transaction {
94
90
  id: string;
@@ -147,32 +143,12 @@ interface ApproveParams {
147
143
  spender: string;
148
144
  amount: string | number;
149
145
  decimals?: number;
150
- bearerToken: string;
151
- apiPublicKey: string;
152
- }
153
- interface StakeVesuUsdcParams {
154
- encryptKey: string;
155
- wallet: WalletData;
156
- amount: string | number;
157
- receiverWallet: string;
158
- bearerToken: string;
159
- apiPublicKey: string;
160
- }
161
- interface WithdrawVesuUsdcParams {
162
- encryptKey: string;
163
- wallet: WalletData;
164
- amount: string | number;
165
- recipient: string;
166
- bearerToken: string;
167
- apiPublicKey: string;
168
146
  }
169
147
  interface CallAnyContractParams {
170
148
  encryptKey: string;
171
149
  wallet: WalletData;
172
150
  contractAddress: string;
173
151
  calls: Call[];
174
- bearerToken: string;
175
- apiPublicKey: string;
176
152
  }
177
153
  interface GetTransactionsParams {
178
154
  page?: number;
@@ -180,6 +156,19 @@ interface GetTransactionsParams {
180
156
  orgId: string;
181
157
  }
182
158
 
159
+ interface StakeVesuUsdcParams {
160
+ encryptKey: string;
161
+ wallet: WalletData;
162
+ amount: number;
163
+ receiverWallet: string;
164
+ }
165
+ interface WithdrawVesuUsdcParams {
166
+ encryptKey: string;
167
+ wallet: WalletData;
168
+ amount: number;
169
+ recipient: string;
170
+ }
171
+
183
172
  /**
184
173
  * SKU (Stock Keeping Unit) related types
185
174
  */
@@ -286,4 +275,4 @@ type AsyncReturnType<T extends (...args: any) => Promise<any>> = T extends (...a
286
275
  type ValueOrFunction<T> = T | (() => T);
287
276
  type MaybePromise<T> = T | Promise<T>;
288
277
 
289
- 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 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 WalletDataResponse, type WithdrawVesuUsdcParams };
278
+ 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 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
@@ -34,10 +34,6 @@ interface WalletData {
34
34
  publicKey: string;
35
35
  encryptedPrivateKey: string;
36
36
  }
37
- interface WalletDataResponse {
38
- publicKey: string;
39
- encryptedPrivateKey: string;
40
- }
41
37
  interface CreateWalletParams {
42
38
  encryptKey: string;
43
39
  externalUserId: string;
@@ -51,11 +47,10 @@ interface GetWalletParams {
51
47
  externalUserId: string;
52
48
  bearerToken: string;
53
49
  }
54
- interface BackendGetWalletResponse {
50
+ interface GetWalletResponse {
55
51
  id: string;
56
52
  userId?: string;
57
53
  orgId?: string;
58
- apiPublicKey: string;
59
54
  publicKey: string;
60
55
  encryptedPrivateKey: string;
61
56
  externalUserId?: string;
@@ -89,6 +84,7 @@ interface ExecuteTransactionParams {
89
84
  calls: Call[];
90
85
  bearerToken: string;
91
86
  apiPublicKey: string;
87
+ backendUrl: string;
92
88
  }
93
89
  interface Transaction {
94
90
  id: string;
@@ -147,32 +143,12 @@ interface ApproveParams {
147
143
  spender: string;
148
144
  amount: string | number;
149
145
  decimals?: number;
150
- bearerToken: string;
151
- apiPublicKey: string;
152
- }
153
- interface StakeVesuUsdcParams {
154
- encryptKey: string;
155
- wallet: WalletData;
156
- amount: string | number;
157
- receiverWallet: string;
158
- bearerToken: string;
159
- apiPublicKey: string;
160
- }
161
- interface WithdrawVesuUsdcParams {
162
- encryptKey: string;
163
- wallet: WalletData;
164
- amount: string | number;
165
- recipient: string;
166
- bearerToken: string;
167
- apiPublicKey: string;
168
146
  }
169
147
  interface CallAnyContractParams {
170
148
  encryptKey: string;
171
149
  wallet: WalletData;
172
150
  contractAddress: string;
173
151
  calls: Call[];
174
- bearerToken: string;
175
- apiPublicKey: string;
176
152
  }
177
153
  interface GetTransactionsParams {
178
154
  page?: number;
@@ -180,6 +156,19 @@ interface GetTransactionsParams {
180
156
  orgId: string;
181
157
  }
182
158
 
159
+ interface StakeVesuUsdcParams {
160
+ encryptKey: string;
161
+ wallet: WalletData;
162
+ amount: number;
163
+ receiverWallet: string;
164
+ }
165
+ interface WithdrawVesuUsdcParams {
166
+ encryptKey: string;
167
+ wallet: WalletData;
168
+ amount: number;
169
+ recipient: string;
170
+ }
171
+
183
172
  /**
184
173
  * SKU (Stock Keeping Unit) related types
185
174
  */
@@ -286,4 +275,4 @@ type AsyncReturnType<T extends (...args: any) => Promise<any>> = T extends (...a
286
275
  type ValueOrFunction<T> = T | (() => T);
287
276
  type MaybePromise<T> = T | Promise<T>;
288
277
 
289
- 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 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 WalletDataResponse, type WithdrawVesuUsdcParams };
278
+ 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 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": "9.0.0",
3
+ "version": "11.0.0",
4
4
  "description": "Type definitions for Chipi SDK packages",
5
5
  "keywords": [
6
6
  "chipi",