@openfort/openfort-node 0.9.2 → 0.10.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/CHANGELOG.md +12 -0
- package/dist/index.d.mts +559 -582
- package/dist/index.d.ts +559 -582
- package/dist/index.js +539 -189
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +538 -182
- package/dist/index.mjs.map +1 -1
- package/examples/evm/delegation/sendTransaction.ts +34 -0
- package/examples/evm/policies/createAccountPolicy.ts +68 -0
- package/examples/evm/policies/createProjectPolicy.ts +53 -0
- package/examples/evm/policies/deletePolicy.ts +34 -0
- package/examples/evm/policies/getPolicyById.ts +34 -0
- package/examples/evm/policies/listAccountPolicies.ts +11 -0
- package/examples/evm/policies/listPolicies.ts +11 -0
- package/examples/evm/policies/listProjectPolicies.ts +11 -0
- package/examples/evm/policies/signTypedDataPolicy.ts +35 -0
- package/examples/evm/policies/updatePolicy.ts +44 -0
- package/examples/evm/policies/validation.ts +45 -0
- package/examples/evm/transactions/sendTransaction.ts +44 -0
- package/examples/package.json +13 -0
- package/examples/pnpm-lock.yaml +933 -0
- package/examples/solana/policies/createSolAllowlistPolicy.ts +27 -0
- package/examples/solana/policies/createSolMessagePolicy.ts +29 -0
- package/examples/solana/policies/createSplTokenLimitsPolicy.ts +33 -0
- package/examples/solana/transactions/sendRawTransaction.ts +23 -0
- package/examples/solana/transactions/sendTransaction.ts +37 -0
- package/examples/solana/transactions/transfer.ts +44 -0
- package/knip.json +10 -1
- package/openapi.json +28 -637
- package/package.json +42 -4
- package/tsconfig.json +3 -4
- package/examples/policies/createAccountPolicy.ts +0 -71
- package/examples/policies/createEvmPolicy.ts +0 -149
- package/examples/policies/createSolanaPolicy.ts +0 -176
- package/examples/policies/createTypedDataPolicy.ts +0 -159
- package/examples/policies/deletePolicy.ts +0 -34
- package/examples/policies/getPolicy.ts +0 -41
- package/examples/policies/listPolicies.ts +0 -34
- package/examples/policies/multiRulePolicy.ts +0 -133
- package/examples/policies/updatePolicy.ts +0 -77
- package/examples/policies/validatePolicy.ts +0 -176
- /package/examples/{contracts → evm/contracts}/createContract.ts +0 -0
- /package/examples/{contracts → evm/contracts}/listContracts.ts +0 -0
- /package/examples/{transactions → evm/transactionIntents}/createTransactionIntent.ts +0 -0
- /package/examples/{transactions → evm/transactionIntents}/estimateGas.ts +0 -0
- /package/examples/{transactions → evm/transactionIntents}/getTransactionIntent.ts +0 -0
- /package/examples/{transactions → evm/transactionIntents}/listTransactionIntents.ts +0 -0
package/openapi.json
CHANGED
|
@@ -5575,6 +5575,13 @@
|
|
|
5575
5575
|
},
|
|
5576
5576
|
"active": {
|
|
5577
5577
|
"type": "boolean"
|
|
5578
|
+
},
|
|
5579
|
+
"ownerAddress": {
|
|
5580
|
+
"type": "string"
|
|
5581
|
+
},
|
|
5582
|
+
"chainId": {
|
|
5583
|
+
"type": "number",
|
|
5584
|
+
"format": "double"
|
|
5578
5585
|
}
|
|
5579
5586
|
},
|
|
5580
5587
|
"required": ["implementationType", "implementationAddress", "active"],
|
|
@@ -5655,7 +5662,7 @@
|
|
|
5655
5662
|
"custody": {
|
|
5656
5663
|
"type": "string",
|
|
5657
5664
|
"enum": ["Developer", "User"],
|
|
5658
|
-
"description": "Indicates key custody: \"Developer\" for
|
|
5665
|
+
"description": "Indicates key custody: \"Developer\" for TEE managed keys, \"User\" for user-managed keys.",
|
|
5659
5666
|
"example": "Developer"
|
|
5660
5667
|
},
|
|
5661
5668
|
"recoveryShare": {
|
|
@@ -7769,136 +7776,6 @@
|
|
|
7769
7776
|
"type": "object",
|
|
7770
7777
|
"additionalProperties": false
|
|
7771
7778
|
},
|
|
7772
|
-
"BackendWalletResponse": {
|
|
7773
|
-
"description": "Backend wallet details response.",
|
|
7774
|
-
"properties": {
|
|
7775
|
-
"object": {
|
|
7776
|
-
"type": "string",
|
|
7777
|
-
"enum": ["backendWallet"],
|
|
7778
|
-
"nullable": false,
|
|
7779
|
-
"description": "The type of object."
|
|
7780
|
-
},
|
|
7781
|
-
"id": {
|
|
7782
|
-
"type": "string",
|
|
7783
|
-
"description": "The wallet ID (starts with `acc_`).",
|
|
7784
|
-
"example": "acc_e0b84653-1741-4a3d-9e91-2b0fd2942f60"
|
|
7785
|
-
},
|
|
7786
|
-
"address": {
|
|
7787
|
-
"type": "string",
|
|
7788
|
-
"description": "The wallet address.",
|
|
7789
|
-
"example": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
|
|
7790
|
-
},
|
|
7791
|
-
"chainType": {
|
|
7792
|
-
"type": "string",
|
|
7793
|
-
"enum": ["EVM", "SVM"],
|
|
7794
|
-
"description": "The chain type the wallet is associated with.",
|
|
7795
|
-
"example": "EVM"
|
|
7796
|
-
},
|
|
7797
|
-
"custody": {
|
|
7798
|
-
"type": "string",
|
|
7799
|
-
"enum": ["Developer"],
|
|
7800
|
-
"nullable": false,
|
|
7801
|
-
"description": "Key custody: always \"Developer\" for backend wallets (server-managed keys in TEE).",
|
|
7802
|
-
"example": "Developer"
|
|
7803
|
-
},
|
|
7804
|
-
"createdAt": {
|
|
7805
|
-
"type": "integer",
|
|
7806
|
-
"format": "int32",
|
|
7807
|
-
"description": "Creation timestamp (Unix epoch seconds)."
|
|
7808
|
-
},
|
|
7809
|
-
"updatedAt": {
|
|
7810
|
-
"type": "integer",
|
|
7811
|
-
"format": "int32",
|
|
7812
|
-
"description": "Last updated timestamp (Unix epoch seconds)."
|
|
7813
|
-
}
|
|
7814
|
-
},
|
|
7815
|
-
"required": [
|
|
7816
|
-
"object",
|
|
7817
|
-
"id",
|
|
7818
|
-
"address",
|
|
7819
|
-
"chainType",
|
|
7820
|
-
"custody",
|
|
7821
|
-
"createdAt",
|
|
7822
|
-
"updatedAt"
|
|
7823
|
-
],
|
|
7824
|
-
"type": "object",
|
|
7825
|
-
"additionalProperties": false
|
|
7826
|
-
},
|
|
7827
|
-
"BackendWalletListResponse": {
|
|
7828
|
-
"description": "List of backend wallets response.",
|
|
7829
|
-
"properties": {
|
|
7830
|
-
"object": {
|
|
7831
|
-
"type": "string",
|
|
7832
|
-
"enum": ["list"],
|
|
7833
|
-
"nullable": false,
|
|
7834
|
-
"description": "The type of object."
|
|
7835
|
-
},
|
|
7836
|
-
"url": {
|
|
7837
|
-
"type": "string",
|
|
7838
|
-
"description": "API endpoint URL."
|
|
7839
|
-
},
|
|
7840
|
-
"data": {
|
|
7841
|
-
"items": {
|
|
7842
|
-
"$ref": "#/components/schemas/BackendWalletResponse"
|
|
7843
|
-
},
|
|
7844
|
-
"type": "array",
|
|
7845
|
-
"description": "List of backend wallets."
|
|
7846
|
-
},
|
|
7847
|
-
"start": {
|
|
7848
|
-
"type": "integer",
|
|
7849
|
-
"format": "int32",
|
|
7850
|
-
"description": "Starting index."
|
|
7851
|
-
},
|
|
7852
|
-
"end": {
|
|
7853
|
-
"type": "integer",
|
|
7854
|
-
"format": "int32",
|
|
7855
|
-
"description": "Ending index."
|
|
7856
|
-
},
|
|
7857
|
-
"total": {
|
|
7858
|
-
"type": "integer",
|
|
7859
|
-
"format": "int32",
|
|
7860
|
-
"description": "Total number of wallets."
|
|
7861
|
-
}
|
|
7862
|
-
},
|
|
7863
|
-
"required": ["object", "url", "data", "start", "end", "total"],
|
|
7864
|
-
"type": "object",
|
|
7865
|
-
"additionalProperties": false
|
|
7866
|
-
},
|
|
7867
|
-
"BackendWalletListQueries": {
|
|
7868
|
-
"description": "Query parameters for listing backend wallets.",
|
|
7869
|
-
"properties": {
|
|
7870
|
-
"limit": {
|
|
7871
|
-
"type": "integer",
|
|
7872
|
-
"format": "int32",
|
|
7873
|
-
"description": "Number of wallets to return (default: 10, max: 100).",
|
|
7874
|
-
"example": 10
|
|
7875
|
-
},
|
|
7876
|
-
"skip": {
|
|
7877
|
-
"type": "integer",
|
|
7878
|
-
"format": "int32",
|
|
7879
|
-
"description": "Number of wallets to skip (for pagination).",
|
|
7880
|
-
"example": 0
|
|
7881
|
-
},
|
|
7882
|
-
"chainType": {
|
|
7883
|
-
"type": "string",
|
|
7884
|
-
"enum": ["EVM", "SVM"],
|
|
7885
|
-
"description": "Filter by chain type.",
|
|
7886
|
-
"example": "EVM"
|
|
7887
|
-
},
|
|
7888
|
-
"address": {
|
|
7889
|
-
"type": "string",
|
|
7890
|
-
"description": "Filter by wallet address.",
|
|
7891
|
-
"example": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
|
|
7892
|
-
},
|
|
7893
|
-
"wallet": {
|
|
7894
|
-
"type": "string",
|
|
7895
|
-
"description": "Filter by associated wallet ID (starts with `pla_`).",
|
|
7896
|
-
"example": "pla_e0b84653-1741-4a3d-9e91-2b0fd2942f60"
|
|
7897
|
-
}
|
|
7898
|
-
},
|
|
7899
|
-
"type": "object",
|
|
7900
|
-
"additionalProperties": false
|
|
7901
|
-
},
|
|
7902
7779
|
"CreateBackendWalletResponse": {
|
|
7903
7780
|
"description": "Response from creating a new backend wallet account.",
|
|
7904
7781
|
"properties": {
|
|
@@ -7918,59 +7795,10 @@
|
|
|
7918
7795
|
"description": "The wallet address generated for this account.",
|
|
7919
7796
|
"example": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
|
|
7920
7797
|
},
|
|
7921
|
-
"
|
|
7922
|
-
"type": "string",
|
|
7923
|
-
"enum": ["EVM", "SVM"],
|
|
7924
|
-
"description": "The chain type the wallet is associated with.",
|
|
7925
|
-
"example": "EVM"
|
|
7926
|
-
},
|
|
7927
|
-
"createdAt": {
|
|
7928
|
-
"type": "integer",
|
|
7929
|
-
"format": "int32",
|
|
7930
|
-
"description": "Creation timestamp (Unix epoch seconds)."
|
|
7931
|
-
}
|
|
7932
|
-
},
|
|
7933
|
-
"required": ["object", "id", "address", "chainType", "createdAt"],
|
|
7934
|
-
"type": "object",
|
|
7935
|
-
"additionalProperties": false
|
|
7936
|
-
},
|
|
7937
|
-
"CreateBackendWalletRequest": {
|
|
7938
|
-
"description": "Request to create a new backend wallet account.",
|
|
7939
|
-
"properties": {
|
|
7940
|
-
"chainType": {
|
|
7941
|
-
"type": "string",
|
|
7942
|
-
"enum": ["EVM", "SVM"],
|
|
7943
|
-
"description": "The chain type for the new wallet.",
|
|
7944
|
-
"example": "EVM"
|
|
7945
|
-
},
|
|
7946
|
-
"wallet": {
|
|
7947
|
-
"type": "string",
|
|
7948
|
-
"description": "The wallet ID to associate with this wallet (starts with `pla_`).",
|
|
7949
|
-
"example": "pla_e0b84653-1741-4a3d-9e91-2b0fd2942f60"
|
|
7950
|
-
}
|
|
7951
|
-
},
|
|
7952
|
-
"required": ["chainType"],
|
|
7953
|
-
"type": "object",
|
|
7954
|
-
"additionalProperties": false
|
|
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": {
|
|
7798
|
+
"walletId": {
|
|
7971
7799
|
"type": "string",
|
|
7972
|
-
"description": "The wallet
|
|
7973
|
-
"example": "
|
|
7800
|
+
"description": "The wallet ID",
|
|
7801
|
+
"example": "pla_6f6c9067-89fa-4fc8-ac72-c242a268c584"
|
|
7974
7802
|
},
|
|
7975
7803
|
"chainType": {
|
|
7976
7804
|
"type": "string",
|
|
@@ -7978,117 +7806,39 @@
|
|
|
7978
7806
|
"description": "The chain type the wallet is associated with.",
|
|
7979
7807
|
"example": "EVM"
|
|
7980
7808
|
},
|
|
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
7809
|
"createdAt": {
|
|
7994
7810
|
"type": "integer",
|
|
7995
7811
|
"format": "int32",
|
|
7996
7812
|
"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
7813
|
}
|
|
8049
7814
|
},
|
|
8050
7815
|
"required": [
|
|
8051
7816
|
"object",
|
|
8052
7817
|
"id",
|
|
8053
7818
|
"address",
|
|
7819
|
+
"walletId",
|
|
8054
7820
|
"chainType",
|
|
8055
|
-
"
|
|
8056
|
-
"accountType",
|
|
8057
|
-
"createdAt",
|
|
8058
|
-
"updatedAt"
|
|
7821
|
+
"createdAt"
|
|
8059
7822
|
],
|
|
8060
7823
|
"type": "object",
|
|
8061
7824
|
"additionalProperties": false
|
|
8062
7825
|
},
|
|
8063
|
-
"
|
|
8064
|
-
"description": "Request to
|
|
7826
|
+
"CreateBackendWalletRequest": {
|
|
7827
|
+
"description": "Request to create a new backend wallet account.",
|
|
8065
7828
|
"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
7829
|
"chainType": {
|
|
8074
7830
|
"type": "string",
|
|
8075
7831
|
"enum": ["EVM", "SVM"],
|
|
8076
|
-
"description": "The chain type.",
|
|
7832
|
+
"description": "The chain type for the new wallet.",
|
|
8077
7833
|
"example": "EVM"
|
|
8078
7834
|
},
|
|
8079
|
-
"
|
|
8080
|
-
"type": "integer",
|
|
8081
|
-
"format": "int32",
|
|
8082
|
-
"description": "The chain ID. Must be a [supported chain](/development/chains).",
|
|
8083
|
-
"example": 8453
|
|
8084
|
-
},
|
|
8085
|
-
"implementationType": {
|
|
7835
|
+
"wallet": {
|
|
8086
7836
|
"type": "string",
|
|
8087
|
-
"description": "The
|
|
8088
|
-
"example": "
|
|
7837
|
+
"description": "The wallet ID to associate with this wallet (starts with `pla_`).",
|
|
7838
|
+
"example": "pla_e0b84653-1741-4a3d-9e91-2b0fd2942f60"
|
|
8089
7839
|
}
|
|
8090
7840
|
},
|
|
8091
|
-
"required": ["chainType"
|
|
7841
|
+
"required": ["chainType"],
|
|
8092
7842
|
"type": "object",
|
|
8093
7843
|
"additionalProperties": false
|
|
8094
7844
|
},
|
|
@@ -8203,6 +7953,11 @@
|
|
|
8203
7953
|
"description": "The wallet address derived from the imported private key.",
|
|
8204
7954
|
"example": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
|
|
8205
7955
|
},
|
|
7956
|
+
"walletId": {
|
|
7957
|
+
"type": "string",
|
|
7958
|
+
"description": "The wallet ID",
|
|
7959
|
+
"example": "pla_6f6c9067-89fa-4fc8-ac72-c242a268c584"
|
|
7960
|
+
},
|
|
8206
7961
|
"chainType": {
|
|
8207
7962
|
"type": "string",
|
|
8208
7963
|
"enum": ["EVM", "SVM"],
|
|
@@ -8215,7 +7970,7 @@
|
|
|
8215
7970
|
"description": "Creation timestamp (Unix epoch seconds)."
|
|
8216
7971
|
}
|
|
8217
7972
|
},
|
|
8218
|
-
"required": ["object", "id", "address", "createdAt"],
|
|
7973
|
+
"required": ["object", "id", "address", "walletId", "createdAt"],
|
|
8219
7974
|
"type": "object",
|
|
8220
7975
|
"additionalProperties": false
|
|
8221
7976
|
},
|
|
@@ -8421,7 +8176,7 @@
|
|
|
8421
8176
|
"custody": {
|
|
8422
8177
|
"type": "string",
|
|
8423
8178
|
"enum": ["Developer", "User"],
|
|
8424
|
-
"description": "Indicates key custody: \"Developer\" for
|
|
8179
|
+
"description": "Indicates key custody: \"Developer\" for TEE managed keys, \"User\" for user-managed keys.",
|
|
8425
8180
|
"example": "Developer"
|
|
8426
8181
|
}
|
|
8427
8182
|
},
|
|
@@ -8593,7 +8348,7 @@
|
|
|
8593
8348
|
},
|
|
8594
8349
|
"user": {
|
|
8595
8350
|
"type": "string",
|
|
8596
|
-
"description": "ID of the user this account belongs to (starts with `usr_`).
|
|
8351
|
+
"description": "ID of the user this account belongs to (starts with `usr_`). Also might take wallet ID (starts with `pla_`)",
|
|
8597
8352
|
"example": "usr_e0b84653-1741-4a3d-9e91-2b0fd2942f60"
|
|
8598
8353
|
},
|
|
8599
8354
|
"account": {
|
|
@@ -10290,18 +10045,6 @@
|
|
|
10290
10045
|
"type": "object",
|
|
10291
10046
|
"additionalProperties": false
|
|
10292
10047
|
},
|
|
10293
|
-
"LoginOIDCRequest": {
|
|
10294
|
-
"properties": {
|
|
10295
|
-
"identityToken": {
|
|
10296
|
-
"type": "string",
|
|
10297
|
-
"description": "The identity token of the user.",
|
|
10298
|
-
"example": "token"
|
|
10299
|
-
}
|
|
10300
|
-
},
|
|
10301
|
-
"required": ["identityToken"],
|
|
10302
|
-
"type": "object",
|
|
10303
|
-
"additionalProperties": false
|
|
10304
|
-
},
|
|
10305
10048
|
"OAuthResponse": {
|
|
10306
10049
|
"properties": {
|
|
10307
10050
|
"url": {
|
|
@@ -11713,29 +11456,6 @@
|
|
|
11713
11456
|
"required": ["keys"],
|
|
11714
11457
|
"type": "object",
|
|
11715
11458
|
"additionalProperties": false
|
|
11716
|
-
},
|
|
11717
|
-
"AuthenticatedPlayerResponse": {
|
|
11718
|
-
"properties": {
|
|
11719
|
-
"player": {
|
|
11720
|
-
"$ref": "#/components/schemas/AuthPlayerResponse",
|
|
11721
|
-
"description": "Player's identifier."
|
|
11722
|
-
}
|
|
11723
|
-
},
|
|
11724
|
-
"required": ["player"],
|
|
11725
|
-
"type": "object",
|
|
11726
|
-
"additionalProperties": false
|
|
11727
|
-
},
|
|
11728
|
-
"AuthorizePlayerRequest": {
|
|
11729
|
-
"properties": {
|
|
11730
|
-
"authorizationCode": {
|
|
11731
|
-
"type": "string",
|
|
11732
|
-
"description": "The authorization code received from the api to authorize the project to use the Ecosystem player.",
|
|
11733
|
-
"example": "d9e215f74e715853"
|
|
11734
|
-
}
|
|
11735
|
-
},
|
|
11736
|
-
"required": ["authorizationCode"],
|
|
11737
|
-
"type": "object",
|
|
11738
|
-
"additionalProperties": false
|
|
11739
11459
|
}
|
|
11740
11460
|
},
|
|
11741
11461
|
"securitySchemes": {
|
|
@@ -12354,9 +12074,6 @@
|
|
|
12354
12074
|
{
|
|
12355
12075
|
"pk_access_token": []
|
|
12356
12076
|
},
|
|
12357
|
-
{
|
|
12358
|
-
"pk_identity_token": []
|
|
12359
|
-
},
|
|
12360
12077
|
{
|
|
12361
12078
|
"better_auth": []
|
|
12362
12079
|
}
|
|
@@ -12506,9 +12223,6 @@
|
|
|
12506
12223
|
{
|
|
12507
12224
|
"pk_access_token": []
|
|
12508
12225
|
},
|
|
12509
|
-
{
|
|
12510
|
-
"pk_identity_token": []
|
|
12511
|
-
},
|
|
12512
12226
|
{
|
|
12513
12227
|
"better_auth": []
|
|
12514
12228
|
}
|
|
@@ -12618,9 +12332,6 @@
|
|
|
12618
12332
|
{
|
|
12619
12333
|
"pk_access_token": []
|
|
12620
12334
|
},
|
|
12621
|
-
{
|
|
12622
|
-
"pk_identity_token": []
|
|
12623
|
-
},
|
|
12624
12335
|
{
|
|
12625
12336
|
"better_auth": []
|
|
12626
12337
|
}
|
|
@@ -12764,9 +12475,6 @@
|
|
|
12764
12475
|
},
|
|
12765
12476
|
{
|
|
12766
12477
|
"sk": []
|
|
12767
|
-
},
|
|
12768
|
-
{
|
|
12769
|
-
"pk_identity_token": []
|
|
12770
12478
|
}
|
|
12771
12479
|
],
|
|
12772
12480
|
"parameters": [
|
|
@@ -14167,9 +13875,6 @@
|
|
|
14167
13875
|
{
|
|
14168
13876
|
"pk_access_token": []
|
|
14169
13877
|
},
|
|
14170
|
-
{
|
|
14171
|
-
"pk_identity_token": []
|
|
14172
|
-
},
|
|
14173
13878
|
{
|
|
14174
13879
|
"better_auth": []
|
|
14175
13880
|
}
|
|
@@ -14259,9 +13964,6 @@
|
|
|
14259
13964
|
{
|
|
14260
13965
|
"pk_access_token": []
|
|
14261
13966
|
},
|
|
14262
|
-
{
|
|
14263
|
-
"pk_identity_token": []
|
|
14264
|
-
},
|
|
14265
13967
|
{
|
|
14266
13968
|
"better_auth": []
|
|
14267
13969
|
}
|
|
@@ -14348,9 +14050,6 @@
|
|
|
14348
14050
|
{
|
|
14349
14051
|
"sk": []
|
|
14350
14052
|
},
|
|
14351
|
-
{
|
|
14352
|
-
"pk_identity_token": []
|
|
14353
|
-
},
|
|
14354
14053
|
{
|
|
14355
14054
|
"better_auth": []
|
|
14356
14055
|
}
|
|
@@ -19476,87 +19175,6 @@
|
|
|
19476
19175
|
}
|
|
19477
19176
|
},
|
|
19478
19177
|
"/v2/accounts/backend": {
|
|
19479
|
-
"get": {
|
|
19480
|
-
"operationId": "listBackendWallets",
|
|
19481
|
-
"responses": {
|
|
19482
|
-
"200": {
|
|
19483
|
-
"description": "Successful response.",
|
|
19484
|
-
"content": {
|
|
19485
|
-
"application/json": {
|
|
19486
|
-
"schema": {
|
|
19487
|
-
"$ref": "#/components/schemas/BackendWalletListResponse"
|
|
19488
|
-
}
|
|
19489
|
-
}
|
|
19490
|
-
}
|
|
19491
|
-
},
|
|
19492
|
-
"401": {
|
|
19493
|
-
"description": "Unauthorized."
|
|
19494
|
-
}
|
|
19495
|
-
},
|
|
19496
|
-
"description": "List backend wallets.\n\nReturns a paginated list of backend wallets for the project.",
|
|
19497
|
-
"summary": "List backend wallets.",
|
|
19498
|
-
"tags": ["Backend Wallets"],
|
|
19499
|
-
"security": [
|
|
19500
|
-
{
|
|
19501
|
-
"sk": []
|
|
19502
|
-
}
|
|
19503
|
-
],
|
|
19504
|
-
"parameters": [
|
|
19505
|
-
{
|
|
19506
|
-
"description": "Number of wallets to return (default: 10, max: 100).",
|
|
19507
|
-
"in": "query",
|
|
19508
|
-
"name": "limit",
|
|
19509
|
-
"required": false,
|
|
19510
|
-
"schema": {
|
|
19511
|
-
"format": "int32",
|
|
19512
|
-
"type": "integer"
|
|
19513
|
-
},
|
|
19514
|
-
"example": 10
|
|
19515
|
-
},
|
|
19516
|
-
{
|
|
19517
|
-
"description": "Number of wallets to skip (for pagination).",
|
|
19518
|
-
"in": "query",
|
|
19519
|
-
"name": "skip",
|
|
19520
|
-
"required": false,
|
|
19521
|
-
"schema": {
|
|
19522
|
-
"format": "int32",
|
|
19523
|
-
"type": "integer"
|
|
19524
|
-
},
|
|
19525
|
-
"example": 0
|
|
19526
|
-
},
|
|
19527
|
-
{
|
|
19528
|
-
"description": "Filter by chain type.",
|
|
19529
|
-
"in": "query",
|
|
19530
|
-
"name": "chainType",
|
|
19531
|
-
"required": false,
|
|
19532
|
-
"schema": {
|
|
19533
|
-
"type": "string",
|
|
19534
|
-
"enum": ["EVM", "SVM"]
|
|
19535
|
-
},
|
|
19536
|
-
"example": "EVM"
|
|
19537
|
-
},
|
|
19538
|
-
{
|
|
19539
|
-
"description": "Filter by wallet address.",
|
|
19540
|
-
"in": "query",
|
|
19541
|
-
"name": "address",
|
|
19542
|
-
"required": false,
|
|
19543
|
-
"schema": {
|
|
19544
|
-
"type": "string"
|
|
19545
|
-
},
|
|
19546
|
-
"example": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
|
|
19547
|
-
},
|
|
19548
|
-
{
|
|
19549
|
-
"description": "Filter by associated wallet ID (starts with `pla_`).",
|
|
19550
|
-
"in": "query",
|
|
19551
|
-
"name": "wallet",
|
|
19552
|
-
"required": false,
|
|
19553
|
-
"schema": {
|
|
19554
|
-
"type": "string"
|
|
19555
|
-
},
|
|
19556
|
-
"example": "pla_e0b84653-1741-4a3d-9e91-2b0fd2942f60"
|
|
19557
|
-
}
|
|
19558
|
-
]
|
|
19559
|
-
},
|
|
19560
19178
|
"post": {
|
|
19561
19179
|
"operationId": "createBackendWallet",
|
|
19562
19180
|
"responses": {
|
|
@@ -19596,99 +19214,6 @@
|
|
|
19596
19214
|
}
|
|
19597
19215
|
},
|
|
19598
19216
|
"/v2/accounts/backend/{id}": {
|
|
19599
|
-
"get": {
|
|
19600
|
-
"operationId": "getBackendWallet",
|
|
19601
|
-
"responses": {
|
|
19602
|
-
"200": {
|
|
19603
|
-
"description": "Successful response.",
|
|
19604
|
-
"content": {
|
|
19605
|
-
"application/json": {
|
|
19606
|
-
"schema": {
|
|
19607
|
-
"$ref": "#/components/schemas/BackendWalletResponse"
|
|
19608
|
-
}
|
|
19609
|
-
}
|
|
19610
|
-
}
|
|
19611
|
-
},
|
|
19612
|
-
"401": {
|
|
19613
|
-
"description": "Unauthorized."
|
|
19614
|
-
},
|
|
19615
|
-
"404": {
|
|
19616
|
-
"description": "Wallet not found."
|
|
19617
|
-
}
|
|
19618
|
-
},
|
|
19619
|
-
"description": "Get backend wallet details.\n\nReturns details for a specific backend wallet.",
|
|
19620
|
-
"summary": "Get backend wallet.",
|
|
19621
|
-
"tags": ["Backend Wallets"],
|
|
19622
|
-
"security": [
|
|
19623
|
-
{
|
|
19624
|
-
"sk": []
|
|
19625
|
-
}
|
|
19626
|
-
],
|
|
19627
|
-
"parameters": [
|
|
19628
|
-
{
|
|
19629
|
-
"description": "The wallet ID (starts with acc_).",
|
|
19630
|
-
"in": "path",
|
|
19631
|
-
"name": "id",
|
|
19632
|
-
"required": true,
|
|
19633
|
-
"schema": {
|
|
19634
|
-
"type": "string"
|
|
19635
|
-
}
|
|
19636
|
-
}
|
|
19637
|
-
]
|
|
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
|
-
},
|
|
19692
19217
|
"delete": {
|
|
19693
19218
|
"operationId": "deleteBackendWallet",
|
|
19694
19219
|
"responses": {
|
|
@@ -21038,74 +20563,6 @@
|
|
|
21038
20563
|
}
|
|
21039
20564
|
}
|
|
21040
20565
|
},
|
|
21041
|
-
"/iam/v1/oidc/login": {
|
|
21042
|
-
"post": {
|
|
21043
|
-
"operationId": "LoginOIDC",
|
|
21044
|
-
"responses": {
|
|
21045
|
-
"200": {
|
|
21046
|
-
"description": "Ok",
|
|
21047
|
-
"content": {
|
|
21048
|
-
"application/json": {
|
|
21049
|
-
"schema": {
|
|
21050
|
-
"$ref": "#/components/schemas/AuthResponse"
|
|
21051
|
-
},
|
|
21052
|
-
"examples": {
|
|
21053
|
-
"Example 1": {
|
|
21054
|
-
"value": {
|
|
21055
|
-
"player": {
|
|
21056
|
-
"id": "pla_...",
|
|
21057
|
-
"object": "player",
|
|
21058
|
-
"createdAt": 1234567890,
|
|
21059
|
-
"linkedAccounts": [
|
|
21060
|
-
{
|
|
21061
|
-
"provider": "email",
|
|
21062
|
-
"email": "jaume@openfort.xyz",
|
|
21063
|
-
"disabled": false
|
|
21064
|
-
}
|
|
21065
|
-
]
|
|
21066
|
-
},
|
|
21067
|
-
"token": "abcd....",
|
|
21068
|
-
"refreshToken": "efgh...."
|
|
21069
|
-
}
|
|
21070
|
-
}
|
|
21071
|
-
}
|
|
21072
|
-
}
|
|
21073
|
-
}
|
|
21074
|
-
},
|
|
21075
|
-
"401": {
|
|
21076
|
-
"description": ""
|
|
21077
|
-
}
|
|
21078
|
-
},
|
|
21079
|
-
"description": "Authenticate a player from an identity token.",
|
|
21080
|
-
"summary": "OIDC Identity token.",
|
|
21081
|
-
"tags": ["auth v1"],
|
|
21082
|
-
"security": [
|
|
21083
|
-
{
|
|
21084
|
-
"pk": []
|
|
21085
|
-
}
|
|
21086
|
-
],
|
|
21087
|
-
"parameters": [
|
|
21088
|
-
{
|
|
21089
|
-
"in": "header",
|
|
21090
|
-
"name": "x-game",
|
|
21091
|
-
"required": false,
|
|
21092
|
-
"schema": {
|
|
21093
|
-
"type": "string"
|
|
21094
|
-
}
|
|
21095
|
-
}
|
|
21096
|
-
],
|
|
21097
|
-
"requestBody": {
|
|
21098
|
-
"required": true,
|
|
21099
|
-
"content": {
|
|
21100
|
-
"application/json": {
|
|
21101
|
-
"schema": {
|
|
21102
|
-
"$ref": "#/components/schemas/LoginOIDCRequest"
|
|
21103
|
-
}
|
|
21104
|
-
}
|
|
21105
|
-
}
|
|
21106
|
-
}
|
|
21107
|
-
}
|
|
21108
|
-
},
|
|
21109
20566
|
"/iam/v1/oauth/init": {
|
|
21110
20567
|
"post": {
|
|
21111
20568
|
"operationId": "InitOAuth",
|
|
@@ -22482,72 +21939,6 @@
|
|
|
22482
21939
|
"parameters": []
|
|
22483
21940
|
}
|
|
22484
21941
|
},
|
|
22485
|
-
"/iam/v1/authorize": {
|
|
22486
|
-
"post": {
|
|
22487
|
-
"operationId": "Authorize",
|
|
22488
|
-
"responses": {
|
|
22489
|
-
"200": {
|
|
22490
|
-
"description": "Successful response.",
|
|
22491
|
-
"content": {
|
|
22492
|
-
"application/json": {
|
|
22493
|
-
"schema": {
|
|
22494
|
-
"anyOf": [
|
|
22495
|
-
{
|
|
22496
|
-
"$ref": "#/components/schemas/AuthPlayerResponse"
|
|
22497
|
-
},
|
|
22498
|
-
{
|
|
22499
|
-
"$ref": "#/components/schemas/AuthenticatedPlayerResponse"
|
|
22500
|
-
}
|
|
22501
|
-
]
|
|
22502
|
-
},
|
|
22503
|
-
"examples": {
|
|
22504
|
-
"Example 1": {
|
|
22505
|
-
"value": {
|
|
22506
|
-
"id": "pla_...",
|
|
22507
|
-
"object": "player",
|
|
22508
|
-
"createdAt": 1234567890,
|
|
22509
|
-
"linkedAccounts": [
|
|
22510
|
-
{
|
|
22511
|
-
"provider": "email",
|
|
22512
|
-
"email": "jaume@openfort.xyz",
|
|
22513
|
-
"disabled": false
|
|
22514
|
-
}
|
|
22515
|
-
]
|
|
22516
|
-
}
|
|
22517
|
-
}
|
|
22518
|
-
}
|
|
22519
|
-
}
|
|
22520
|
-
}
|
|
22521
|
-
},
|
|
22522
|
-
"401": {
|
|
22523
|
-
"description": "Unauthorized."
|
|
22524
|
-
},
|
|
22525
|
-
"404": {
|
|
22526
|
-
"description": "Player not found."
|
|
22527
|
-
}
|
|
22528
|
-
},
|
|
22529
|
-
"tags": ["AdminAuthentication"],
|
|
22530
|
-
"security": [
|
|
22531
|
-
{
|
|
22532
|
-
"sk": []
|
|
22533
|
-
},
|
|
22534
|
-
{
|
|
22535
|
-
"pk_guardian_gate": []
|
|
22536
|
-
}
|
|
22537
|
-
],
|
|
22538
|
-
"parameters": [],
|
|
22539
|
-
"requestBody": {
|
|
22540
|
-
"required": true,
|
|
22541
|
-
"content": {
|
|
22542
|
-
"application/json": {
|
|
22543
|
-
"schema": {
|
|
22544
|
-
"$ref": "#/components/schemas/AuthorizePlayerRequest"
|
|
22545
|
-
}
|
|
22546
|
-
}
|
|
22547
|
-
}
|
|
22548
|
-
}
|
|
22549
|
-
}
|
|
22550
|
-
},
|
|
22551
21942
|
"/iam/v2/me": {
|
|
22552
21943
|
"get": {
|
|
22553
21944
|
"operationId": "meV2",
|