@openfort/openfort-node 0.7.4 → 0.7.6
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/CHANGELOG.md +12 -0
- package/dist/index.d.mts +203 -189
- package/dist/index.d.ts +203 -189
- package/dist/index.js +34 -50
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -47
- package/dist/index.mjs.map +1 -1
- package/openapi-auth.json +6 -0
- package/openapi.json +224 -417
- package/package.json +1 -1
- package/examples/exchange/createSwap.ts +0 -50
- package/examples/exchange/quoteSwap.ts +0 -34
package/dist/index.mjs
CHANGED
|
@@ -374,7 +374,7 @@ function requiresWalletAuth(requestMethod, requestPath) {
|
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
// src/version.ts
|
|
377
|
-
var VERSION = "0.7.
|
|
377
|
+
var VERSION = "0.7.6";
|
|
378
378
|
var PACKAGE = "@openfort/openfort-node";
|
|
379
379
|
|
|
380
380
|
// src/openapi-client/openfortApiClient.ts
|
|
@@ -2071,30 +2071,6 @@ var deleteEvent = (id, options) => {
|
|
|
2071
2071
|
);
|
|
2072
2072
|
};
|
|
2073
2073
|
|
|
2074
|
-
// src/openapi-client/generated/exchange/exchange.ts
|
|
2075
|
-
var createSwap = (createExchangeRequest, options) => {
|
|
2076
|
-
return openfortApiClient(
|
|
2077
|
-
{
|
|
2078
|
-
url: `/v1/exchange`,
|
|
2079
|
-
method: "POST",
|
|
2080
|
-
headers: { "Content-Type": "application/json" },
|
|
2081
|
-
data: createExchangeRequest
|
|
2082
|
-
},
|
|
2083
|
-
options
|
|
2084
|
-
);
|
|
2085
|
-
};
|
|
2086
|
-
var quoteSwap = (createExchangeRequest, options) => {
|
|
2087
|
-
return openfortApiClient(
|
|
2088
|
-
{
|
|
2089
|
-
url: `/v1/exchange/quote`,
|
|
2090
|
-
method: "POST",
|
|
2091
|
-
headers: { "Content-Type": "application/json" },
|
|
2092
|
-
data: createExchangeRequest
|
|
2093
|
-
},
|
|
2094
|
-
options
|
|
2095
|
-
);
|
|
2096
|
-
};
|
|
2097
|
-
|
|
2098
2074
|
// src/openapi-client/generated/forwarder-contract/forwarder-contract.ts
|
|
2099
2075
|
var createForwarderContract = (createForwarderContractRequest, options) => {
|
|
2100
2076
|
return openfortApiClient(
|
|
@@ -2385,10 +2361,6 @@ var OnrampProvider = {
|
|
|
2385
2361
|
var EntityTypeFORWARDERCONTRACT = {
|
|
2386
2362
|
forwarderContract: "forwarderContract"
|
|
2387
2363
|
};
|
|
2388
|
-
var TradeType = {
|
|
2389
|
-
EXACT_INPUT: "EXACT_INPUT",
|
|
2390
|
-
EXACT_OUTPUT: "EXACT_OUTPUT"
|
|
2391
|
-
};
|
|
2392
2364
|
var APITopicBALANCECONTRACT = {
|
|
2393
2365
|
balancecontract: "balance.contract"
|
|
2394
2366
|
};
|
|
@@ -2431,6 +2403,9 @@ var AuthProviderResponseV2 = {
|
|
|
2431
2403
|
oidc: "oidc",
|
|
2432
2404
|
siwe: "siwe"
|
|
2433
2405
|
};
|
|
2406
|
+
var EntityTypeWALLET = {
|
|
2407
|
+
wallet: "wallet"
|
|
2408
|
+
};
|
|
2434
2409
|
var PregenerateAccountResponseCustody = {
|
|
2435
2410
|
Developer: "Developer",
|
|
2436
2411
|
User: "User"
|
|
@@ -2598,7 +2573,8 @@ var ApiKeyType = {
|
|
|
2598
2573
|
pk: "pk",
|
|
2599
2574
|
sk: "sk",
|
|
2600
2575
|
pk_shield: "pk_shield",
|
|
2601
|
-
sk_shield: "sk_shield"
|
|
2576
|
+
sk_shield: "sk_shield",
|
|
2577
|
+
pk_wallet: "pk_wallet"
|
|
2602
2578
|
};
|
|
2603
2579
|
var AuthProviderResponse = {
|
|
2604
2580
|
email: "email",
|
|
@@ -3186,6 +3162,19 @@ var getVerificationPayload = (params, options) => {
|
|
|
3186
3162
|
);
|
|
3187
3163
|
};
|
|
3188
3164
|
|
|
3165
|
+
// src/openapi-client/generated/solana-rpc/solana-rpc.ts
|
|
3166
|
+
var handleSolanaRpcRequest = (cluster, jsonRpcRequest, options) => {
|
|
3167
|
+
return openfortApiClient(
|
|
3168
|
+
{
|
|
3169
|
+
url: `/rpc/solana/${cluster}`,
|
|
3170
|
+
method: "POST",
|
|
3171
|
+
headers: { "Content-Type": "application/json" },
|
|
3172
|
+
data: jsonRpcRequest
|
|
3173
|
+
},
|
|
3174
|
+
options
|
|
3175
|
+
);
|
|
3176
|
+
};
|
|
3177
|
+
|
|
3189
3178
|
// src/openapi-client/generated/subscriptions/subscriptions.ts
|
|
3190
3179
|
var getSubscriptions = (options) => {
|
|
3191
3180
|
return openfortApiClient(
|
|
@@ -3367,6 +3356,15 @@ var deleteUser = (id, options) => {
|
|
|
3367
3356
|
options
|
|
3368
3357
|
);
|
|
3369
3358
|
};
|
|
3359
|
+
var getUserWallet = (id, options) => {
|
|
3360
|
+
return openfortApiClient(
|
|
3361
|
+
{
|
|
3362
|
+
url: `/v2/users/${id}/wallet`,
|
|
3363
|
+
method: "GET"
|
|
3364
|
+
},
|
|
3365
|
+
options
|
|
3366
|
+
);
|
|
3367
|
+
};
|
|
3370
3368
|
var pregenerateUserV2 = (pregenerateUserRequestV2, options) => {
|
|
3371
3369
|
return openfortApiClient(
|
|
3372
3370
|
{
|
|
@@ -4394,20 +4392,6 @@ var Openfort = class {
|
|
|
4394
4392
|
};
|
|
4395
4393
|
}
|
|
4396
4394
|
// ============================================
|
|
4397
|
-
// Exchange API
|
|
4398
|
-
// ============================================
|
|
4399
|
-
/**
|
|
4400
|
-
* Exchange endpoints
|
|
4401
|
-
*/
|
|
4402
|
-
get exchange() {
|
|
4403
|
-
return {
|
|
4404
|
-
/** Create swap */
|
|
4405
|
-
createSwap,
|
|
4406
|
-
/** Get swap quote */
|
|
4407
|
-
quoteSwap
|
|
4408
|
-
};
|
|
4409
|
-
}
|
|
4410
|
-
// ============================================
|
|
4411
4395
|
// Auth API
|
|
4412
4396
|
// ============================================
|
|
4413
4397
|
/**
|
|
@@ -4725,6 +4709,7 @@ export {
|
|
|
4725
4709
|
EntityTypeTRANSACTIONINTENT,
|
|
4726
4710
|
EntityTypeTRIGGER,
|
|
4727
4711
|
EntityTypeUSER,
|
|
4712
|
+
EntityTypeWALLET,
|
|
4728
4713
|
ErrorTypeINVALIDREQUESTERROR,
|
|
4729
4714
|
EvmClient,
|
|
4730
4715
|
ExportPrivateKeyResponseObject,
|
|
@@ -4806,7 +4791,6 @@ export {
|
|
|
4806
4791
|
TimeIntervalType,
|
|
4807
4792
|
TimeoutError,
|
|
4808
4793
|
TokenType,
|
|
4809
|
-
TradeType,
|
|
4810
4794
|
TransactionAbstractionType,
|
|
4811
4795
|
TransactionIntentResponseExpandable,
|
|
4812
4796
|
TransactionStatus,
|
|
@@ -4845,7 +4829,6 @@ export {
|
|
|
4845
4829
|
createPolicyWithdrawal,
|
|
4846
4830
|
createSession,
|
|
4847
4831
|
createSubscription,
|
|
4848
|
-
createSwap,
|
|
4849
4832
|
createTransactionIntent,
|
|
4850
4833
|
createTrigger,
|
|
4851
4834
|
decryptExportedPrivateKey,
|
|
@@ -4912,11 +4895,13 @@ export {
|
|
|
4912
4895
|
getTransactionIntents,
|
|
4913
4896
|
getTrigger,
|
|
4914
4897
|
getTriggers,
|
|
4898
|
+
getUserWallet,
|
|
4915
4899
|
getVerificationPayload,
|
|
4916
4900
|
getWebhookLogsByProjectId,
|
|
4917
4901
|
grantOAuth,
|
|
4918
4902
|
handleChainRpcRequest,
|
|
4919
4903
|
handleRpcRequest,
|
|
4904
|
+
handleSolanaRpcRequest,
|
|
4920
4905
|
importPrivateKey,
|
|
4921
4906
|
initOAuth,
|
|
4922
4907
|
initSIWE,
|
|
@@ -4940,7 +4925,6 @@ export {
|
|
|
4940
4925
|
poolOAuth,
|
|
4941
4926
|
pregenerateUserV2,
|
|
4942
4927
|
query,
|
|
4943
|
-
quoteSwap,
|
|
4944
4928
|
readContract,
|
|
4945
4929
|
refresh,
|
|
4946
4930
|
registerGuest,
|