@openfort/openfort-node 0.9.0 → 0.9.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 +14 -0
- package/dist/index.d.mts +977 -781
- package/dist/index.d.ts +977 -781
- package/dist/index.js +90 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +82 -3
- package/dist/index.mjs.map +1 -1
- package/openapi.json +321 -0
- package/package.json +16 -16
- package/pnpm-workspace.yaml +0 -11
package/openapi.json
CHANGED
|
@@ -7953,6 +7953,145 @@
|
|
|
7953
7953
|
"type": "object",
|
|
7954
7954
|
"additionalProperties": false
|
|
7955
7955
|
},
|
|
7956
|
+
"UpdateBackendWalletResponse": {
|
|
7957
|
+
"description": "Response from updating a backend wallet.",
|
|
7958
|
+
"properties": {
|
|
7959
|
+
"object": {
|
|
7960
|
+
"type": "string",
|
|
7961
|
+
"enum": ["backendWallet"],
|
|
7962
|
+
"nullable": false,
|
|
7963
|
+
"description": "The type of object."
|
|
7964
|
+
},
|
|
7965
|
+
"id": {
|
|
7966
|
+
"type": "string",
|
|
7967
|
+
"description": "The wallet ID (starts with `acc_`).",
|
|
7968
|
+
"example": "acc_e0b84653-1741-4a3d-9e91-2b0fd2942f60"
|
|
7969
|
+
},
|
|
7970
|
+
"address": {
|
|
7971
|
+
"type": "string",
|
|
7972
|
+
"description": "The wallet address.",
|
|
7973
|
+
"example": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
|
|
7974
|
+
},
|
|
7975
|
+
"chainType": {
|
|
7976
|
+
"type": "string",
|
|
7977
|
+
"enum": ["EVM", "SVM"],
|
|
7978
|
+
"description": "The chain type the wallet is associated with.",
|
|
7979
|
+
"example": "EVM"
|
|
7980
|
+
},
|
|
7981
|
+
"custody": {
|
|
7982
|
+
"type": "string",
|
|
7983
|
+
"enum": ["Developer"],
|
|
7984
|
+
"nullable": false,
|
|
7985
|
+
"description": "Key custody: always \"Developer\" for backend wallets (server-managed keys in TEE).",
|
|
7986
|
+
"example": "Developer"
|
|
7987
|
+
},
|
|
7988
|
+
"accountType": {
|
|
7989
|
+
"type": "string",
|
|
7990
|
+
"description": "The current account type.",
|
|
7991
|
+
"example": "Delegated Account"
|
|
7992
|
+
},
|
|
7993
|
+
"createdAt": {
|
|
7994
|
+
"type": "integer",
|
|
7995
|
+
"format": "int32",
|
|
7996
|
+
"description": "Creation timestamp (Unix epoch seconds)."
|
|
7997
|
+
},
|
|
7998
|
+
"updatedAt": {
|
|
7999
|
+
"type": "integer",
|
|
8000
|
+
"format": "int32",
|
|
8001
|
+
"description": "Last updated timestamp (Unix epoch seconds)."
|
|
8002
|
+
},
|
|
8003
|
+
"delegatedAccount": {
|
|
8004
|
+
"properties": {
|
|
8005
|
+
"chain": {
|
|
8006
|
+
"properties": {
|
|
8007
|
+
"chainId": {
|
|
8008
|
+
"type": "integer",
|
|
8009
|
+
"format": "int32",
|
|
8010
|
+
"description": "The chain ID.",
|
|
8011
|
+
"example": 8453
|
|
8012
|
+
},
|
|
8013
|
+
"chainType": {
|
|
8014
|
+
"type": "string",
|
|
8015
|
+
"enum": ["EVM", "SVM"],
|
|
8016
|
+
"description": "The chain type.",
|
|
8017
|
+
"example": "EVM"
|
|
8018
|
+
}
|
|
8019
|
+
},
|
|
8020
|
+
"required": ["chainId", "chainType"],
|
|
8021
|
+
"type": "object",
|
|
8022
|
+
"description": "The chain configuration for this delegation."
|
|
8023
|
+
},
|
|
8024
|
+
"implementationAddress": {
|
|
8025
|
+
"type": "string",
|
|
8026
|
+
"description": "The implementation contract address.",
|
|
8027
|
+
"example": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
|
|
8028
|
+
},
|
|
8029
|
+
"implementationType": {
|
|
8030
|
+
"type": "string",
|
|
8031
|
+
"description": "The implementation type used for delegation.",
|
|
8032
|
+
"example": "Calibur"
|
|
8033
|
+
},
|
|
8034
|
+
"id": {
|
|
8035
|
+
"type": "string",
|
|
8036
|
+
"description": "The delegated account ID (starts with `acc_`).",
|
|
8037
|
+
"example": "acc_e0b84653-1741-4a3d-9e91-2b0fd2942f60"
|
|
8038
|
+
}
|
|
8039
|
+
},
|
|
8040
|
+
"required": [
|
|
8041
|
+
"chain",
|
|
8042
|
+
"implementationAddress",
|
|
8043
|
+
"implementationType",
|
|
8044
|
+
"id"
|
|
8045
|
+
],
|
|
8046
|
+
"type": "object",
|
|
8047
|
+
"description": "Present when the wallet has been upgraded to a delegated account."
|
|
8048
|
+
}
|
|
8049
|
+
},
|
|
8050
|
+
"required": [
|
|
8051
|
+
"object",
|
|
8052
|
+
"id",
|
|
8053
|
+
"address",
|
|
8054
|
+
"chainType",
|
|
8055
|
+
"custody",
|
|
8056
|
+
"accountType",
|
|
8057
|
+
"createdAt",
|
|
8058
|
+
"updatedAt"
|
|
8059
|
+
],
|
|
8060
|
+
"type": "object",
|
|
8061
|
+
"additionalProperties": false
|
|
8062
|
+
},
|
|
8063
|
+
"UpdateBackendWalletRequest": {
|
|
8064
|
+
"description": "Request to update a backend wallet.\n\nAll fields are optional — only provide the fields you want to update.\nCurrently supports upgrading to a Delegated Account (EIP-7702).",
|
|
8065
|
+
"properties": {
|
|
8066
|
+
"accountType": {
|
|
8067
|
+
"type": "string",
|
|
8068
|
+
"enum": ["Delegated Account"],
|
|
8069
|
+
"nullable": false,
|
|
8070
|
+
"description": "Upgrade the account type. Currently only supports upgrading to \"Delegated Account\".",
|
|
8071
|
+
"example": "Delegated Account"
|
|
8072
|
+
},
|
|
8073
|
+
"chainType": {
|
|
8074
|
+
"type": "string",
|
|
8075
|
+
"enum": ["EVM", "SVM"],
|
|
8076
|
+
"description": "The chain type.",
|
|
8077
|
+
"example": "EVM"
|
|
8078
|
+
},
|
|
8079
|
+
"chainId": {
|
|
8080
|
+
"type": "integer",
|
|
8081
|
+
"format": "int32",
|
|
8082
|
+
"description": "The chain ID. Must be a [supported chain](/development/chains).",
|
|
8083
|
+
"example": 8453
|
|
8084
|
+
},
|
|
8085
|
+
"implementationType": {
|
|
8086
|
+
"type": "string",
|
|
8087
|
+
"description": "The implementation type for delegation (e.g., \"Calibur\", \"CaliburV9\").\nRequired when accountType is \"Delegated Account\".",
|
|
8088
|
+
"example": "Calibur"
|
|
8089
|
+
}
|
|
8090
|
+
},
|
|
8091
|
+
"required": ["chainType", "chainId"],
|
|
8092
|
+
"type": "object",
|
|
8093
|
+
"additionalProperties": false
|
|
8094
|
+
},
|
|
7956
8095
|
"DeleteBackendWalletResponse": {
|
|
7957
8096
|
"description": "Response from deleting a backend wallet.",
|
|
7958
8097
|
"properties": {
|
|
@@ -8631,6 +8770,135 @@
|
|
|
8631
8770
|
"type": "object",
|
|
8632
8771
|
"additionalProperties": false
|
|
8633
8772
|
},
|
|
8773
|
+
"UsageAlert": {
|
|
8774
|
+
"properties": {
|
|
8775
|
+
"type": {
|
|
8776
|
+
"type": "string",
|
|
8777
|
+
"enum": ["warning", "critical", "info"]
|
|
8778
|
+
},
|
|
8779
|
+
"message": {
|
|
8780
|
+
"type": "string"
|
|
8781
|
+
},
|
|
8782
|
+
"percentUsed": {
|
|
8783
|
+
"type": "number",
|
|
8784
|
+
"format": "double"
|
|
8785
|
+
}
|
|
8786
|
+
},
|
|
8787
|
+
"required": ["type", "message", "percentUsed"],
|
|
8788
|
+
"type": "object",
|
|
8789
|
+
"additionalProperties": false
|
|
8790
|
+
},
|
|
8791
|
+
"UsageSummaryResponse": {
|
|
8792
|
+
"properties": {
|
|
8793
|
+
"plan": {
|
|
8794
|
+
"properties": {
|
|
8795
|
+
"priceUsd": {
|
|
8796
|
+
"type": "integer",
|
|
8797
|
+
"format": "int32"
|
|
8798
|
+
},
|
|
8799
|
+
"name": {
|
|
8800
|
+
"type": "string"
|
|
8801
|
+
},
|
|
8802
|
+
"tier": {
|
|
8803
|
+
"type": "string"
|
|
8804
|
+
}
|
|
8805
|
+
},
|
|
8806
|
+
"required": ["priceUsd", "name", "tier"],
|
|
8807
|
+
"type": "object"
|
|
8808
|
+
},
|
|
8809
|
+
"operations": {
|
|
8810
|
+
"properties": {
|
|
8811
|
+
"estimatedOverageCostUsd": {
|
|
8812
|
+
"type": "number",
|
|
8813
|
+
"format": "double",
|
|
8814
|
+
"nullable": true
|
|
8815
|
+
},
|
|
8816
|
+
"overageCount": {
|
|
8817
|
+
"type": "integer",
|
|
8818
|
+
"format": "int32"
|
|
8819
|
+
},
|
|
8820
|
+
"percentUsed": {
|
|
8821
|
+
"type": "number",
|
|
8822
|
+
"format": "double"
|
|
8823
|
+
},
|
|
8824
|
+
"included": {
|
|
8825
|
+
"type": "integer",
|
|
8826
|
+
"format": "int32"
|
|
8827
|
+
},
|
|
8828
|
+
"current": {
|
|
8829
|
+
"type": "integer",
|
|
8830
|
+
"format": "int32"
|
|
8831
|
+
}
|
|
8832
|
+
},
|
|
8833
|
+
"required": [
|
|
8834
|
+
"estimatedOverageCostUsd",
|
|
8835
|
+
"overageCount",
|
|
8836
|
+
"percentUsed",
|
|
8837
|
+
"included",
|
|
8838
|
+
"current"
|
|
8839
|
+
],
|
|
8840
|
+
"type": "object"
|
|
8841
|
+
},
|
|
8842
|
+
"billingPeriod": {
|
|
8843
|
+
"properties": {
|
|
8844
|
+
"end": {
|
|
8845
|
+
"type": "string"
|
|
8846
|
+
},
|
|
8847
|
+
"start": {
|
|
8848
|
+
"type": "string"
|
|
8849
|
+
}
|
|
8850
|
+
},
|
|
8851
|
+
"required": ["end", "start"],
|
|
8852
|
+
"type": "object"
|
|
8853
|
+
},
|
|
8854
|
+
"alerts": {
|
|
8855
|
+
"items": {
|
|
8856
|
+
"$ref": "#/components/schemas/UsageAlert"
|
|
8857
|
+
},
|
|
8858
|
+
"type": "array"
|
|
8859
|
+
}
|
|
8860
|
+
},
|
|
8861
|
+
"required": ["plan", "operations", "billingPeriod", "alerts"],
|
|
8862
|
+
"type": "object",
|
|
8863
|
+
"additionalProperties": false
|
|
8864
|
+
},
|
|
8865
|
+
"MonthlyUsageHistoryResponse": {
|
|
8866
|
+
"properties": {
|
|
8867
|
+
"months": {
|
|
8868
|
+
"items": {
|
|
8869
|
+
"properties": {
|
|
8870
|
+
"overageCostUsd": {
|
|
8871
|
+
"type": "number",
|
|
8872
|
+
"format": "double",
|
|
8873
|
+
"nullable": true
|
|
8874
|
+
},
|
|
8875
|
+
"operationsIncluded": {
|
|
8876
|
+
"type": "integer",
|
|
8877
|
+
"format": "int32"
|
|
8878
|
+
},
|
|
8879
|
+
"operationsCount": {
|
|
8880
|
+
"type": "integer",
|
|
8881
|
+
"format": "int32"
|
|
8882
|
+
},
|
|
8883
|
+
"month": {
|
|
8884
|
+
"type": "string"
|
|
8885
|
+
}
|
|
8886
|
+
},
|
|
8887
|
+
"required": [
|
|
8888
|
+
"overageCostUsd",
|
|
8889
|
+
"operationsIncluded",
|
|
8890
|
+
"operationsCount",
|
|
8891
|
+
"month"
|
|
8892
|
+
],
|
|
8893
|
+
"type": "object"
|
|
8894
|
+
},
|
|
8895
|
+
"type": "array"
|
|
8896
|
+
}
|
|
8897
|
+
},
|
|
8898
|
+
"required": ["months"],
|
|
8899
|
+
"type": "object",
|
|
8900
|
+
"additionalProperties": false
|
|
8901
|
+
},
|
|
8634
8902
|
"ApiKeyResponse": {
|
|
8635
8903
|
"properties": {
|
|
8636
8904
|
"id": {
|
|
@@ -19368,6 +19636,59 @@
|
|
|
19368
19636
|
}
|
|
19369
19637
|
]
|
|
19370
19638
|
},
|
|
19639
|
+
"put": {
|
|
19640
|
+
"operationId": "updateBackendWallet",
|
|
19641
|
+
"responses": {
|
|
19642
|
+
"200": {
|
|
19643
|
+
"description": "Successful response.",
|
|
19644
|
+
"content": {
|
|
19645
|
+
"application/json": {
|
|
19646
|
+
"schema": {
|
|
19647
|
+
"$ref": "#/components/schemas/UpdateBackendWalletResponse"
|
|
19648
|
+
}
|
|
19649
|
+
}
|
|
19650
|
+
}
|
|
19651
|
+
},
|
|
19652
|
+
"400": {
|
|
19653
|
+
"description": "Bad request."
|
|
19654
|
+
},
|
|
19655
|
+
"401": {
|
|
19656
|
+
"description": "Unauthorized."
|
|
19657
|
+
},
|
|
19658
|
+
"404": {
|
|
19659
|
+
"description": "Wallet not found."
|
|
19660
|
+
}
|
|
19661
|
+
},
|
|
19662
|
+
"description": "Update a backend wallet.\n\nCurrently supports upgrading an EOA backend wallet to a Delegated Account (EIP-7702).\nProvide the target accountType along with the required delegation parameters (chainId, implementationType).",
|
|
19663
|
+
"summary": "Update backend wallet.",
|
|
19664
|
+
"tags": ["Backend Wallets"],
|
|
19665
|
+
"security": [
|
|
19666
|
+
{
|
|
19667
|
+
"sk": []
|
|
19668
|
+
}
|
|
19669
|
+
],
|
|
19670
|
+
"parameters": [
|
|
19671
|
+
{
|
|
19672
|
+
"description": "The wallet ID (starts with acc_).",
|
|
19673
|
+
"in": "path",
|
|
19674
|
+
"name": "id",
|
|
19675
|
+
"required": true,
|
|
19676
|
+
"schema": {
|
|
19677
|
+
"type": "string"
|
|
19678
|
+
}
|
|
19679
|
+
}
|
|
19680
|
+
],
|
|
19681
|
+
"requestBody": {
|
|
19682
|
+
"required": true,
|
|
19683
|
+
"content": {
|
|
19684
|
+
"application/json": {
|
|
19685
|
+
"schema": {
|
|
19686
|
+
"$ref": "#/components/schemas/UpdateBackendWalletRequest"
|
|
19687
|
+
}
|
|
19688
|
+
}
|
|
19689
|
+
}
|
|
19690
|
+
}
|
|
19691
|
+
},
|
|
19371
19692
|
"delete": {
|
|
19372
19693
|
"operationId": "deleteBackendWallet",
|
|
19373
19694
|
"responses": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfort/openfort-node",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "Openfort Node SDK",
|
|
5
5
|
"author": "Openfort",
|
|
6
6
|
"repository": {
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
"registry": "https://registry.npmjs.org/"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@openfort/shield-js": "^0.1.
|
|
43
|
-
"@types/node": "
|
|
44
|
-
"@types/node-fetch": "^2.
|
|
45
|
-
"axios": "^1.
|
|
42
|
+
"@openfort/shield-js": "^0.1.35",
|
|
43
|
+
"@types/node": "^25.3.2",
|
|
44
|
+
"@types/node-fetch": "^2.6.13",
|
|
45
|
+
"axios": "^1.13.6",
|
|
46
46
|
"axios-retry": "^4.5.0",
|
|
47
47
|
"bs58": "^6.0.0",
|
|
48
|
-
"jose": "^5.
|
|
49
|
-
"node-fetch": "^2.
|
|
50
|
-
"viem": "^2.
|
|
48
|
+
"jose": "^5.10.0",
|
|
49
|
+
"node-fetch": "^2.7.0",
|
|
50
|
+
"viem": "^2.46.3",
|
|
51
51
|
"zod": "^3.25.76"
|
|
52
52
|
},
|
|
53
53
|
"simple-git-hooks": {
|
|
@@ -55,17 +55,17 @@
|
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
58
|
-
"@biomejs/biome": "^2.
|
|
59
|
-
"@changesets/changelog-github": "^0.
|
|
60
|
-
"@changesets/cli": "^2.29.
|
|
61
|
-
"@vitest/coverage-v8": "^3.
|
|
62
|
-
"knip": "^5.
|
|
63
|
-
"orval": "^8.
|
|
58
|
+
"@biomejs/biome": "^2.4.4",
|
|
59
|
+
"@changesets/changelog-github": "^0.5.2",
|
|
60
|
+
"@changesets/cli": "^2.29.8",
|
|
61
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
62
|
+
"knip": "^5.85.0",
|
|
63
|
+
"orval": "^8.5.1",
|
|
64
64
|
"publint": "^0.2.12",
|
|
65
65
|
"simple-git-hooks": "^2.13.1",
|
|
66
66
|
"tsup": "^8.5.1",
|
|
67
|
-
"typescript": "^5.
|
|
68
|
-
"vitest": "^3.
|
|
67
|
+
"typescript": "^5.9.3",
|
|
68
|
+
"vitest": "^3.2.4"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"prebuild": "node -p \"'export const VERSION = ' + JSON.stringify(require('./package.json').version) + ';\\nexport const PACKAGE = ' + JSON.stringify(require('./package.json').name) + ';'\" > src/version.ts",
|
package/pnpm-workspace.yaml
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
overrides:
|
|
2
|
-
'@orval/core@<7.19.0': '>=7.19.0'
|
|
3
|
-
'@orval/core@>=7.19.0 <7.21.0': '>=7.21.0'
|
|
4
|
-
'@orval/core@>=8.0.0-rc.0 <8.0.2': '>=8.0.2'
|
|
5
|
-
'@orval/mcp@<7.18.0': '>=7.18.0'
|
|
6
|
-
'@orval/mock@<7.20.0': '>=7.20.0'
|
|
7
|
-
ajv@>=7.0.0-alpha.0 <8.18.0: '>=8.18.0'
|
|
8
|
-
axios@<=1.13.4: '>=1.13.5'
|
|
9
|
-
lodash@>=4.0.0 <=4.17.22: '>=4.17.23'
|
|
10
|
-
minimatch@>=5.0.0 <5.1.7: '>=5.1.7'
|
|
11
|
-
minimatch@>=9.0.0 <9.0.6: '>=9.0.6'
|