@openfort/openfort-node 0.7.0 → 0.7.2
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 +499 -389
- package/dist/index.d.ts +499 -389
- package/dist/index.js +193 -147
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +185 -143
- package/dist/index.mjs.map +1 -1
- package/examples/.env.example +1 -1
- package/examples/README.md +20 -17
- package/examples/contracts/createContract.ts +3 -3
- package/examples/{iam/pregenerateUser.ts → evm/embedded/pregenerate.ts} +2 -2
- package/examples/exchange/createSwap.ts +2 -1
- package/examples/transactions/createTransactionIntent.ts +13 -8
- package/examples/transactions/estimateGas.ts +14 -4
- package/examples/transactions/getTransactionIntent.ts +14 -3
- package/openapi-auth.json +86 -53
- package/openapi.json +336 -52
- package/package.json +2 -2
- package/examples/contracts/readContract.ts +0 -29
package/dist/index.js
CHANGED
|
@@ -41,6 +41,7 @@ __export(index_exports, {
|
|
|
41
41
|
AccountListQueriesV2Custody: () => AccountListQueriesV2Custody,
|
|
42
42
|
AccountNotFoundError: () => AccountNotFoundError,
|
|
43
43
|
AccountResponseExpandable: () => AccountResponseExpandable,
|
|
44
|
+
AccountV2ResponseCustody: () => AccountV2ResponseCustody,
|
|
44
45
|
Actions: () => Actions,
|
|
45
46
|
ApiKeyType: () => ApiKeyType,
|
|
46
47
|
AuthMigrationStatus: () => AuthMigrationStatus,
|
|
@@ -52,6 +53,7 @@ __export(index_exports, {
|
|
|
52
53
|
BackendWalletListQueriesChainType: () => BackendWalletListQueriesChainType,
|
|
53
54
|
BackendWalletListResponseObject: () => BackendWalletListResponseObject,
|
|
54
55
|
BackendWalletResponseChainType: () => BackendWalletResponseChainType,
|
|
56
|
+
BackendWalletResponseCustody: () => BackendWalletResponseCustody,
|
|
55
57
|
BackendWalletResponseObject: () => BackendWalletResponseObject,
|
|
56
58
|
BasicAuthProvider: () => BasicAuthProvider,
|
|
57
59
|
BasicAuthProviderEMAIL: () => BasicAuthProviderEMAIL,
|
|
@@ -139,6 +141,7 @@ __export(index_exports, {
|
|
|
139
141
|
PolicyRuleTypeACCOUNT: () => PolicyRuleTypeACCOUNT,
|
|
140
142
|
PolicyRuleTypeCONTRACT: () => PolicyRuleTypeCONTRACT,
|
|
141
143
|
PolicyRuleTypeRATELIMIT: () => PolicyRuleTypeRATELIMIT,
|
|
144
|
+
PregenerateAccountResponseCustody: () => PregenerateAccountResponseCustody,
|
|
142
145
|
PregenerateUserRequestV2AccountType: () => PregenerateUserRequestV2AccountType,
|
|
143
146
|
PregenerateUserRequestV2ChainType: () => PregenerateUserRequestV2ChainType,
|
|
144
147
|
PrismaSortOrder: () => PrismaSortOrder,
|
|
@@ -186,14 +189,11 @@ __export(index_exports, {
|
|
|
186
189
|
UserProjectRoleMEMBER: () => UserProjectRoleMEMBER,
|
|
187
190
|
UserProjectUpdateRequestRole: () => UserProjectUpdateRequestRole,
|
|
188
191
|
ValidationError: () => ValidationError,
|
|
189
|
-
|
|
190
|
-
authApi: () => default_exports,
|
|
191
|
-
authEmailOtp: () => email_otp_exports,
|
|
192
|
-
authPhoneNumber: () => phone_number_exports,
|
|
192
|
+
authApi: () => auth_v2_exports,
|
|
193
193
|
authSchemas: () => openfortAuth_schemas_exports,
|
|
194
|
-
authSiwe: () => siwe_exports,
|
|
195
194
|
authenticateSIWE: () => authenticateSIWE,
|
|
196
195
|
authorize: () => authorize,
|
|
196
|
+
callbackOAuth: () => callbackOAuth,
|
|
197
197
|
cancelTransferAccountOwnership: () => cancelTransferAccountOwnership,
|
|
198
198
|
cancelTransferOwnership: () => cancelTransferOwnership,
|
|
199
199
|
completeRecovery: () => completeRecovery,
|
|
@@ -236,6 +236,7 @@ __export(index_exports, {
|
|
|
236
236
|
deleteTrigger: () => deleteTrigger,
|
|
237
237
|
deleteUser: () => deleteUser,
|
|
238
238
|
deployAccount: () => deployAccount,
|
|
239
|
+
deprecatedCallbackOAuth: () => deprecatedCallbackOAuth,
|
|
239
240
|
disableAccount: () => disableAccount,
|
|
240
241
|
disablePolicy: () => disablePolicy,
|
|
241
242
|
enablePolicy: () => enablePolicy,
|
|
@@ -273,6 +274,7 @@ __export(index_exports, {
|
|
|
273
274
|
getPolicyReportTransactionIntents: () => getPolicyReportTransactionIntents,
|
|
274
275
|
getPolicyRules: () => getPolicyRules,
|
|
275
276
|
getPolicyTotalGasUsage: () => getPolicyTotalGasUsage,
|
|
277
|
+
getProjectLogs: () => getProjectLogs,
|
|
276
278
|
getSession: () => getSession,
|
|
277
279
|
getSignerIdByAddress: () => getSignerIdByAddress,
|
|
278
280
|
getSubscription: () => getSubscription,
|
|
@@ -282,6 +284,8 @@ __export(index_exports, {
|
|
|
282
284
|
getTrigger: () => getTrigger,
|
|
283
285
|
getTriggers: () => getTriggers,
|
|
284
286
|
getVerificationPayload: () => getVerificationPayload,
|
|
287
|
+
getWebhookLogsByProjectId: () => getWebhookLogsByProjectId,
|
|
288
|
+
grantOAuth: () => grantOAuth,
|
|
285
289
|
handleChainRpcRequest: () => handleChainRpcRequest,
|
|
286
290
|
handleRpcRequest: () => handleRpcRequest,
|
|
287
291
|
importPrivateKey: () => importPrivateKey,
|
|
@@ -715,7 +719,7 @@ function requiresWalletAuth(requestMethod, requestPath) {
|
|
|
715
719
|
}
|
|
716
720
|
|
|
717
721
|
// src/version.ts
|
|
718
|
-
var VERSION = "0.7.
|
|
722
|
+
var VERSION = "0.7.2";
|
|
719
723
|
var PACKAGE = "@openfort/openfort-node";
|
|
720
724
|
|
|
721
725
|
// src/openapi-client/openfortApiClient.ts
|
|
@@ -774,6 +778,10 @@ var configure = (options) => {
|
|
|
774
778
|
...options.publishableKey && {
|
|
775
779
|
"x-project-key": options.publishableKey
|
|
776
780
|
}
|
|
781
|
+
},
|
|
782
|
+
paramsSerializer: {
|
|
783
|
+
indexes: null
|
|
784
|
+
// Use repeat style for arrays: ?player=a&player=b instead of ?player[0]=a&player[1]=b
|
|
777
785
|
}
|
|
778
786
|
});
|
|
779
787
|
(0, import_axios_retry.default)(axiosInstance, {
|
|
@@ -1055,7 +1063,7 @@ var openfortApiClient = async (config, options) => {
|
|
|
1055
1063
|
};
|
|
1056
1064
|
var getConfig = () => clientConfig;
|
|
1057
1065
|
|
|
1058
|
-
// src/openapi-client/generated/
|
|
1066
|
+
// src/openapi-client/generated/accs-v1/accs-v1.ts
|
|
1059
1067
|
var getAccounts = (params, options) => {
|
|
1060
1068
|
return openfortApiClient(
|
|
1061
1069
|
{
|
|
@@ -1171,6 +1179,8 @@ var completeRecovery = (id, completeRecoveryRequest, options) => {
|
|
|
1171
1179
|
options
|
|
1172
1180
|
);
|
|
1173
1181
|
};
|
|
1182
|
+
|
|
1183
|
+
// src/openapi-client/generated/accs-v2/accs-v2.ts
|
|
1174
1184
|
var getAccountsV2 = (params, options) => {
|
|
1175
1185
|
return openfortApiClient(
|
|
1176
1186
|
{
|
|
@@ -1264,6 +1274,37 @@ var createOAuthConfig = (authConfig, options) => {
|
|
|
1264
1274
|
options
|
|
1265
1275
|
);
|
|
1266
1276
|
};
|
|
1277
|
+
var deprecatedCallbackOAuth = (params, options) => {
|
|
1278
|
+
return openfortApiClient(
|
|
1279
|
+
{
|
|
1280
|
+
url: `/iam/v1/oauth/callback`,
|
|
1281
|
+
method: "GET",
|
|
1282
|
+
params
|
|
1283
|
+
},
|
|
1284
|
+
options
|
|
1285
|
+
);
|
|
1286
|
+
};
|
|
1287
|
+
var grantOAuth = (provider, grantCallbackRequest, options) => {
|
|
1288
|
+
return openfortApiClient(
|
|
1289
|
+
{
|
|
1290
|
+
url: `/iam/v1/oauth/grant/${provider}`,
|
|
1291
|
+
method: "POST",
|
|
1292
|
+
headers: { "Content-Type": "application/json" },
|
|
1293
|
+
data: grantCallbackRequest
|
|
1294
|
+
},
|
|
1295
|
+
options
|
|
1296
|
+
);
|
|
1297
|
+
};
|
|
1298
|
+
var callbackOAuth = (provider, params, options) => {
|
|
1299
|
+
return openfortApiClient(
|
|
1300
|
+
{
|
|
1301
|
+
url: `/iam/v1/oauth/callback/${provider}`,
|
|
1302
|
+
method: "GET",
|
|
1303
|
+
params
|
|
1304
|
+
},
|
|
1305
|
+
options
|
|
1306
|
+
);
|
|
1307
|
+
};
|
|
1267
1308
|
var getOAuthConfig = (provider, options) => {
|
|
1268
1309
|
return openfortApiClient(
|
|
1269
1310
|
{
|
|
@@ -1364,25 +1405,12 @@ var authorize = (authorizePlayerRequest, options) => {
|
|
|
1364
1405
|
);
|
|
1365
1406
|
};
|
|
1366
1407
|
|
|
1367
|
-
// src/openapi-client/generated/auth/
|
|
1368
|
-
var
|
|
1369
|
-
__export(
|
|
1370
|
-
|
|
1371
|
-
});
|
|
1372
|
-
var postSignInAnonymous = (options) => {
|
|
1373
|
-
return openfortApiClient(
|
|
1374
|
-
{
|
|
1375
|
-
url: `/iam/v2/auth/sign-in/anonymous`,
|
|
1376
|
-
method: "POST"
|
|
1377
|
-
},
|
|
1378
|
-
options
|
|
1379
|
-
);
|
|
1380
|
-
};
|
|
1381
|
-
|
|
1382
|
-
// src/openapi-client/generated/auth/default/default.ts
|
|
1383
|
-
var default_exports = {};
|
|
1384
|
-
__export(default_exports, {
|
|
1408
|
+
// src/openapi-client/generated/auth/auth-v2/auth-v2.ts
|
|
1409
|
+
var auth_v2_exports = {};
|
|
1410
|
+
__export(auth_v2_exports, {
|
|
1411
|
+
checkVerificationOtp: () => checkVerificationOtp,
|
|
1385
1412
|
getGetSession: () => getGetSession,
|
|
1413
|
+
getLinkSiweListWallets: () => getLinkSiweListWallets,
|
|
1386
1414
|
getListAccounts: () => getListAccounts,
|
|
1387
1415
|
getListSessions: () => getListSessions,
|
|
1388
1416
|
getResetPasswordToken: () => getResetPasswordToken,
|
|
@@ -1390,9 +1418,21 @@ __export(default_exports, {
|
|
|
1390
1418
|
postAccountInfo: () => postAccountInfo,
|
|
1391
1419
|
postChangeEmail: () => postChangeEmail,
|
|
1392
1420
|
postChangePassword: () => postChangePassword,
|
|
1421
|
+
postEmailOtpResetPassword: () => postEmailOtpResetPassword,
|
|
1422
|
+
postEmailOtpSendVerificationOtp: () => postEmailOtpSendVerificationOtp,
|
|
1423
|
+
postEmailOtpVerifyEmail: () => postEmailOtpVerifyEmail,
|
|
1393
1424
|
postForgetPassword: () => postForgetPassword,
|
|
1425
|
+
postForgetPasswordEmailOtp: () => postForgetPasswordEmailOtp,
|
|
1394
1426
|
postGetAccessToken: () => postGetAccessToken,
|
|
1427
|
+
postLinkSiweNonce: () => postLinkSiweNonce,
|
|
1428
|
+
postLinkSiweUnlink: () => postLinkSiweUnlink,
|
|
1429
|
+
postLinkSiweVerify: () => postLinkSiweVerify,
|
|
1395
1430
|
postLinkSocial: () => postLinkSocial,
|
|
1431
|
+
postPhoneNumberForgetPassword: () => postPhoneNumberForgetPassword,
|
|
1432
|
+
postPhoneNumberRequestPasswordReset: () => postPhoneNumberRequestPasswordReset,
|
|
1433
|
+
postPhoneNumberResetPassword: () => postPhoneNumberResetPassword,
|
|
1434
|
+
postPhoneNumberSendOtp: () => postPhoneNumberSendOtp,
|
|
1435
|
+
postPhoneNumberVerify: () => postPhoneNumberVerify,
|
|
1396
1436
|
postRefreshToken: () => postRefreshToken,
|
|
1397
1437
|
postRequestPasswordReset: () => postRequestPasswordReset,
|
|
1398
1438
|
postResetPassword: () => postResetPassword,
|
|
@@ -1400,9 +1440,14 @@ __export(default_exports, {
|
|
|
1400
1440
|
postRevokeSession: () => postRevokeSession,
|
|
1401
1441
|
postRevokeSessions: () => postRevokeSessions,
|
|
1402
1442
|
postSendVerificationEmail: () => postSendVerificationEmail,
|
|
1443
|
+
postSignInAnonymous: () => postSignInAnonymous,
|
|
1403
1444
|
postSignInEmail: () => postSignInEmail,
|
|
1445
|
+
postSignInEmailOtp: () => postSignInEmailOtp,
|
|
1446
|
+
postSignInPhoneNumber: () => postSignInPhoneNumber,
|
|
1404
1447
|
postSignOut: () => postSignOut,
|
|
1405
1448
|
postSignUpEmail: () => postSignUpEmail,
|
|
1449
|
+
postSiweNonce: () => postSiweNonce,
|
|
1450
|
+
postSiweVerify: () => postSiweVerify,
|
|
1406
1451
|
postUnlinkAccount: () => postUnlinkAccount,
|
|
1407
1452
|
socialSignIn: () => socialSignIn
|
|
1408
1453
|
});
|
|
@@ -1652,204 +1697,147 @@ var postAccountInfo = (postAccountInfoBody, options) => {
|
|
|
1652
1697
|
options
|
|
1653
1698
|
);
|
|
1654
1699
|
};
|
|
1655
|
-
|
|
1656
|
-
// src/openapi-client/generated/auth/email-otp/email-otp.ts
|
|
1657
|
-
var email_otp_exports = {};
|
|
1658
|
-
__export(email_otp_exports, {
|
|
1659
|
-
checkVerificationOtp: () => checkVerificationOtp,
|
|
1660
|
-
postEmailOtpResetPassword: () => postEmailOtpResetPassword,
|
|
1661
|
-
postEmailOtpSendVerificationOtp: () => postEmailOtpSendVerificationOtp,
|
|
1662
|
-
postEmailOtpVerifyEmail: () => postEmailOtpVerifyEmail,
|
|
1663
|
-
postForgetPasswordEmailOtp: () => postForgetPasswordEmailOtp,
|
|
1664
|
-
postSignInEmailOtp: () => postSignInEmailOtp
|
|
1665
|
-
});
|
|
1666
|
-
var postEmailOtpSendVerificationOtp = (postEmailOtpSendVerificationOtpBody, options) => {
|
|
1700
|
+
var postSignInAnonymous = (options) => {
|
|
1667
1701
|
return openfortApiClient(
|
|
1668
1702
|
{
|
|
1669
|
-
url: `/iam/v2/auth/
|
|
1703
|
+
url: `/iam/v2/auth/sign-in/anonymous`,
|
|
1704
|
+
method: "POST"
|
|
1705
|
+
},
|
|
1706
|
+
options
|
|
1707
|
+
);
|
|
1708
|
+
};
|
|
1709
|
+
var postSignInPhoneNumber = (postSignInPhoneNumberBody, options) => {
|
|
1710
|
+
return openfortApiClient(
|
|
1711
|
+
{
|
|
1712
|
+
url: `/iam/v2/auth/sign-in/phone-number`,
|
|
1670
1713
|
method: "POST",
|
|
1671
1714
|
headers: { "Content-Type": "application/json" },
|
|
1672
|
-
data:
|
|
1715
|
+
data: postSignInPhoneNumberBody
|
|
1673
1716
|
},
|
|
1674
1717
|
options
|
|
1675
1718
|
);
|
|
1676
1719
|
};
|
|
1677
|
-
var
|
|
1720
|
+
var postPhoneNumberSendOtp = (postPhoneNumberSendOtpBody, options) => {
|
|
1678
1721
|
return openfortApiClient(
|
|
1679
1722
|
{
|
|
1680
|
-
url: `/iam/v2/auth/
|
|
1723
|
+
url: `/iam/v2/auth/phone-number/send-otp`,
|
|
1681
1724
|
method: "POST",
|
|
1682
1725
|
headers: { "Content-Type": "application/json" },
|
|
1683
|
-
data:
|
|
1726
|
+
data: postPhoneNumberSendOtpBody
|
|
1684
1727
|
},
|
|
1685
1728
|
options
|
|
1686
1729
|
);
|
|
1687
1730
|
};
|
|
1688
|
-
var
|
|
1731
|
+
var postPhoneNumberVerify = (postPhoneNumberVerifyBody, options) => {
|
|
1689
1732
|
return openfortApiClient(
|
|
1690
1733
|
{
|
|
1691
|
-
url: `/iam/v2/auth/
|
|
1734
|
+
url: `/iam/v2/auth/phone-number/verify`,
|
|
1692
1735
|
method: "POST",
|
|
1693
1736
|
headers: { "Content-Type": "application/json" },
|
|
1694
|
-
data:
|
|
1737
|
+
data: postPhoneNumberVerifyBody
|
|
1695
1738
|
},
|
|
1696
1739
|
options
|
|
1697
1740
|
);
|
|
1698
1741
|
};
|
|
1699
|
-
var
|
|
1742
|
+
var postPhoneNumberForgetPassword = (postPhoneNumberForgetPasswordBody, options) => {
|
|
1700
1743
|
return openfortApiClient(
|
|
1701
1744
|
{
|
|
1702
|
-
url: `/iam/v2/auth/
|
|
1745
|
+
url: `/iam/v2/auth/phone-number/forget-password`,
|
|
1703
1746
|
method: "POST",
|
|
1704
1747
|
headers: { "Content-Type": "application/json" },
|
|
1705
|
-
data:
|
|
1748
|
+
data: postPhoneNumberForgetPasswordBody
|
|
1706
1749
|
},
|
|
1707
1750
|
options
|
|
1708
1751
|
);
|
|
1709
1752
|
};
|
|
1710
|
-
var
|
|
1753
|
+
var postPhoneNumberRequestPasswordReset = (postPhoneNumberRequestPasswordResetBody, options) => {
|
|
1711
1754
|
return openfortApiClient(
|
|
1712
1755
|
{
|
|
1713
|
-
url: `/iam/v2/auth/
|
|
1756
|
+
url: `/iam/v2/auth/phone-number/request-password-reset`,
|
|
1714
1757
|
method: "POST",
|
|
1715
1758
|
headers: { "Content-Type": "application/json" },
|
|
1716
|
-
data:
|
|
1759
|
+
data: postPhoneNumberRequestPasswordResetBody
|
|
1717
1760
|
},
|
|
1718
1761
|
options
|
|
1719
1762
|
);
|
|
1720
1763
|
};
|
|
1721
|
-
var
|
|
1764
|
+
var postPhoneNumberResetPassword = (postPhoneNumberResetPasswordBody, options) => {
|
|
1722
1765
|
return openfortApiClient(
|
|
1723
1766
|
{
|
|
1724
|
-
url: `/iam/v2/auth/
|
|
1767
|
+
url: `/iam/v2/auth/phone-number/reset-password`,
|
|
1725
1768
|
method: "POST",
|
|
1726
1769
|
headers: { "Content-Type": "application/json" },
|
|
1727
|
-
data:
|
|
1770
|
+
data: postPhoneNumberResetPasswordBody
|
|
1728
1771
|
},
|
|
1729
1772
|
options
|
|
1730
1773
|
);
|
|
1731
1774
|
};
|
|
1732
|
-
|
|
1733
|
-
// src/openapi-client/generated/auth/openfortAuth.schemas.ts
|
|
1734
|
-
var openfortAuth_schemas_exports = {};
|
|
1735
|
-
__export(openfortAuth_schemas_exports, {
|
|
1736
|
-
CheckVerificationOtpBodyType: () => CheckVerificationOtpBodyType,
|
|
1737
|
-
PostChangeEmail200Message: () => PostChangeEmail200Message,
|
|
1738
|
-
PostLinkSiweUnlink400Code: () => PostLinkSiweUnlink400Code,
|
|
1739
|
-
PostLinkSiweVerify400Code: () => PostLinkSiweVerify400Code,
|
|
1740
|
-
PostLinkSiweVerify401Code: () => PostLinkSiweVerify401Code
|
|
1741
|
-
});
|
|
1742
|
-
var PostChangeEmail200Message = {
|
|
1743
|
-
Email_updated: "Email updated",
|
|
1744
|
-
Verification_email_sent: "Verification email sent"
|
|
1745
|
-
};
|
|
1746
|
-
var CheckVerificationOtpBodyType = {
|
|
1747
|
-
"email-verification": "email-verification",
|
|
1748
|
-
"sign-in": "sign-in",
|
|
1749
|
-
"forget-password": "forget-password"
|
|
1750
|
-
};
|
|
1751
|
-
var PostLinkSiweVerify400Code = {
|
|
1752
|
-
WALLET_ALREADY_LINKED: "WALLET_ALREADY_LINKED",
|
|
1753
|
-
BAD_REQUEST: "BAD_REQUEST"
|
|
1754
|
-
};
|
|
1755
|
-
var PostLinkSiweVerify401Code = {
|
|
1756
|
-
UNAUTHORIZED: "UNAUTHORIZED",
|
|
1757
|
-
INVALID_OR_EXPIRED_NONCE: "INVALID_OR_EXPIRED_NONCE",
|
|
1758
|
-
INVALID_SIGNATURE: "INVALID_SIGNATURE"
|
|
1759
|
-
};
|
|
1760
|
-
var PostLinkSiweUnlink400Code = {
|
|
1761
|
-
BAD_REQUEST: "BAD_REQUEST",
|
|
1762
|
-
CANNOT_UNLINK_LAST_ACCOUNT: "CANNOT_UNLINK_LAST_ACCOUNT",
|
|
1763
|
-
WALLET_NOT_FOUND: "WALLET_NOT_FOUND"
|
|
1764
|
-
};
|
|
1765
|
-
|
|
1766
|
-
// src/openapi-client/generated/auth/phone-number/phone-number.ts
|
|
1767
|
-
var phone_number_exports = {};
|
|
1768
|
-
__export(phone_number_exports, {
|
|
1769
|
-
postPhoneNumberForgetPassword: () => postPhoneNumberForgetPassword,
|
|
1770
|
-
postPhoneNumberRequestPasswordReset: () => postPhoneNumberRequestPasswordReset,
|
|
1771
|
-
postPhoneNumberResetPassword: () => postPhoneNumberResetPassword,
|
|
1772
|
-
postPhoneNumberSendOtp: () => postPhoneNumberSendOtp,
|
|
1773
|
-
postPhoneNumberVerify: () => postPhoneNumberVerify,
|
|
1774
|
-
postSignInPhoneNumber: () => postSignInPhoneNumber
|
|
1775
|
-
});
|
|
1776
|
-
var postSignInPhoneNumber = (postSignInPhoneNumberBody, options) => {
|
|
1775
|
+
var postEmailOtpSendVerificationOtp = (postEmailOtpSendVerificationOtpBody, options) => {
|
|
1777
1776
|
return openfortApiClient(
|
|
1778
1777
|
{
|
|
1779
|
-
url: `/iam/v2/auth/
|
|
1778
|
+
url: `/iam/v2/auth/email-otp/send-verification-otp`,
|
|
1780
1779
|
method: "POST",
|
|
1781
1780
|
headers: { "Content-Type": "application/json" },
|
|
1782
|
-
data:
|
|
1781
|
+
data: postEmailOtpSendVerificationOtpBody
|
|
1783
1782
|
},
|
|
1784
1783
|
options
|
|
1785
1784
|
);
|
|
1786
1785
|
};
|
|
1787
|
-
var
|
|
1786
|
+
var checkVerificationOtp = (checkVerificationOtpBody, options) => {
|
|
1788
1787
|
return openfortApiClient(
|
|
1789
1788
|
{
|
|
1790
|
-
url: `/iam/v2/auth/
|
|
1789
|
+
url: `/iam/v2/auth/email-otp/check-verification-otp`,
|
|
1791
1790
|
method: "POST",
|
|
1792
1791
|
headers: { "Content-Type": "application/json" },
|
|
1793
|
-
data:
|
|
1792
|
+
data: checkVerificationOtpBody
|
|
1794
1793
|
},
|
|
1795
1794
|
options
|
|
1796
1795
|
);
|
|
1797
1796
|
};
|
|
1798
|
-
var
|
|
1797
|
+
var postEmailOtpVerifyEmail = (postEmailOtpVerifyEmailBody, options) => {
|
|
1799
1798
|
return openfortApiClient(
|
|
1800
1799
|
{
|
|
1801
|
-
url: `/iam/v2/auth/
|
|
1800
|
+
url: `/iam/v2/auth/email-otp/verify-email`,
|
|
1802
1801
|
method: "POST",
|
|
1803
1802
|
headers: { "Content-Type": "application/json" },
|
|
1804
|
-
data:
|
|
1803
|
+
data: postEmailOtpVerifyEmailBody
|
|
1805
1804
|
},
|
|
1806
1805
|
options
|
|
1807
1806
|
);
|
|
1808
1807
|
};
|
|
1809
|
-
var
|
|
1808
|
+
var postSignInEmailOtp = (postSignInEmailOtpBody, options) => {
|
|
1810
1809
|
return openfortApiClient(
|
|
1811
1810
|
{
|
|
1812
|
-
url: `/iam/v2/auth/
|
|
1811
|
+
url: `/iam/v2/auth/sign-in/email-otp`,
|
|
1813
1812
|
method: "POST",
|
|
1814
1813
|
headers: { "Content-Type": "application/json" },
|
|
1815
|
-
data:
|
|
1814
|
+
data: postSignInEmailOtpBody
|
|
1816
1815
|
},
|
|
1817
1816
|
options
|
|
1818
1817
|
);
|
|
1819
1818
|
};
|
|
1820
|
-
var
|
|
1819
|
+
var postForgetPasswordEmailOtp = (postForgetPasswordEmailOtpBody, options) => {
|
|
1821
1820
|
return openfortApiClient(
|
|
1822
1821
|
{
|
|
1823
|
-
url: `/iam/v2/auth/
|
|
1822
|
+
url: `/iam/v2/auth/forget-password/email-otp`,
|
|
1824
1823
|
method: "POST",
|
|
1825
1824
|
headers: { "Content-Type": "application/json" },
|
|
1826
|
-
data:
|
|
1825
|
+
data: postForgetPasswordEmailOtpBody
|
|
1827
1826
|
},
|
|
1828
1827
|
options
|
|
1829
1828
|
);
|
|
1830
1829
|
};
|
|
1831
|
-
var
|
|
1830
|
+
var postEmailOtpResetPassword = (postEmailOtpResetPasswordBody, options) => {
|
|
1832
1831
|
return openfortApiClient(
|
|
1833
1832
|
{
|
|
1834
|
-
url: `/iam/v2/auth/
|
|
1833
|
+
url: `/iam/v2/auth/email-otp/reset-password`,
|
|
1835
1834
|
method: "POST",
|
|
1836
1835
|
headers: { "Content-Type": "application/json" },
|
|
1837
|
-
data:
|
|
1836
|
+
data: postEmailOtpResetPasswordBody
|
|
1838
1837
|
},
|
|
1839
1838
|
options
|
|
1840
1839
|
);
|
|
1841
1840
|
};
|
|
1842
|
-
|
|
1843
|
-
// src/openapi-client/generated/auth/siwe/siwe.ts
|
|
1844
|
-
var siwe_exports = {};
|
|
1845
|
-
__export(siwe_exports, {
|
|
1846
|
-
getLinkSiweListWallets: () => getLinkSiweListWallets,
|
|
1847
|
-
postLinkSiweNonce: () => postLinkSiweNonce,
|
|
1848
|
-
postLinkSiweUnlink: () => postLinkSiweUnlink,
|
|
1849
|
-
postLinkSiweVerify: () => postLinkSiweVerify,
|
|
1850
|
-
postSiweNonce: () => postSiweNonce,
|
|
1851
|
-
postSiweVerify: () => postSiweVerify
|
|
1852
|
-
});
|
|
1853
1841
|
var postSiweNonce = (postSiweNonceBody, options) => {
|
|
1854
1842
|
return openfortApiClient(
|
|
1855
1843
|
{
|
|
@@ -1915,7 +1903,40 @@ var postLinkSiweUnlink = (postLinkSiweUnlinkBody, options) => {
|
|
|
1915
1903
|
);
|
|
1916
1904
|
};
|
|
1917
1905
|
|
|
1918
|
-
// src/openapi-client/generated/
|
|
1906
|
+
// src/openapi-client/generated/auth/openfortAuth.schemas.ts
|
|
1907
|
+
var openfortAuth_schemas_exports = {};
|
|
1908
|
+
__export(openfortAuth_schemas_exports, {
|
|
1909
|
+
CheckVerificationOtpBodyType: () => CheckVerificationOtpBodyType,
|
|
1910
|
+
PostChangeEmail200Message: () => PostChangeEmail200Message,
|
|
1911
|
+
PostLinkSiweUnlink400Code: () => PostLinkSiweUnlink400Code,
|
|
1912
|
+
PostLinkSiweVerify400Code: () => PostLinkSiweVerify400Code,
|
|
1913
|
+
PostLinkSiweVerify401Code: () => PostLinkSiweVerify401Code
|
|
1914
|
+
});
|
|
1915
|
+
var PostChangeEmail200Message = {
|
|
1916
|
+
Email_updated: "Email updated",
|
|
1917
|
+
Verification_email_sent: "Verification email sent"
|
|
1918
|
+
};
|
|
1919
|
+
var CheckVerificationOtpBodyType = {
|
|
1920
|
+
"email-verification": "email-verification",
|
|
1921
|
+
"sign-in": "sign-in",
|
|
1922
|
+
"forget-password": "forget-password"
|
|
1923
|
+
};
|
|
1924
|
+
var PostLinkSiweVerify400Code = {
|
|
1925
|
+
WALLET_ALREADY_LINKED: "WALLET_ALREADY_LINKED",
|
|
1926
|
+
BAD_REQUEST: "BAD_REQUEST"
|
|
1927
|
+
};
|
|
1928
|
+
var PostLinkSiweVerify401Code = {
|
|
1929
|
+
UNAUTHORIZED: "UNAUTHORIZED",
|
|
1930
|
+
INVALID_OR_EXPIRED_NONCE: "INVALID_OR_EXPIRED_NONCE",
|
|
1931
|
+
INVALID_SIGNATURE: "INVALID_SIGNATURE"
|
|
1932
|
+
};
|
|
1933
|
+
var PostLinkSiweUnlink400Code = {
|
|
1934
|
+
BAD_REQUEST: "BAD_REQUEST",
|
|
1935
|
+
CANNOT_UNLINK_LAST_ACCOUNT: "CANNOT_UNLINK_LAST_ACCOUNT",
|
|
1936
|
+
WALLET_NOT_FOUND: "WALLET_NOT_FOUND"
|
|
1937
|
+
};
|
|
1938
|
+
|
|
1939
|
+
// src/openapi-client/generated/auth-v1/auth-v1.ts
|
|
1919
1940
|
var refresh = (refreshTokenRequest, options) => {
|
|
1920
1941
|
return openfortApiClient(
|
|
1921
1942
|
{
|
|
@@ -2185,7 +2206,7 @@ var me = (options) => {
|
|
|
2185
2206
|
);
|
|
2186
2207
|
};
|
|
2187
2208
|
|
|
2188
|
-
// src/openapi-client/generated/
|
|
2209
|
+
// src/openapi-client/generated/auth-v2/auth-v2.ts
|
|
2189
2210
|
var meV2 = (options) => {
|
|
2190
2211
|
return openfortApiClient(
|
|
2191
2212
|
{
|
|
@@ -2506,6 +2527,27 @@ var query = (queryBody, options) => {
|
|
|
2506
2527
|
);
|
|
2507
2528
|
};
|
|
2508
2529
|
|
|
2530
|
+
// src/openapi-client/generated/logs/logs.ts
|
|
2531
|
+
var getProjectLogs = (params, options) => {
|
|
2532
|
+
return openfortApiClient(
|
|
2533
|
+
{
|
|
2534
|
+
url: `/v1/logs`,
|
|
2535
|
+
method: "GET",
|
|
2536
|
+
params
|
|
2537
|
+
},
|
|
2538
|
+
options
|
|
2539
|
+
);
|
|
2540
|
+
};
|
|
2541
|
+
var getWebhookLogsByProjectId = (options) => {
|
|
2542
|
+
return openfortApiClient(
|
|
2543
|
+
{
|
|
2544
|
+
url: `/v1/logs/webhook`,
|
|
2545
|
+
method: "GET"
|
|
2546
|
+
},
|
|
2547
|
+
options
|
|
2548
|
+
);
|
|
2549
|
+
};
|
|
2550
|
+
|
|
2509
2551
|
// src/openapi-client/generated/onramp/onramp.ts
|
|
2510
2552
|
var createOnrampSession = (onrampSessionRequest, options) => {
|
|
2511
2553
|
return openfortApiClient(
|
|
@@ -2756,6 +2798,10 @@ var AuthProviderResponseV2 = {
|
|
|
2756
2798
|
oidc: "oidc",
|
|
2757
2799
|
siwe: "siwe"
|
|
2758
2800
|
};
|
|
2801
|
+
var PregenerateAccountResponseCustody = {
|
|
2802
|
+
Developer: "Developer",
|
|
2803
|
+
User: "User"
|
|
2804
|
+
};
|
|
2759
2805
|
var ThirdPartyOAuthProvider = {
|
|
2760
2806
|
accelbyte: "accelbyte",
|
|
2761
2807
|
firebase: "firebase",
|
|
@@ -2791,6 +2837,9 @@ var BackendWalletResponseChainType = {
|
|
|
2791
2837
|
EVM: "EVM",
|
|
2792
2838
|
SVM: "SVM"
|
|
2793
2839
|
};
|
|
2840
|
+
var BackendWalletResponseCustody = {
|
|
2841
|
+
Developer: "Developer"
|
|
2842
|
+
};
|
|
2794
2843
|
var BackendWalletListResponseObject = {
|
|
2795
2844
|
list: "list"
|
|
2796
2845
|
};
|
|
@@ -2838,6 +2887,10 @@ var RevokeWalletSecretResponseObject = {
|
|
|
2838
2887
|
var RotateWalletSecretResponseObject = {
|
|
2839
2888
|
walletSecretRotation: "walletSecretRotation"
|
|
2840
2889
|
};
|
|
2890
|
+
var AccountV2ResponseCustody = {
|
|
2891
|
+
Developer: "Developer",
|
|
2892
|
+
User: "User"
|
|
2893
|
+
};
|
|
2841
2894
|
var AccountListQueriesV2ChainType = {
|
|
2842
2895
|
EVM: "EVM",
|
|
2843
2896
|
SVM: "SVM"
|
|
@@ -4538,9 +4591,7 @@ var Openfort = class {
|
|
|
4538
4591
|
/** Update a contract */
|
|
4539
4592
|
update: updateContract,
|
|
4540
4593
|
/** Delete a contract */
|
|
4541
|
-
delete: deleteContract
|
|
4542
|
-
/** Read a contract */
|
|
4543
|
-
read: readContract
|
|
4594
|
+
delete: deleteContract
|
|
4544
4595
|
};
|
|
4545
4596
|
}
|
|
4546
4597
|
// ============================================
|
|
@@ -4722,7 +4773,6 @@ var Openfort = class {
|
|
|
4722
4773
|
* // V2 (default) - Users
|
|
4723
4774
|
* const users = await openfort.iam.users.list();
|
|
4724
4775
|
* const user = await openfort.iam.users.get('usr_...');
|
|
4725
|
-
* await openfort.iam.users.pregenerate({ email: 'user@example.com' }, shieldConfig);
|
|
4726
4776
|
*
|
|
4727
4777
|
* // V1 - Players
|
|
4728
4778
|
* const players = await openfort.iam.v1.players.list();
|
|
@@ -4740,15 +4790,7 @@ var Openfort = class {
|
|
|
4740
4790
|
/** Get an authenticated user by ID */
|
|
4741
4791
|
get: getAuthUser,
|
|
4742
4792
|
/** Delete a user */
|
|
4743
|
-
delete: deleteUser
|
|
4744
|
-
/**
|
|
4745
|
-
* Pre-generate a user with an embedded account before they authenticate.
|
|
4746
|
-
* Creates a user record and an embedded account.
|
|
4747
|
-
* @param req - The pregenerate user request
|
|
4748
|
-
* @param shieldConfig - Optional Shield configuration for storing the recovery share
|
|
4749
|
-
* @returns The pregenerated account response
|
|
4750
|
-
*/
|
|
4751
|
-
pregenerate: this.pregenerateUser.bind(this)
|
|
4793
|
+
delete: deleteUser
|
|
4752
4794
|
},
|
|
4753
4795
|
/** OAuth configuration */
|
|
4754
4796
|
authProvidersConfig: {
|
|
@@ -4794,7 +4836,7 @@ var Openfort = class {
|
|
|
4794
4836
|
*/
|
|
4795
4837
|
getSession(options) {
|
|
4796
4838
|
const { accessToken, disableCookieCache } = options;
|
|
4797
|
-
return
|
|
4839
|
+
return auth_v2_exports.getGetSession(
|
|
4798
4840
|
disableCookieCache !== void 0 ? { disableCookieCache } : void 0,
|
|
4799
4841
|
{ accessToken }
|
|
4800
4842
|
);
|
|
@@ -4967,6 +5009,7 @@ var index_default = Openfort;
|
|
|
4967
5009
|
AccountListQueriesV2Custody,
|
|
4968
5010
|
AccountNotFoundError,
|
|
4969
5011
|
AccountResponseExpandable,
|
|
5012
|
+
AccountV2ResponseCustody,
|
|
4970
5013
|
Actions,
|
|
4971
5014
|
ApiKeyType,
|
|
4972
5015
|
AuthMigrationStatus,
|
|
@@ -4978,6 +5021,7 @@ var index_default = Openfort;
|
|
|
4978
5021
|
BackendWalletListQueriesChainType,
|
|
4979
5022
|
BackendWalletListResponseObject,
|
|
4980
5023
|
BackendWalletResponseChainType,
|
|
5024
|
+
BackendWalletResponseCustody,
|
|
4981
5025
|
BackendWalletResponseObject,
|
|
4982
5026
|
BasicAuthProvider,
|
|
4983
5027
|
BasicAuthProviderEMAIL,
|
|
@@ -5065,6 +5109,7 @@ var index_default = Openfort;
|
|
|
5065
5109
|
PolicyRuleTypeACCOUNT,
|
|
5066
5110
|
PolicyRuleTypeCONTRACT,
|
|
5067
5111
|
PolicyRuleTypeRATELIMIT,
|
|
5112
|
+
PregenerateAccountResponseCustody,
|
|
5068
5113
|
PregenerateUserRequestV2AccountType,
|
|
5069
5114
|
PregenerateUserRequestV2ChainType,
|
|
5070
5115
|
PrismaSortOrder,
|
|
@@ -5112,14 +5157,11 @@ var index_default = Openfort;
|
|
|
5112
5157
|
UserProjectRoleMEMBER,
|
|
5113
5158
|
UserProjectUpdateRequestRole,
|
|
5114
5159
|
ValidationError,
|
|
5115
|
-
authAnonymous,
|
|
5116
5160
|
authApi,
|
|
5117
|
-
authEmailOtp,
|
|
5118
|
-
authPhoneNumber,
|
|
5119
5161
|
authSchemas,
|
|
5120
|
-
authSiwe,
|
|
5121
5162
|
authenticateSIWE,
|
|
5122
5163
|
authorize,
|
|
5164
|
+
callbackOAuth,
|
|
5123
5165
|
cancelTransferAccountOwnership,
|
|
5124
5166
|
cancelTransferOwnership,
|
|
5125
5167
|
completeRecovery,
|
|
@@ -5161,6 +5203,7 @@ var index_default = Openfort;
|
|
|
5161
5203
|
deleteTrigger,
|
|
5162
5204
|
deleteUser,
|
|
5163
5205
|
deployAccount,
|
|
5206
|
+
deprecatedCallbackOAuth,
|
|
5164
5207
|
disableAccount,
|
|
5165
5208
|
disablePolicy,
|
|
5166
5209
|
enablePolicy,
|
|
@@ -5198,6 +5241,7 @@ var index_default = Openfort;
|
|
|
5198
5241
|
getPolicyReportTransactionIntents,
|
|
5199
5242
|
getPolicyRules,
|
|
5200
5243
|
getPolicyTotalGasUsage,
|
|
5244
|
+
getProjectLogs,
|
|
5201
5245
|
getSession,
|
|
5202
5246
|
getSignerIdByAddress,
|
|
5203
5247
|
getSubscription,
|
|
@@ -5207,6 +5251,8 @@ var index_default = Openfort;
|
|
|
5207
5251
|
getTrigger,
|
|
5208
5252
|
getTriggers,
|
|
5209
5253
|
getVerificationPayload,
|
|
5254
|
+
getWebhookLogsByProjectId,
|
|
5255
|
+
grantOAuth,
|
|
5210
5256
|
handleChainRpcRequest,
|
|
5211
5257
|
handleRpcRequest,
|
|
5212
5258
|
importPrivateKey,
|