@openfort/openfort-node 0.7.7 → 0.8.1
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/biome.json +2 -1
- package/dist/index.d.mts +4835 -437
- package/dist/index.d.ts +4835 -437
- package/dist/index.js +929 -124
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +813 -118
- package/dist/index.mjs.map +1 -1
- package/examples/README.md +28 -11
- package/examples/{policies → fee-sponsorship}/createPolicy.ts +2 -2
- package/examples/{policies → fee-sponsorship}/createPolicyRule.ts +3 -3
- package/examples/{policies → fee-sponsorship}/disableEnablePolicy.ts +4 -4
- package/examples/fee-sponsorship/getPolicy.ts +30 -0
- package/examples/fee-sponsorship/listPolicies.ts +17 -0
- package/examples/{policies → fee-sponsorship}/listPolicyRules.ts +4 -4
- package/examples/fee-sponsorship/updatePolicy.ts +29 -0
- package/examples/policies/createAccountPolicy.ts +73 -0
- package/examples/policies/createEvmPolicy.ts +149 -0
- package/examples/policies/createSolanaPolicy.ts +176 -0
- package/examples/policies/createTypedDataPolicy.ts +159 -0
- package/examples/policies/deletePolicy.ts +34 -0
- package/examples/policies/getPolicy.ts +24 -13
- package/examples/policies/listPolicies.ts +19 -2
- package/examples/policies/multiRulePolicy.ts +133 -0
- package/examples/policies/updatePolicy.ts +64 -16
- package/examples/policies/validatePolicy.ts +176 -0
- package/examples/transactions/createTransactionIntent.ts +2 -2
- package/examples/transactions/estimateGas.ts +2 -2
- package/examples/transactions/getTransactionIntent.ts +2 -2
- package/openapi.json +2352 -1142
- package/package.json +4 -3
- package/pnpm-workspace.yaml +1 -0
package/openapi.json
CHANGED
|
@@ -1529,7 +1529,11 @@
|
|
|
1529
1529
|
"balance.project",
|
|
1530
1530
|
"balance.contract",
|
|
1531
1531
|
"balance.dev_account",
|
|
1532
|
-
"test"
|
|
1532
|
+
"test",
|
|
1533
|
+
"user.created",
|
|
1534
|
+
"user.updated",
|
|
1535
|
+
"user.deleted",
|
|
1536
|
+
"account.created"
|
|
1533
1537
|
],
|
|
1534
1538
|
"type": "string"
|
|
1535
1539
|
},
|
|
@@ -5324,92 +5328,6 @@
|
|
|
5324
5328
|
"type": "object",
|
|
5325
5329
|
"additionalProperties": false
|
|
5326
5330
|
},
|
|
5327
|
-
"TransferOwnershipRequest": {
|
|
5328
|
-
"properties": {
|
|
5329
|
-
"newOwnerAddress": {
|
|
5330
|
-
"type": "string",
|
|
5331
|
-
"description": "The address of the new owner",
|
|
5332
|
-
"example": "0x1234567890abcdef1234567890abcdef12345678"
|
|
5333
|
-
},
|
|
5334
|
-
"policy": {
|
|
5335
|
-
"type": "string",
|
|
5336
|
-
"description": "ID of the Policy that defines the gas sponsorship strategy (starts with `pol_`). A policy must be provided.",
|
|
5337
|
-
"example": "pol_7e07ae30-2a4d-48fa-803f-361da94905dd"
|
|
5338
|
-
}
|
|
5339
|
-
},
|
|
5340
|
-
"required": ["newOwnerAddress", "policy"],
|
|
5341
|
-
"type": "object",
|
|
5342
|
-
"additionalProperties": false
|
|
5343
|
-
},
|
|
5344
|
-
"CancelTransferOwnershipRequest": {
|
|
5345
|
-
"properties": {
|
|
5346
|
-
"policy": {
|
|
5347
|
-
"type": "string",
|
|
5348
|
-
"description": "ID of the Policy that defines the gas sponsorship strategy (starts with `pol_`). A policy must be provided.",
|
|
5349
|
-
"example": "pol_7e07ae30-2a4d-48fa-803f-361da94905dd"
|
|
5350
|
-
}
|
|
5351
|
-
},
|
|
5352
|
-
"required": ["policy"],
|
|
5353
|
-
"type": "object",
|
|
5354
|
-
"additionalProperties": false
|
|
5355
|
-
},
|
|
5356
|
-
"DeployRequest": {
|
|
5357
|
-
"properties": {
|
|
5358
|
-
"policy": {
|
|
5359
|
-
"type": "string",
|
|
5360
|
-
"description": "The policy ID (starts with pol_)",
|
|
5361
|
-
"example": "pol_7e07ae30-2a4d-48fa-803f-361da94905dd"
|
|
5362
|
-
}
|
|
5363
|
-
},
|
|
5364
|
-
"required": ["policy"],
|
|
5365
|
-
"type": "object",
|
|
5366
|
-
"additionalProperties": false
|
|
5367
|
-
},
|
|
5368
|
-
"StartRecoveryRequest": {
|
|
5369
|
-
"properties": {
|
|
5370
|
-
"newOwnerAddress": {
|
|
5371
|
-
"type": "string",
|
|
5372
|
-
"description": "Address of the new owner",
|
|
5373
|
-
"example": "0x662D24Bf7Ea2dD6a7D0935F680a6056b94fE934d"
|
|
5374
|
-
},
|
|
5375
|
-
"policy": {
|
|
5376
|
-
"type": "string",
|
|
5377
|
-
"description": "The policy ID (starts with pol_)",
|
|
5378
|
-
"example": "pol_7e07ae30-2a4d-48fa-803f-361da94905dd"
|
|
5379
|
-
}
|
|
5380
|
-
},
|
|
5381
|
-
"required": ["newOwnerAddress", "policy"],
|
|
5382
|
-
"type": "object",
|
|
5383
|
-
"additionalProperties": false
|
|
5384
|
-
},
|
|
5385
|
-
"CompleteRecoveryRequest": {
|
|
5386
|
-
"properties": {
|
|
5387
|
-
"newOwnerAddress": {
|
|
5388
|
-
"type": "string",
|
|
5389
|
-
"description": "Address of the new owner",
|
|
5390
|
-
"example": "0x662D24Bf7Ea2dD6a7D0935F680a6056b94fE934d"
|
|
5391
|
-
},
|
|
5392
|
-
"signatures": {
|
|
5393
|
-
"items": {
|
|
5394
|
-
"type": "string"
|
|
5395
|
-
},
|
|
5396
|
-
"type": "array",
|
|
5397
|
-
"description": "Signatures by the guardians",
|
|
5398
|
-
"example": [
|
|
5399
|
-
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
|
|
5400
|
-
"0x1223567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
|
|
5401
|
-
]
|
|
5402
|
-
},
|
|
5403
|
-
"policy": {
|
|
5404
|
-
"type": "string",
|
|
5405
|
-
"description": "The policy ID (starts with pol_)",
|
|
5406
|
-
"example": "pol_7e07ae30-2a4d-48fa-803f-361da94905dd"
|
|
5407
|
-
}
|
|
5408
|
-
},
|
|
5409
|
-
"required": ["newOwnerAddress", "policy"],
|
|
5410
|
-
"type": "object",
|
|
5411
|
-
"additionalProperties": false
|
|
5412
|
-
},
|
|
5413
5331
|
"AuthProviderResponseV2": {
|
|
5414
5332
|
"type": "string",
|
|
5415
5333
|
"enum": [
|
|
@@ -5826,132 +5744,1754 @@
|
|
|
5826
5744
|
"type": "object",
|
|
5827
5745
|
"additionalProperties": false
|
|
5828
5746
|
},
|
|
5829
|
-
"
|
|
5830
|
-
"
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
|
|
5747
|
+
"PolicyV2Scope": {
|
|
5748
|
+
"enum": ["project", "account"],
|
|
5749
|
+
"type": "string"
|
|
5750
|
+
},
|
|
5751
|
+
"PolicyV2Action": {
|
|
5752
|
+
"enum": ["accept", "reject"],
|
|
5753
|
+
"type": "string"
|
|
5754
|
+
},
|
|
5755
|
+
"EvmCriteriaType.EVM_ADDRESS": {
|
|
5756
|
+
"enum": ["evmAddress"],
|
|
5757
|
+
"type": "string"
|
|
5758
|
+
},
|
|
5759
|
+
"CriteriaOperator.IN": {
|
|
5760
|
+
"enum": ["in"],
|
|
5761
|
+
"type": "string"
|
|
5762
|
+
},
|
|
5763
|
+
"CriteriaOperator.NOT_IN": {
|
|
5764
|
+
"enum": ["not in"],
|
|
5765
|
+
"type": "string"
|
|
5766
|
+
},
|
|
5767
|
+
"EvmCriteriaType": {
|
|
5768
|
+
"enum": [
|
|
5769
|
+
"evmAddress",
|
|
5770
|
+
"ethValue",
|
|
5771
|
+
"evmNetwork",
|
|
5772
|
+
"evmMessage",
|
|
5773
|
+
"evmData",
|
|
5774
|
+
"evmTypedDataVerifyingContract",
|
|
5775
|
+
"evmTypedDataField",
|
|
5776
|
+
"netUSDChange"
|
|
5777
|
+
],
|
|
5778
|
+
"type": "string"
|
|
5779
|
+
},
|
|
5780
|
+
"SolanaCriteriaType": {
|
|
5781
|
+
"enum": [
|
|
5782
|
+
"solAddress",
|
|
5783
|
+
"solValue",
|
|
5784
|
+
"splAddress",
|
|
5785
|
+
"splValue",
|
|
5786
|
+
"mintAddress",
|
|
5787
|
+
"solData",
|
|
5788
|
+
"programId",
|
|
5789
|
+
"solNetwork",
|
|
5790
|
+
"solMessage"
|
|
5791
|
+
],
|
|
5792
|
+
"type": "string"
|
|
5793
|
+
},
|
|
5794
|
+
"CriteriaType": {
|
|
5795
|
+
"anyOf": [
|
|
5796
|
+
{
|
|
5797
|
+
"$ref": "#/components/schemas/EvmCriteriaType"
|
|
5839
5798
|
},
|
|
5840
|
-
|
|
5841
|
-
"
|
|
5799
|
+
{
|
|
5800
|
+
"$ref": "#/components/schemas/SolanaCriteriaType"
|
|
5801
|
+
}
|
|
5802
|
+
]
|
|
5803
|
+
},
|
|
5804
|
+
"CriteriaOperator": {
|
|
5805
|
+
"enum": ["in", "not in", "<", "<=", ">", ">=", "==", "match"],
|
|
5806
|
+
"type": "string"
|
|
5807
|
+
},
|
|
5808
|
+
"EvmAddressCriterion": {
|
|
5809
|
+
"properties": {
|
|
5810
|
+
"type": {
|
|
5811
|
+
"$ref": "#/components/schemas/EvmCriteriaType.EVM_ADDRESS"
|
|
5842
5812
|
},
|
|
5843
|
-
"
|
|
5844
|
-
"
|
|
5813
|
+
"operator": {
|
|
5814
|
+
"anyOf": [
|
|
5815
|
+
{
|
|
5816
|
+
"$ref": "#/components/schemas/CriteriaOperator.IN"
|
|
5817
|
+
},
|
|
5818
|
+
{
|
|
5819
|
+
"$ref": "#/components/schemas/CriteriaOperator.NOT_IN"
|
|
5820
|
+
}
|
|
5821
|
+
]
|
|
5845
5822
|
},
|
|
5846
|
-
"
|
|
5847
|
-
"
|
|
5823
|
+
"addresses": {
|
|
5824
|
+
"items": {
|
|
5825
|
+
"type": "string"
|
|
5826
|
+
},
|
|
5827
|
+
"type": "array"
|
|
5828
|
+
}
|
|
5829
|
+
},
|
|
5830
|
+
"required": ["type", "operator", "addresses"],
|
|
5831
|
+
"type": "object",
|
|
5832
|
+
"additionalProperties": false
|
|
5833
|
+
},
|
|
5834
|
+
"EvmCriteriaType.ETH_VALUE": {
|
|
5835
|
+
"enum": ["ethValue"],
|
|
5836
|
+
"type": "string"
|
|
5837
|
+
},
|
|
5838
|
+
"CriteriaOperator.LESS_THAN_OR_EQUAL": {
|
|
5839
|
+
"enum": ["<="],
|
|
5840
|
+
"type": "string"
|
|
5841
|
+
},
|
|
5842
|
+
"CriteriaOperator.GREATER_THAN_OR_EQUAL": {
|
|
5843
|
+
"enum": [">="],
|
|
5844
|
+
"type": "string"
|
|
5845
|
+
},
|
|
5846
|
+
"CriteriaOperator.LESS_THAN": {
|
|
5847
|
+
"enum": ["<"],
|
|
5848
|
+
"type": "string"
|
|
5849
|
+
},
|
|
5850
|
+
"CriteriaOperator.GREATER_THAN": {
|
|
5851
|
+
"enum": [">"],
|
|
5852
|
+
"type": "string"
|
|
5853
|
+
},
|
|
5854
|
+
"EthValueCriterion": {
|
|
5855
|
+
"properties": {
|
|
5856
|
+
"type": {
|
|
5857
|
+
"$ref": "#/components/schemas/EvmCriteriaType.ETH_VALUE"
|
|
5848
5858
|
},
|
|
5849
|
-
"
|
|
5850
|
-
"
|
|
5851
|
-
|
|
5859
|
+
"operator": {
|
|
5860
|
+
"anyOf": [
|
|
5861
|
+
{
|
|
5862
|
+
"$ref": "#/components/schemas/CriteriaOperator.LESS_THAN_OR_EQUAL"
|
|
5863
|
+
},
|
|
5864
|
+
{
|
|
5865
|
+
"$ref": "#/components/schemas/CriteriaOperator.GREATER_THAN_OR_EQUAL"
|
|
5866
|
+
},
|
|
5867
|
+
{
|
|
5868
|
+
"$ref": "#/components/schemas/CriteriaOperator.LESS_THAN"
|
|
5869
|
+
},
|
|
5870
|
+
{
|
|
5871
|
+
"$ref": "#/components/schemas/CriteriaOperator.GREATER_THAN"
|
|
5872
|
+
}
|
|
5873
|
+
]
|
|
5852
5874
|
},
|
|
5853
|
-
"
|
|
5875
|
+
"ethValue": {
|
|
5854
5876
|
"type": "string"
|
|
5855
5877
|
}
|
|
5856
5878
|
},
|
|
5857
|
-
"required": [
|
|
5858
|
-
"id",
|
|
5859
|
-
"account",
|
|
5860
|
-
"signerAddress",
|
|
5861
|
-
"signer",
|
|
5862
|
-
"share",
|
|
5863
|
-
"isPrimary",
|
|
5864
|
-
"createdAt",
|
|
5865
|
-
"user"
|
|
5866
|
-
],
|
|
5879
|
+
"required": ["type", "operator", "ethValue"],
|
|
5867
5880
|
"type": "object",
|
|
5868
5881
|
"additionalProperties": false
|
|
5869
5882
|
},
|
|
5870
|
-
"
|
|
5883
|
+
"EvmCriteriaType.EVM_NETWORK": {
|
|
5884
|
+
"enum": ["evmNetwork"],
|
|
5885
|
+
"type": "string"
|
|
5886
|
+
},
|
|
5887
|
+
"EvmNetworkCriterion": {
|
|
5871
5888
|
"properties": {
|
|
5872
|
-
"
|
|
5873
|
-
"
|
|
5889
|
+
"type": {
|
|
5890
|
+
"$ref": "#/components/schemas/EvmCriteriaType.EVM_NETWORK"
|
|
5891
|
+
},
|
|
5892
|
+
"operator": {
|
|
5893
|
+
"anyOf": [
|
|
5894
|
+
{
|
|
5895
|
+
"$ref": "#/components/schemas/CriteriaOperator.IN"
|
|
5896
|
+
},
|
|
5897
|
+
{
|
|
5898
|
+
"$ref": "#/components/schemas/CriteriaOperator.NOT_IN"
|
|
5899
|
+
}
|
|
5900
|
+
]
|
|
5901
|
+
},
|
|
5902
|
+
"chainIds": {
|
|
5903
|
+
"items": {
|
|
5904
|
+
"type": "number",
|
|
5905
|
+
"format": "double"
|
|
5906
|
+
},
|
|
5907
|
+
"type": "array"
|
|
5874
5908
|
}
|
|
5875
5909
|
},
|
|
5876
|
-
"required": ["
|
|
5910
|
+
"required": ["type", "operator", "chainIds"],
|
|
5877
5911
|
"type": "object",
|
|
5878
5912
|
"additionalProperties": false
|
|
5879
5913
|
},
|
|
5880
|
-
"
|
|
5914
|
+
"EvmCriteriaType.EVM_MESSAGE": {
|
|
5915
|
+
"enum": ["evmMessage"],
|
|
5916
|
+
"type": "string"
|
|
5917
|
+
},
|
|
5918
|
+
"CriteriaOperator.MATCH": {
|
|
5919
|
+
"enum": ["match"],
|
|
5920
|
+
"type": "string"
|
|
5921
|
+
},
|
|
5922
|
+
"EvmMessageCriterion": {
|
|
5881
5923
|
"properties": {
|
|
5882
|
-
"
|
|
5883
|
-
"
|
|
5924
|
+
"type": {
|
|
5925
|
+
"$ref": "#/components/schemas/EvmCriteriaType.EVM_MESSAGE"
|
|
5884
5926
|
},
|
|
5885
|
-
"
|
|
5927
|
+
"operator": {
|
|
5928
|
+
"$ref": "#/components/schemas/CriteriaOperator.MATCH"
|
|
5929
|
+
},
|
|
5930
|
+
"pattern": {
|
|
5886
5931
|
"type": "string"
|
|
5887
5932
|
}
|
|
5888
5933
|
},
|
|
5889
|
-
"required": ["
|
|
5934
|
+
"required": ["type", "operator", "pattern"],
|
|
5890
5935
|
"type": "object",
|
|
5891
5936
|
"additionalProperties": false
|
|
5892
5937
|
},
|
|
5893
|
-
"
|
|
5938
|
+
"EvmCriteriaType.EVM_DATA": {
|
|
5939
|
+
"enum": ["evmData"],
|
|
5940
|
+
"type": "string"
|
|
5941
|
+
},
|
|
5942
|
+
"Record_string.unknown_": {
|
|
5943
|
+
"properties": {},
|
|
5944
|
+
"additionalProperties": {},
|
|
5945
|
+
"type": "object",
|
|
5946
|
+
"description": "Construct a type with a set of properties K of type T"
|
|
5947
|
+
},
|
|
5948
|
+
"EvmDataCriterion": {
|
|
5894
5949
|
"properties": {
|
|
5895
|
-
"
|
|
5896
|
-
"
|
|
5897
|
-
"enum": [
|
|
5898
|
-
"Externally Owned Account",
|
|
5899
|
-
"Smart Account",
|
|
5900
|
-
"Delegated Account"
|
|
5901
|
-
],
|
|
5902
|
-
"description": "The type of smart account that will be created. \"Externally Owned Account\", \"Smart Account\" or \"Delegated Account\".",
|
|
5903
|
-
"example": "Externally Owned Account"
|
|
5904
|
-
},
|
|
5905
|
-
"chainType": {
|
|
5906
|
-
"type": "string",
|
|
5907
|
-
"enum": ["EVM", "SVM"],
|
|
5908
|
-
"description": "The chain type. \"EVM\" or \"SVM\".",
|
|
5909
|
-
"example": "EVM"
|
|
5910
|
-
},
|
|
5911
|
-
"address": {
|
|
5912
|
-
"type": "string",
|
|
5913
|
-
"description": "The wallet address. For EOA: the EOA address. For Smart Account: the owner address (EOA will be created with this address). For Delegated Account: the address for both EOA and Delegated Account.",
|
|
5914
|
-
"example": "0x662D24Bf7Ea2dD6a7D0935F680a6056b94fE934d"
|
|
5950
|
+
"type": {
|
|
5951
|
+
"$ref": "#/components/schemas/EvmCriteriaType.EVM_DATA"
|
|
5915
5952
|
},
|
|
5916
|
-
"
|
|
5917
|
-
"
|
|
5918
|
-
"format": "int32",
|
|
5919
|
-
"description": "The chain ID. Must be a [supported chain](/development/chains). Required for Smart Account and Delegated Account types.",
|
|
5920
|
-
"example": 80002
|
|
5953
|
+
"operator": {
|
|
5954
|
+
"$ref": "#/components/schemas/CriteriaOperator"
|
|
5921
5955
|
},
|
|
5922
|
-
"
|
|
5923
|
-
"type": "string"
|
|
5924
|
-
"description": "Specifies the share repositories. Required for creating embedded accounts.",
|
|
5925
|
-
"example": "7d526b7e99fbf52850a183..."
|
|
5956
|
+
"abi": {
|
|
5957
|
+
"type": "string"
|
|
5926
5958
|
},
|
|
5927
|
-
"
|
|
5959
|
+
"functionName": {
|
|
5928
5960
|
"type": "string"
|
|
5929
5961
|
},
|
|
5930
|
-
"
|
|
5931
|
-
"
|
|
5932
|
-
"description": "The type of smart account that will be created (e.g. UpgradeableV6, UpgradeableV5, Calibur, Simple). Defaults to UpgradeableV6 in mainnets. Must support EIP-7702 for Delegated Accounts.",
|
|
5933
|
-
"example": "UpgradeableV6"
|
|
5962
|
+
"args": {
|
|
5963
|
+
"$ref": "#/components/schemas/Record_string.unknown_"
|
|
5934
5964
|
}
|
|
5935
5965
|
},
|
|
5936
|
-
"required": ["
|
|
5966
|
+
"required": ["type", "operator", "abi", "functionName"],
|
|
5937
5967
|
"type": "object",
|
|
5938
5968
|
"additionalProperties": false
|
|
5939
5969
|
},
|
|
5940
|
-
"
|
|
5941
|
-
"
|
|
5970
|
+
"EvmCriteriaType.EVM_TYPED_DATA_VERIFYING_CONTRACT": {
|
|
5971
|
+
"enum": ["evmTypedDataVerifyingContract"],
|
|
5972
|
+
"type": "string"
|
|
5973
|
+
},
|
|
5974
|
+
"EvmTypedDataVerifyingContractCriterion": {
|
|
5942
5975
|
"properties": {
|
|
5943
|
-
"
|
|
5944
|
-
"
|
|
5945
|
-
"enum": ["backendWallet"],
|
|
5946
|
-
"nullable": false,
|
|
5947
|
-
"description": "The type of object."
|
|
5948
|
-
},
|
|
5949
|
-
"id": {
|
|
5950
|
-
"type": "string",
|
|
5951
|
-
"description": "The wallet ID (starts with `acc_`).",
|
|
5952
|
-
"example": "acc_e0b84653-1741-4a3d-9e91-2b0fd2942f60"
|
|
5976
|
+
"type": {
|
|
5977
|
+
"$ref": "#/components/schemas/EvmCriteriaType.EVM_TYPED_DATA_VERIFYING_CONTRACT"
|
|
5953
5978
|
},
|
|
5954
|
-
"
|
|
5979
|
+
"operator": {
|
|
5980
|
+
"anyOf": [
|
|
5981
|
+
{
|
|
5982
|
+
"$ref": "#/components/schemas/CriteriaOperator.IN"
|
|
5983
|
+
},
|
|
5984
|
+
{
|
|
5985
|
+
"$ref": "#/components/schemas/CriteriaOperator.NOT_IN"
|
|
5986
|
+
}
|
|
5987
|
+
]
|
|
5988
|
+
},
|
|
5989
|
+
"addresses": {
|
|
5990
|
+
"items": {
|
|
5991
|
+
"type": "string"
|
|
5992
|
+
},
|
|
5993
|
+
"type": "array"
|
|
5994
|
+
}
|
|
5995
|
+
},
|
|
5996
|
+
"required": ["type", "operator", "addresses"],
|
|
5997
|
+
"type": "object",
|
|
5998
|
+
"additionalProperties": false
|
|
5999
|
+
},
|
|
6000
|
+
"EvmCriteriaType.EVM_TYPED_DATA_FIELD": {
|
|
6001
|
+
"enum": ["evmTypedDataField"],
|
|
6002
|
+
"type": "string"
|
|
6003
|
+
},
|
|
6004
|
+
"EvmTypedDataFieldCriterion": {
|
|
6005
|
+
"properties": {
|
|
6006
|
+
"type": {
|
|
6007
|
+
"$ref": "#/components/schemas/EvmCriteriaType.EVM_TYPED_DATA_FIELD"
|
|
6008
|
+
},
|
|
6009
|
+
"operator": {
|
|
6010
|
+
"anyOf": [
|
|
6011
|
+
{
|
|
6012
|
+
"$ref": "#/components/schemas/CriteriaOperator.IN"
|
|
6013
|
+
},
|
|
6014
|
+
{
|
|
6015
|
+
"$ref": "#/components/schemas/CriteriaOperator.LESS_THAN_OR_EQUAL"
|
|
6016
|
+
},
|
|
6017
|
+
{
|
|
6018
|
+
"$ref": "#/components/schemas/CriteriaOperator.MATCH"
|
|
6019
|
+
}
|
|
6020
|
+
]
|
|
6021
|
+
},
|
|
6022
|
+
"fieldPath": {
|
|
6023
|
+
"type": "string"
|
|
6024
|
+
},
|
|
6025
|
+
"values": {
|
|
6026
|
+
"items": {
|
|
6027
|
+
"type": "string"
|
|
6028
|
+
},
|
|
6029
|
+
"type": "array"
|
|
6030
|
+
},
|
|
6031
|
+
"value": {
|
|
6032
|
+
"type": "string"
|
|
6033
|
+
}
|
|
6034
|
+
},
|
|
6035
|
+
"required": ["type", "operator", "fieldPath"],
|
|
6036
|
+
"type": "object",
|
|
6037
|
+
"additionalProperties": false
|
|
6038
|
+
},
|
|
6039
|
+
"EvmCriteriaType.NET_USD_CHANGE": {
|
|
6040
|
+
"enum": ["netUSDChange"],
|
|
6041
|
+
"type": "string"
|
|
6042
|
+
},
|
|
6043
|
+
"NetUSDChangeCriterion": {
|
|
6044
|
+
"properties": {
|
|
6045
|
+
"type": {
|
|
6046
|
+
"$ref": "#/components/schemas/EvmCriteriaType.NET_USD_CHANGE"
|
|
6047
|
+
},
|
|
6048
|
+
"operator": {
|
|
6049
|
+
"anyOf": [
|
|
6050
|
+
{
|
|
6051
|
+
"$ref": "#/components/schemas/CriteriaOperator.LESS_THAN_OR_EQUAL"
|
|
6052
|
+
},
|
|
6053
|
+
{
|
|
6054
|
+
"$ref": "#/components/schemas/CriteriaOperator.GREATER_THAN_OR_EQUAL"
|
|
6055
|
+
}
|
|
6056
|
+
]
|
|
6057
|
+
},
|
|
6058
|
+
"usdValue": {
|
|
6059
|
+
"type": "string"
|
|
6060
|
+
}
|
|
6061
|
+
},
|
|
6062
|
+
"required": ["type", "operator", "usdValue"],
|
|
6063
|
+
"type": "object",
|
|
6064
|
+
"additionalProperties": false
|
|
6065
|
+
},
|
|
6066
|
+
"SolanaCriteriaType.SOL_ADDRESS": {
|
|
6067
|
+
"enum": ["solAddress"],
|
|
6068
|
+
"type": "string"
|
|
6069
|
+
},
|
|
6070
|
+
"SolAddressCriterion": {
|
|
6071
|
+
"properties": {
|
|
6072
|
+
"type": {
|
|
6073
|
+
"$ref": "#/components/schemas/SolanaCriteriaType.SOL_ADDRESS"
|
|
6074
|
+
},
|
|
6075
|
+
"operator": {
|
|
6076
|
+
"anyOf": [
|
|
6077
|
+
{
|
|
6078
|
+
"$ref": "#/components/schemas/CriteriaOperator.IN"
|
|
6079
|
+
},
|
|
6080
|
+
{
|
|
6081
|
+
"$ref": "#/components/schemas/CriteriaOperator.NOT_IN"
|
|
6082
|
+
}
|
|
6083
|
+
]
|
|
6084
|
+
},
|
|
6085
|
+
"addresses": {
|
|
6086
|
+
"items": {
|
|
6087
|
+
"type": "string"
|
|
6088
|
+
},
|
|
6089
|
+
"type": "array"
|
|
6090
|
+
}
|
|
6091
|
+
},
|
|
6092
|
+
"required": ["type", "operator", "addresses"],
|
|
6093
|
+
"type": "object",
|
|
6094
|
+
"additionalProperties": false
|
|
6095
|
+
},
|
|
6096
|
+
"SolanaCriteriaType.SOL_VALUE": {
|
|
6097
|
+
"enum": ["solValue"],
|
|
6098
|
+
"type": "string"
|
|
6099
|
+
},
|
|
6100
|
+
"SolValueCriterion": {
|
|
6101
|
+
"properties": {
|
|
6102
|
+
"type": {
|
|
6103
|
+
"$ref": "#/components/schemas/SolanaCriteriaType.SOL_VALUE"
|
|
6104
|
+
},
|
|
6105
|
+
"operator": {
|
|
6106
|
+
"anyOf": [
|
|
6107
|
+
{
|
|
6108
|
+
"$ref": "#/components/schemas/CriteriaOperator.LESS_THAN_OR_EQUAL"
|
|
6109
|
+
},
|
|
6110
|
+
{
|
|
6111
|
+
"$ref": "#/components/schemas/CriteriaOperator.GREATER_THAN_OR_EQUAL"
|
|
6112
|
+
}
|
|
6113
|
+
]
|
|
6114
|
+
},
|
|
6115
|
+
"value": {
|
|
6116
|
+
"type": "string"
|
|
6117
|
+
}
|
|
6118
|
+
},
|
|
6119
|
+
"required": ["type", "operator", "value"],
|
|
6120
|
+
"type": "object",
|
|
6121
|
+
"additionalProperties": false
|
|
6122
|
+
},
|
|
6123
|
+
"SolanaCriteriaType.SPL_ADDRESS": {
|
|
6124
|
+
"enum": ["splAddress"],
|
|
6125
|
+
"type": "string"
|
|
6126
|
+
},
|
|
6127
|
+
"SplAddressCriterion": {
|
|
6128
|
+
"properties": {
|
|
6129
|
+
"type": {
|
|
6130
|
+
"$ref": "#/components/schemas/SolanaCriteriaType.SPL_ADDRESS"
|
|
6131
|
+
},
|
|
6132
|
+
"operator": {
|
|
6133
|
+
"anyOf": [
|
|
6134
|
+
{
|
|
6135
|
+
"$ref": "#/components/schemas/CriteriaOperator.IN"
|
|
6136
|
+
},
|
|
6137
|
+
{
|
|
6138
|
+
"$ref": "#/components/schemas/CriteriaOperator.NOT_IN"
|
|
6139
|
+
}
|
|
6140
|
+
]
|
|
6141
|
+
},
|
|
6142
|
+
"addresses": {
|
|
6143
|
+
"items": {
|
|
6144
|
+
"type": "string"
|
|
6145
|
+
},
|
|
6146
|
+
"type": "array"
|
|
6147
|
+
}
|
|
6148
|
+
},
|
|
6149
|
+
"required": ["type", "operator", "addresses"],
|
|
6150
|
+
"type": "object",
|
|
6151
|
+
"additionalProperties": false
|
|
6152
|
+
},
|
|
6153
|
+
"SolanaCriteriaType.SPL_VALUE": {
|
|
6154
|
+
"enum": ["splValue"],
|
|
6155
|
+
"type": "string"
|
|
6156
|
+
},
|
|
6157
|
+
"SplValueCriterion": {
|
|
6158
|
+
"properties": {
|
|
6159
|
+
"type": {
|
|
6160
|
+
"$ref": "#/components/schemas/SolanaCriteriaType.SPL_VALUE"
|
|
6161
|
+
},
|
|
6162
|
+
"operator": {
|
|
6163
|
+
"anyOf": [
|
|
6164
|
+
{
|
|
6165
|
+
"$ref": "#/components/schemas/CriteriaOperator.LESS_THAN_OR_EQUAL"
|
|
6166
|
+
},
|
|
6167
|
+
{
|
|
6168
|
+
"$ref": "#/components/schemas/CriteriaOperator.GREATER_THAN_OR_EQUAL"
|
|
6169
|
+
}
|
|
6170
|
+
]
|
|
6171
|
+
},
|
|
6172
|
+
"value": {
|
|
6173
|
+
"type": "string"
|
|
6174
|
+
}
|
|
6175
|
+
},
|
|
6176
|
+
"required": ["type", "operator", "value"],
|
|
6177
|
+
"type": "object",
|
|
6178
|
+
"additionalProperties": false
|
|
6179
|
+
},
|
|
6180
|
+
"SolanaCriteriaType.MINT_ADDRESS": {
|
|
6181
|
+
"enum": ["mintAddress"],
|
|
6182
|
+
"type": "string"
|
|
6183
|
+
},
|
|
6184
|
+
"CriteriaOperator.EQUAL": {
|
|
6185
|
+
"enum": ["=="],
|
|
6186
|
+
"type": "string"
|
|
6187
|
+
},
|
|
6188
|
+
"MintAddressCriterion": {
|
|
6189
|
+
"properties": {
|
|
6190
|
+
"type": {
|
|
6191
|
+
"$ref": "#/components/schemas/SolanaCriteriaType.MINT_ADDRESS"
|
|
6192
|
+
},
|
|
6193
|
+
"operator": {
|
|
6194
|
+
"anyOf": [
|
|
6195
|
+
{
|
|
6196
|
+
"$ref": "#/components/schemas/CriteriaOperator.EQUAL"
|
|
6197
|
+
},
|
|
6198
|
+
{
|
|
6199
|
+
"$ref": "#/components/schemas/CriteriaOperator.IN"
|
|
6200
|
+
}
|
|
6201
|
+
]
|
|
6202
|
+
},
|
|
6203
|
+
"addresses": {
|
|
6204
|
+
"items": {
|
|
6205
|
+
"type": "string"
|
|
6206
|
+
},
|
|
6207
|
+
"type": "array"
|
|
6208
|
+
}
|
|
6209
|
+
},
|
|
6210
|
+
"required": ["type", "operator", "addresses"],
|
|
6211
|
+
"type": "object",
|
|
6212
|
+
"additionalProperties": false
|
|
6213
|
+
},
|
|
6214
|
+
"SolanaCriteriaType.SOL_DATA": {
|
|
6215
|
+
"enum": ["solData"],
|
|
6216
|
+
"type": "string"
|
|
6217
|
+
},
|
|
6218
|
+
"SolDataCriterion": {
|
|
6219
|
+
"properties": {
|
|
6220
|
+
"type": {
|
|
6221
|
+
"$ref": "#/components/schemas/SolanaCriteriaType.SOL_DATA"
|
|
6222
|
+
},
|
|
6223
|
+
"operator": {
|
|
6224
|
+
"$ref": "#/components/schemas/CriteriaOperator"
|
|
6225
|
+
},
|
|
6226
|
+
"idl": {
|
|
6227
|
+
"type": "string"
|
|
6228
|
+
},
|
|
6229
|
+
"instructionName": {
|
|
6230
|
+
"type": "string"
|
|
6231
|
+
},
|
|
6232
|
+
"args": {
|
|
6233
|
+
"$ref": "#/components/schemas/Record_string.unknown_"
|
|
6234
|
+
}
|
|
6235
|
+
},
|
|
6236
|
+
"required": ["type", "operator", "idl", "instructionName"],
|
|
6237
|
+
"type": "object",
|
|
6238
|
+
"additionalProperties": false
|
|
6239
|
+
},
|
|
6240
|
+
"SolanaCriteriaType.PROGRAM_ID": {
|
|
6241
|
+
"enum": ["programId"],
|
|
6242
|
+
"type": "string"
|
|
6243
|
+
},
|
|
6244
|
+
"ProgramIdCriterion": {
|
|
6245
|
+
"properties": {
|
|
6246
|
+
"type": {
|
|
6247
|
+
"$ref": "#/components/schemas/SolanaCriteriaType.PROGRAM_ID"
|
|
6248
|
+
},
|
|
6249
|
+
"operator": {
|
|
6250
|
+
"anyOf": [
|
|
6251
|
+
{
|
|
6252
|
+
"$ref": "#/components/schemas/CriteriaOperator.IN"
|
|
6253
|
+
},
|
|
6254
|
+
{
|
|
6255
|
+
"$ref": "#/components/schemas/CriteriaOperator.NOT_IN"
|
|
6256
|
+
}
|
|
6257
|
+
]
|
|
6258
|
+
},
|
|
6259
|
+
"programIds": {
|
|
6260
|
+
"items": {
|
|
6261
|
+
"type": "string"
|
|
6262
|
+
},
|
|
6263
|
+
"type": "array"
|
|
6264
|
+
}
|
|
6265
|
+
},
|
|
6266
|
+
"required": ["type", "operator", "programIds"],
|
|
6267
|
+
"type": "object",
|
|
6268
|
+
"additionalProperties": false
|
|
6269
|
+
},
|
|
6270
|
+
"SolanaCriteriaType.SOL_NETWORK": {
|
|
6271
|
+
"enum": ["solNetwork"],
|
|
6272
|
+
"type": "string"
|
|
6273
|
+
},
|
|
6274
|
+
"SolNetworkCriterion": {
|
|
6275
|
+
"properties": {
|
|
6276
|
+
"type": {
|
|
6277
|
+
"$ref": "#/components/schemas/SolanaCriteriaType.SOL_NETWORK"
|
|
6278
|
+
},
|
|
6279
|
+
"operator": {
|
|
6280
|
+
"anyOf": [
|
|
6281
|
+
{
|
|
6282
|
+
"$ref": "#/components/schemas/CriteriaOperator.IN"
|
|
6283
|
+
},
|
|
6284
|
+
{
|
|
6285
|
+
"$ref": "#/components/schemas/CriteriaOperator.NOT_IN"
|
|
6286
|
+
}
|
|
6287
|
+
]
|
|
6288
|
+
},
|
|
6289
|
+
"networks": {
|
|
6290
|
+
"items": {
|
|
6291
|
+
"type": "string"
|
|
6292
|
+
},
|
|
6293
|
+
"type": "array"
|
|
6294
|
+
}
|
|
6295
|
+
},
|
|
6296
|
+
"required": ["type", "operator", "networks"],
|
|
6297
|
+
"type": "object",
|
|
6298
|
+
"additionalProperties": false
|
|
6299
|
+
},
|
|
6300
|
+
"SolanaCriteriaType.SOL_MESSAGE": {
|
|
6301
|
+
"enum": ["solMessage"],
|
|
6302
|
+
"type": "string"
|
|
6303
|
+
},
|
|
6304
|
+
"SolMessageCriterion": {
|
|
6305
|
+
"properties": {
|
|
6306
|
+
"type": {
|
|
6307
|
+
"$ref": "#/components/schemas/SolanaCriteriaType.SOL_MESSAGE"
|
|
6308
|
+
},
|
|
6309
|
+
"operator": {
|
|
6310
|
+
"$ref": "#/components/schemas/CriteriaOperator.MATCH"
|
|
6311
|
+
},
|
|
6312
|
+
"pattern": {
|
|
6313
|
+
"type": "string"
|
|
6314
|
+
}
|
|
6315
|
+
},
|
|
6316
|
+
"required": ["type", "operator", "pattern"],
|
|
6317
|
+
"type": "object",
|
|
6318
|
+
"additionalProperties": false
|
|
6319
|
+
},
|
|
6320
|
+
"PolicyV2Criterion": {
|
|
6321
|
+
"anyOf": [
|
|
6322
|
+
{
|
|
6323
|
+
"$ref": "#/components/schemas/EvmAddressCriterion"
|
|
6324
|
+
},
|
|
6325
|
+
{
|
|
6326
|
+
"$ref": "#/components/schemas/EthValueCriterion"
|
|
6327
|
+
},
|
|
6328
|
+
{
|
|
6329
|
+
"$ref": "#/components/schemas/EvmNetworkCriterion"
|
|
6330
|
+
},
|
|
6331
|
+
{
|
|
6332
|
+
"$ref": "#/components/schemas/EvmMessageCriterion"
|
|
6333
|
+
},
|
|
6334
|
+
{
|
|
6335
|
+
"$ref": "#/components/schemas/EvmDataCriterion"
|
|
6336
|
+
},
|
|
6337
|
+
{
|
|
6338
|
+
"$ref": "#/components/schemas/EvmTypedDataVerifyingContractCriterion"
|
|
6339
|
+
},
|
|
6340
|
+
{
|
|
6341
|
+
"$ref": "#/components/schemas/EvmTypedDataFieldCriterion"
|
|
6342
|
+
},
|
|
6343
|
+
{
|
|
6344
|
+
"$ref": "#/components/schemas/NetUSDChangeCriterion"
|
|
6345
|
+
},
|
|
6346
|
+
{
|
|
6347
|
+
"$ref": "#/components/schemas/SolAddressCriterion"
|
|
6348
|
+
},
|
|
6349
|
+
{
|
|
6350
|
+
"$ref": "#/components/schemas/SolValueCriterion"
|
|
6351
|
+
},
|
|
6352
|
+
{
|
|
6353
|
+
"$ref": "#/components/schemas/SplAddressCriterion"
|
|
6354
|
+
},
|
|
6355
|
+
{
|
|
6356
|
+
"$ref": "#/components/schemas/SplValueCriterion"
|
|
6357
|
+
},
|
|
6358
|
+
{
|
|
6359
|
+
"$ref": "#/components/schemas/MintAddressCriterion"
|
|
6360
|
+
},
|
|
6361
|
+
{
|
|
6362
|
+
"$ref": "#/components/schemas/SolDataCriterion"
|
|
6363
|
+
},
|
|
6364
|
+
{
|
|
6365
|
+
"$ref": "#/components/schemas/ProgramIdCriterion"
|
|
6366
|
+
},
|
|
6367
|
+
{
|
|
6368
|
+
"$ref": "#/components/schemas/SolNetworkCriterion"
|
|
6369
|
+
},
|
|
6370
|
+
{
|
|
6371
|
+
"$ref": "#/components/schemas/SolMessageCriterion"
|
|
6372
|
+
}
|
|
6373
|
+
]
|
|
6374
|
+
},
|
|
6375
|
+
"EntityType.POLICY_V2_RULE": {
|
|
6376
|
+
"enum": ["policyV2Rule"],
|
|
6377
|
+
"type": "string"
|
|
6378
|
+
},
|
|
6379
|
+
"PolicyV2RuleResponse": {
|
|
6380
|
+
"properties": {
|
|
6381
|
+
"id": {
|
|
6382
|
+
"type": "string"
|
|
6383
|
+
},
|
|
6384
|
+
"object": {
|
|
6385
|
+
"$ref": "#/components/schemas/EntityType.POLICY_V2_RULE"
|
|
6386
|
+
},
|
|
6387
|
+
"createdAt": {
|
|
6388
|
+
"type": "integer",
|
|
6389
|
+
"format": "int32"
|
|
6390
|
+
},
|
|
6391
|
+
"action": {
|
|
6392
|
+
"$ref": "#/components/schemas/PolicyV2Action",
|
|
6393
|
+
"description": "The action to take when this rule matches.",
|
|
6394
|
+
"example": "accept"
|
|
6395
|
+
},
|
|
6396
|
+
"operation": {
|
|
6397
|
+
"type": "string",
|
|
6398
|
+
"description": "The operation this rule applies to.\nEVM: signEvmTransaction, sendEvmTransaction, signEvmTypedData, signEvmMessage, signEvmHash, prepareUserOperation, sendUserOperation\nSolana: signSolTransaction, sendSolTransaction, signSolMessage",
|
|
6399
|
+
"example": "signEvmTransaction"
|
|
6400
|
+
},
|
|
6401
|
+
"criteria": {
|
|
6402
|
+
"items": {
|
|
6403
|
+
"$ref": "#/components/schemas/PolicyV2Criterion"
|
|
6404
|
+
},
|
|
6405
|
+
"type": "array",
|
|
6406
|
+
"description": "Array of criteria to match for this rule. All criteria must match (AND logic)."
|
|
6407
|
+
}
|
|
6408
|
+
},
|
|
6409
|
+
"required": [
|
|
6410
|
+
"id",
|
|
6411
|
+
"object",
|
|
6412
|
+
"createdAt",
|
|
6413
|
+
"action",
|
|
6414
|
+
"operation",
|
|
6415
|
+
"criteria"
|
|
6416
|
+
],
|
|
6417
|
+
"type": "object",
|
|
6418
|
+
"additionalProperties": false
|
|
6419
|
+
},
|
|
6420
|
+
"EntityType.POLICY_V2": {
|
|
6421
|
+
"enum": ["policyV2"],
|
|
6422
|
+
"type": "string"
|
|
6423
|
+
},
|
|
6424
|
+
"PolicyV2Response": {
|
|
6425
|
+
"properties": {
|
|
6426
|
+
"id": {
|
|
6427
|
+
"type": "string"
|
|
6428
|
+
},
|
|
6429
|
+
"object": {
|
|
6430
|
+
"$ref": "#/components/schemas/EntityType.POLICY_V2"
|
|
6431
|
+
},
|
|
6432
|
+
"createdAt": {
|
|
6433
|
+
"type": "integer",
|
|
6434
|
+
"format": "int32"
|
|
6435
|
+
},
|
|
6436
|
+
"scope": {
|
|
6437
|
+
"$ref": "#/components/schemas/PolicyV2Scope",
|
|
6438
|
+
"description": "The scope of the policy.",
|
|
6439
|
+
"example": "project"
|
|
6440
|
+
},
|
|
6441
|
+
"description": {
|
|
6442
|
+
"type": "string",
|
|
6443
|
+
"nullable": true,
|
|
6444
|
+
"description": "A description of what this policy does.",
|
|
6445
|
+
"example": "Limit ETH transfers to 1 ETH to approved addresses"
|
|
6446
|
+
},
|
|
6447
|
+
"accountId": {
|
|
6448
|
+
"type": "string",
|
|
6449
|
+
"nullable": true,
|
|
6450
|
+
"description": "The account ID for account-scoped policies.",
|
|
6451
|
+
"example": "acc_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
6452
|
+
},
|
|
6453
|
+
"enabled": {
|
|
6454
|
+
"type": "boolean",
|
|
6455
|
+
"description": "Whether the policy is enabled.",
|
|
6456
|
+
"example": true
|
|
6457
|
+
},
|
|
6458
|
+
"priority": {
|
|
6459
|
+
"type": "integer",
|
|
6460
|
+
"format": "int32",
|
|
6461
|
+
"description": "Priority of the policy.",
|
|
6462
|
+
"example": 0
|
|
6463
|
+
},
|
|
6464
|
+
"rules": {
|
|
6465
|
+
"items": {
|
|
6466
|
+
"$ref": "#/components/schemas/PolicyV2RuleResponse"
|
|
6467
|
+
},
|
|
6468
|
+
"type": "array",
|
|
6469
|
+
"description": "The rules that make up this policy. Rules are processed sequentially until a match occurs."
|
|
6470
|
+
}
|
|
6471
|
+
},
|
|
6472
|
+
"required": [
|
|
6473
|
+
"id",
|
|
6474
|
+
"object",
|
|
6475
|
+
"createdAt",
|
|
6476
|
+
"scope",
|
|
6477
|
+
"description",
|
|
6478
|
+
"accountId",
|
|
6479
|
+
"enabled",
|
|
6480
|
+
"priority",
|
|
6481
|
+
"rules"
|
|
6482
|
+
],
|
|
6483
|
+
"type": "object",
|
|
6484
|
+
"additionalProperties": false
|
|
6485
|
+
},
|
|
6486
|
+
"PolicyV2ListResponse": {
|
|
6487
|
+
"properties": {
|
|
6488
|
+
"object": {
|
|
6489
|
+
"$ref": "#/components/schemas/ResponseType.LIST"
|
|
6490
|
+
},
|
|
6491
|
+
"url": {
|
|
6492
|
+
"type": "string"
|
|
6493
|
+
},
|
|
6494
|
+
"data": {
|
|
6495
|
+
"items": {
|
|
6496
|
+
"$ref": "#/components/schemas/PolicyV2Response"
|
|
6497
|
+
},
|
|
6498
|
+
"type": "array"
|
|
6499
|
+
},
|
|
6500
|
+
"start": {
|
|
6501
|
+
"type": "integer",
|
|
6502
|
+
"format": "int32"
|
|
6503
|
+
},
|
|
6504
|
+
"end": {
|
|
6505
|
+
"type": "integer",
|
|
6506
|
+
"format": "int32"
|
|
6507
|
+
},
|
|
6508
|
+
"total": {
|
|
6509
|
+
"type": "integer",
|
|
6510
|
+
"format": "int32"
|
|
6511
|
+
}
|
|
6512
|
+
},
|
|
6513
|
+
"required": ["object", "url", "data", "start", "end", "total"],
|
|
6514
|
+
"type": "object",
|
|
6515
|
+
"additionalProperties": false
|
|
6516
|
+
},
|
|
6517
|
+
"PolicyV2ListQueries": {
|
|
6518
|
+
"properties": {
|
|
6519
|
+
"limit": {
|
|
6520
|
+
"type": "integer",
|
|
6521
|
+
"format": "int32",
|
|
6522
|
+
"description": "Specifies the maximum number of records to return.",
|
|
6523
|
+
"minimum": 1
|
|
6524
|
+
},
|
|
6525
|
+
"skip": {
|
|
6526
|
+
"type": "integer",
|
|
6527
|
+
"format": "int32",
|
|
6528
|
+
"description": "Specifies the offset for the first records to return.",
|
|
6529
|
+
"minimum": 0
|
|
6530
|
+
},
|
|
6531
|
+
"order": {
|
|
6532
|
+
"$ref": "#/components/schemas/Prisma.SortOrder",
|
|
6533
|
+
"description": "Specifies the order in which to sort the results."
|
|
6534
|
+
},
|
|
6535
|
+
"scope": {
|
|
6536
|
+
"type": "string",
|
|
6537
|
+
"enum": ["project", "account"],
|
|
6538
|
+
"description": "Filter by scope.",
|
|
6539
|
+
"example": "project"
|
|
6540
|
+
},
|
|
6541
|
+
"enabled": {
|
|
6542
|
+
"type": "boolean",
|
|
6543
|
+
"description": "Filter by enabled status.",
|
|
6544
|
+
"example": true
|
|
6545
|
+
},
|
|
6546
|
+
"accountId": {
|
|
6547
|
+
"type": "string",
|
|
6548
|
+
"description": "Filter by account ID (for account-scoped policies).",
|
|
6549
|
+
"example": "acc_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
6550
|
+
}
|
|
6551
|
+
},
|
|
6552
|
+
"type": "object",
|
|
6553
|
+
"additionalProperties": false
|
|
6554
|
+
},
|
|
6555
|
+
"EvmAddressCriterionRequest": {
|
|
6556
|
+
"description": "EVM Address criterion - validates recipient addresses.\nOperators: \"in\", \"not in\"",
|
|
6557
|
+
"properties": {
|
|
6558
|
+
"type": {
|
|
6559
|
+
"type": "string",
|
|
6560
|
+
"enum": ["evmAddress"],
|
|
6561
|
+
"nullable": false,
|
|
6562
|
+
"description": "The type of criterion.",
|
|
6563
|
+
"example": "evmAddress"
|
|
6564
|
+
},
|
|
6565
|
+
"operator": {
|
|
6566
|
+
"type": "string",
|
|
6567
|
+
"enum": ["in", "not in"],
|
|
6568
|
+
"description": "The operator to use for comparison.",
|
|
6569
|
+
"example": "in"
|
|
6570
|
+
},
|
|
6571
|
+
"addresses": {
|
|
6572
|
+
"items": {
|
|
6573
|
+
"type": "string"
|
|
6574
|
+
},
|
|
6575
|
+
"type": "array",
|
|
6576
|
+
"description": "List of EVM addresses (hex format with 0x prefix).",
|
|
6577
|
+
"example": ["0x742d35Cc6634C0532925a3b844Bc9e7595f0aB12"]
|
|
6578
|
+
}
|
|
6579
|
+
},
|
|
6580
|
+
"required": ["type", "operator", "addresses"],
|
|
6581
|
+
"type": "object",
|
|
6582
|
+
"additionalProperties": false
|
|
6583
|
+
},
|
|
6584
|
+
"EthValueCriterionRequest": {
|
|
6585
|
+
"description": "ETH Value criterion - validates native asset amounts in wei.\nOperators: \"<=\", \">=\", \"<\", \">\"",
|
|
6586
|
+
"properties": {
|
|
6587
|
+
"type": {
|
|
6588
|
+
"type": "string",
|
|
6589
|
+
"enum": ["ethValue"],
|
|
6590
|
+
"nullable": false,
|
|
6591
|
+
"description": "The type of criterion.",
|
|
6592
|
+
"example": "ethValue"
|
|
6593
|
+
},
|
|
6594
|
+
"operator": {
|
|
6595
|
+
"type": "string",
|
|
6596
|
+
"enum": ["<=", ">=", "<", ">"],
|
|
6597
|
+
"description": "The operator to use for comparison.",
|
|
6598
|
+
"example": "<="
|
|
6599
|
+
},
|
|
6600
|
+
"ethValue": {
|
|
6601
|
+
"type": "string",
|
|
6602
|
+
"description": "Value in wei as a string.",
|
|
6603
|
+
"example": "1000000000000000000"
|
|
6604
|
+
}
|
|
6605
|
+
},
|
|
6606
|
+
"required": ["type", "operator", "ethValue"],
|
|
6607
|
+
"type": "object",
|
|
6608
|
+
"additionalProperties": false
|
|
6609
|
+
},
|
|
6610
|
+
"EvmNetworkCriterionRequest": {
|
|
6611
|
+
"description": "EVM Network criterion - validates chain IDs.\nOperators: \"in\", \"not in\"",
|
|
6612
|
+
"properties": {
|
|
6613
|
+
"type": {
|
|
6614
|
+
"type": "string",
|
|
6615
|
+
"enum": ["evmNetwork"],
|
|
6616
|
+
"nullable": false,
|
|
6617
|
+
"description": "The type of criterion.",
|
|
6618
|
+
"example": "evmNetwork"
|
|
6619
|
+
},
|
|
6620
|
+
"operator": {
|
|
6621
|
+
"type": "string",
|
|
6622
|
+
"enum": ["in", "not in"],
|
|
6623
|
+
"description": "The operator to use for comparison.",
|
|
6624
|
+
"example": "in"
|
|
6625
|
+
},
|
|
6626
|
+
"chainIds": {
|
|
6627
|
+
"items": {
|
|
6628
|
+
"type": "number",
|
|
6629
|
+
"format": "double"
|
|
6630
|
+
},
|
|
6631
|
+
"type": "array",
|
|
6632
|
+
"description": "List of chain IDs.",
|
|
6633
|
+
"example": [1, 137, 8453]
|
|
6634
|
+
}
|
|
6635
|
+
},
|
|
6636
|
+
"required": ["type", "operator", "chainIds"],
|
|
6637
|
+
"type": "object",
|
|
6638
|
+
"additionalProperties": false
|
|
6639
|
+
},
|
|
6640
|
+
"EvmMessageCriterionRequest": {
|
|
6641
|
+
"description": "EVM Message criterion - validates message content with regex (RE2).\nOperators: \"match\"",
|
|
6642
|
+
"properties": {
|
|
6643
|
+
"type": {
|
|
6644
|
+
"type": "string",
|
|
6645
|
+
"enum": ["evmMessage"],
|
|
6646
|
+
"nullable": false,
|
|
6647
|
+
"description": "The type of criterion.",
|
|
6648
|
+
"example": "evmMessage"
|
|
6649
|
+
},
|
|
6650
|
+
"operator": {
|
|
6651
|
+
"type": "string",
|
|
6652
|
+
"enum": ["match"],
|
|
6653
|
+
"nullable": false,
|
|
6654
|
+
"description": "The operator to use for comparison.",
|
|
6655
|
+
"example": "match"
|
|
6656
|
+
},
|
|
6657
|
+
"pattern": {
|
|
6658
|
+
"type": "string",
|
|
6659
|
+
"description": "RE2 regex pattern to match against the message.",
|
|
6660
|
+
"example": "^Sign this message"
|
|
6661
|
+
}
|
|
6662
|
+
},
|
|
6663
|
+
"required": ["type", "operator", "pattern"],
|
|
6664
|
+
"type": "object",
|
|
6665
|
+
"additionalProperties": false
|
|
6666
|
+
},
|
|
6667
|
+
"EvmDataCriterionRequest": {
|
|
6668
|
+
"description": "EVM Data criterion - validates transaction calldata via ABI.\nOperators: \"in\", \"not in\", \"<\", \"<=\", \">\", \">=\", \"==\", \"match\"",
|
|
6669
|
+
"properties": {
|
|
6670
|
+
"type": {
|
|
6671
|
+
"type": "string",
|
|
6672
|
+
"enum": ["evmData"],
|
|
6673
|
+
"nullable": false,
|
|
6674
|
+
"description": "The type of criterion.",
|
|
6675
|
+
"example": "evmData"
|
|
6676
|
+
},
|
|
6677
|
+
"operator": {
|
|
6678
|
+
"type": "string",
|
|
6679
|
+
"enum": ["in", "not in", "<", "<=", ">", ">=", "==", "match"],
|
|
6680
|
+
"description": "The operator to use for comparison."
|
|
6681
|
+
},
|
|
6682
|
+
"abi": {
|
|
6683
|
+
"type": "string",
|
|
6684
|
+
"description": "Contract ABI as JSON string."
|
|
6685
|
+
},
|
|
6686
|
+
"functionName": {
|
|
6687
|
+
"type": "string",
|
|
6688
|
+
"description": "Function name to match.",
|
|
6689
|
+
"example": "transfer"
|
|
6690
|
+
},
|
|
6691
|
+
"args": {
|
|
6692
|
+
"$ref": "#/components/schemas/Record_string.unknown_",
|
|
6693
|
+
"description": "Argument constraints."
|
|
6694
|
+
}
|
|
6695
|
+
},
|
|
6696
|
+
"required": ["type", "operator", "abi", "functionName"],
|
|
6697
|
+
"type": "object",
|
|
6698
|
+
"additionalProperties": false
|
|
6699
|
+
},
|
|
6700
|
+
"EvmTypedDataVerifyingContractCriterionRequest": {
|
|
6701
|
+
"description": "EVM Typed Data Verifying Contract criterion - validates EIP-712 domain contract.\nOperators: \"in\", \"not in\"",
|
|
6702
|
+
"properties": {
|
|
6703
|
+
"type": {
|
|
6704
|
+
"type": "string",
|
|
6705
|
+
"enum": ["evmTypedDataVerifyingContract"],
|
|
6706
|
+
"nullable": false,
|
|
6707
|
+
"description": "The type of criterion.",
|
|
6708
|
+
"example": "evmTypedDataVerifyingContract"
|
|
6709
|
+
},
|
|
6710
|
+
"operator": {
|
|
6711
|
+
"type": "string",
|
|
6712
|
+
"enum": ["in", "not in"],
|
|
6713
|
+
"description": "The operator to use for comparison.",
|
|
6714
|
+
"example": "in"
|
|
6715
|
+
},
|
|
6716
|
+
"addresses": {
|
|
6717
|
+
"items": {
|
|
6718
|
+
"type": "string"
|
|
6719
|
+
},
|
|
6720
|
+
"type": "array",
|
|
6721
|
+
"description": "List of verifying contract addresses."
|
|
6722
|
+
}
|
|
6723
|
+
},
|
|
6724
|
+
"required": ["type", "operator", "addresses"],
|
|
6725
|
+
"type": "object",
|
|
6726
|
+
"additionalProperties": false
|
|
6727
|
+
},
|
|
6728
|
+
"EvmTypedDataFieldCriterionRequest": {
|
|
6729
|
+
"description": "EVM Typed Data Field criterion - validates EIP-712 field values.\nOperators: \"in\", \"<=\", \"match\"",
|
|
6730
|
+
"properties": {
|
|
6731
|
+
"type": {
|
|
6732
|
+
"type": "string",
|
|
6733
|
+
"enum": ["evmTypedDataField"],
|
|
6734
|
+
"nullable": false,
|
|
6735
|
+
"description": "The type of criterion.",
|
|
6736
|
+
"example": "evmTypedDataField"
|
|
6737
|
+
},
|
|
6738
|
+
"operator": {
|
|
6739
|
+
"type": "string",
|
|
6740
|
+
"enum": ["in", "<=", "match"],
|
|
6741
|
+
"description": "The operator to use for comparison.",
|
|
6742
|
+
"example": "in"
|
|
6743
|
+
},
|
|
6744
|
+
"fieldPath": {
|
|
6745
|
+
"type": "string",
|
|
6746
|
+
"description": "Dot-notation path to field.",
|
|
6747
|
+
"example": "message.spender"
|
|
6748
|
+
},
|
|
6749
|
+
"values": {
|
|
6750
|
+
"items": {
|
|
6751
|
+
"type": "string"
|
|
6752
|
+
},
|
|
6753
|
+
"type": "array",
|
|
6754
|
+
"description": "Values for \"in\" operator."
|
|
6755
|
+
},
|
|
6756
|
+
"value": {
|
|
6757
|
+
"type": "string",
|
|
6758
|
+
"description": "Value for \"<=\" or \"match\" operators."
|
|
6759
|
+
}
|
|
6760
|
+
},
|
|
6761
|
+
"required": ["type", "operator", "fieldPath"],
|
|
6762
|
+
"type": "object",
|
|
6763
|
+
"additionalProperties": false
|
|
6764
|
+
},
|
|
6765
|
+
"NetUSDChangeCriterionRequest": {
|
|
6766
|
+
"description": "Net USD Change criterion - validates USD exposure limits (mainnet only).\nOperators: \"<=\", \">=\"",
|
|
6767
|
+
"properties": {
|
|
6768
|
+
"type": {
|
|
6769
|
+
"type": "string",
|
|
6770
|
+
"enum": ["netUSDChange"],
|
|
6771
|
+
"nullable": false,
|
|
6772
|
+
"description": "The type of criterion.",
|
|
6773
|
+
"example": "netUSDChange"
|
|
6774
|
+
},
|
|
6775
|
+
"operator": {
|
|
6776
|
+
"type": "string",
|
|
6777
|
+
"enum": ["<=", ">="],
|
|
6778
|
+
"description": "The operator to use for comparison.",
|
|
6779
|
+
"example": "<="
|
|
6780
|
+
},
|
|
6781
|
+
"usdValue": {
|
|
6782
|
+
"type": "string",
|
|
6783
|
+
"description": "USD value as string.",
|
|
6784
|
+
"example": "1000.00"
|
|
6785
|
+
}
|
|
6786
|
+
},
|
|
6787
|
+
"required": ["type", "operator", "usdValue"],
|
|
6788
|
+
"type": "object",
|
|
6789
|
+
"additionalProperties": false
|
|
6790
|
+
},
|
|
6791
|
+
"SolAddressCriterionRequest": {
|
|
6792
|
+
"description": "Solana Address criterion - validates native SOL transfer recipients.\nOperators: \"in\", \"not in\"",
|
|
6793
|
+
"properties": {
|
|
6794
|
+
"type": {
|
|
6795
|
+
"type": "string",
|
|
6796
|
+
"enum": ["solAddress"],
|
|
6797
|
+
"nullable": false,
|
|
6798
|
+
"description": "The type of criterion.",
|
|
6799
|
+
"example": "solAddress"
|
|
6800
|
+
},
|
|
6801
|
+
"operator": {
|
|
6802
|
+
"type": "string",
|
|
6803
|
+
"enum": ["in", "not in"],
|
|
6804
|
+
"description": "The operator to use for comparison.",
|
|
6805
|
+
"example": "in"
|
|
6806
|
+
},
|
|
6807
|
+
"addresses": {
|
|
6808
|
+
"items": {
|
|
6809
|
+
"type": "string"
|
|
6810
|
+
},
|
|
6811
|
+
"type": "array",
|
|
6812
|
+
"description": "List of Solana addresses (Base58).",
|
|
6813
|
+
"example": ["7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU"]
|
|
6814
|
+
}
|
|
6815
|
+
},
|
|
6816
|
+
"required": ["type", "operator", "addresses"],
|
|
6817
|
+
"type": "object",
|
|
6818
|
+
"additionalProperties": false
|
|
6819
|
+
},
|
|
6820
|
+
"SolValueCriterionRequest": {
|
|
6821
|
+
"description": "SOL Value criterion - validates SOL amounts in lamports.\nOperators: \"<=\", \">=\"",
|
|
6822
|
+
"properties": {
|
|
6823
|
+
"type": {
|
|
6824
|
+
"type": "string",
|
|
6825
|
+
"enum": ["solValue"],
|
|
6826
|
+
"nullable": false,
|
|
6827
|
+
"description": "The type of criterion.",
|
|
6828
|
+
"example": "solValue"
|
|
6829
|
+
},
|
|
6830
|
+
"operator": {
|
|
6831
|
+
"type": "string",
|
|
6832
|
+
"enum": ["<=", ">="],
|
|
6833
|
+
"description": "The operator to use for comparison.",
|
|
6834
|
+
"example": "<="
|
|
6835
|
+
},
|
|
6836
|
+
"value": {
|
|
6837
|
+
"type": "string",
|
|
6838
|
+
"description": "Value in lamports as string.",
|
|
6839
|
+
"example": "1000000000"
|
|
6840
|
+
}
|
|
6841
|
+
},
|
|
6842
|
+
"required": ["type", "operator", "value"],
|
|
6843
|
+
"type": "object",
|
|
6844
|
+
"additionalProperties": false
|
|
6845
|
+
},
|
|
6846
|
+
"SplAddressCriterionRequest": {
|
|
6847
|
+
"description": "SPL Address criterion - validates SPL token recipients.\nOperators: \"in\", \"not in\"",
|
|
6848
|
+
"properties": {
|
|
6849
|
+
"type": {
|
|
6850
|
+
"type": "string",
|
|
6851
|
+
"enum": ["splAddress"],
|
|
6852
|
+
"nullable": false,
|
|
6853
|
+
"description": "The type of criterion.",
|
|
6854
|
+
"example": "splAddress"
|
|
6855
|
+
},
|
|
6856
|
+
"operator": {
|
|
6857
|
+
"type": "string",
|
|
6858
|
+
"enum": ["in", "not in"],
|
|
6859
|
+
"description": "The operator to use for comparison.",
|
|
6860
|
+
"example": "in"
|
|
6861
|
+
},
|
|
6862
|
+
"addresses": {
|
|
6863
|
+
"items": {
|
|
6864
|
+
"type": "string"
|
|
6865
|
+
},
|
|
6866
|
+
"type": "array",
|
|
6867
|
+
"description": "List of recipient addresses (Base58)."
|
|
6868
|
+
}
|
|
6869
|
+
},
|
|
6870
|
+
"required": ["type", "operator", "addresses"],
|
|
6871
|
+
"type": "object",
|
|
6872
|
+
"additionalProperties": false
|
|
6873
|
+
},
|
|
6874
|
+
"SplValueCriterionRequest": {
|
|
6875
|
+
"description": "SPL Value criterion - validates SPL token amounts.\nOperators: \"<=\", \">=\"",
|
|
6876
|
+
"properties": {
|
|
6877
|
+
"type": {
|
|
6878
|
+
"type": "string",
|
|
6879
|
+
"enum": ["splValue"],
|
|
6880
|
+
"nullable": false,
|
|
6881
|
+
"description": "The type of criterion.",
|
|
6882
|
+
"example": "splValue"
|
|
6883
|
+
},
|
|
6884
|
+
"operator": {
|
|
6885
|
+
"type": "string",
|
|
6886
|
+
"enum": ["<=", ">="],
|
|
6887
|
+
"description": "The operator to use for comparison.",
|
|
6888
|
+
"example": "<="
|
|
6889
|
+
},
|
|
6890
|
+
"value": {
|
|
6891
|
+
"type": "string",
|
|
6892
|
+
"description": "Token amount as string."
|
|
6893
|
+
}
|
|
6894
|
+
},
|
|
6895
|
+
"required": ["type", "operator", "value"],
|
|
6896
|
+
"type": "object",
|
|
6897
|
+
"additionalProperties": false
|
|
6898
|
+
},
|
|
6899
|
+
"MintAddressCriterionRequest": {
|
|
6900
|
+
"description": "Mint Address criterion - validates token mint addresses.\nOperators: \"==\", \"in\"",
|
|
6901
|
+
"properties": {
|
|
6902
|
+
"type": {
|
|
6903
|
+
"type": "string",
|
|
6904
|
+
"enum": ["mintAddress"],
|
|
6905
|
+
"nullable": false,
|
|
6906
|
+
"description": "The type of criterion.",
|
|
6907
|
+
"example": "mintAddress"
|
|
6908
|
+
},
|
|
6909
|
+
"operator": {
|
|
6910
|
+
"type": "string",
|
|
6911
|
+
"enum": ["==", "in"],
|
|
6912
|
+
"description": "The operator to use for comparison.",
|
|
6913
|
+
"example": "in"
|
|
6914
|
+
},
|
|
6915
|
+
"addresses": {
|
|
6916
|
+
"items": {
|
|
6917
|
+
"type": "string"
|
|
6918
|
+
},
|
|
6919
|
+
"type": "array",
|
|
6920
|
+
"description": "List of mint addresses (Base58)."
|
|
6921
|
+
}
|
|
6922
|
+
},
|
|
6923
|
+
"required": ["type", "operator", "addresses"],
|
|
6924
|
+
"type": "object",
|
|
6925
|
+
"additionalProperties": false
|
|
6926
|
+
},
|
|
6927
|
+
"SolDataCriterionRequest": {
|
|
6928
|
+
"description": "Solana Data criterion - validates instruction params via Anchor IDL.\nOperators: \"in\", \"not in\", \"<=\", \">=\", \"==\", \"match\"",
|
|
6929
|
+
"properties": {
|
|
6930
|
+
"type": {
|
|
6931
|
+
"type": "string",
|
|
6932
|
+
"enum": ["solData"],
|
|
6933
|
+
"nullable": false,
|
|
6934
|
+
"description": "The type of criterion.",
|
|
6935
|
+
"example": "solData"
|
|
6936
|
+
},
|
|
6937
|
+
"operator": {
|
|
6938
|
+
"type": "string",
|
|
6939
|
+
"enum": ["in", "not in", "<=", ">=", "==", "match"],
|
|
6940
|
+
"description": "The operator to use for comparison."
|
|
6941
|
+
},
|
|
6942
|
+
"idl": {
|
|
6943
|
+
"type": "string",
|
|
6944
|
+
"description": "Anchor IDL JSON (v0.30+)."
|
|
6945
|
+
},
|
|
6946
|
+
"instructionName": {
|
|
6947
|
+
"type": "string",
|
|
6948
|
+
"description": "Instruction name."
|
|
6949
|
+
},
|
|
6950
|
+
"args": {
|
|
6951
|
+
"$ref": "#/components/schemas/Record_string.unknown_",
|
|
6952
|
+
"description": "Argument constraints."
|
|
6953
|
+
}
|
|
6954
|
+
},
|
|
6955
|
+
"required": ["type", "operator", "idl", "instructionName"],
|
|
6956
|
+
"type": "object",
|
|
6957
|
+
"additionalProperties": false
|
|
6958
|
+
},
|
|
6959
|
+
"ProgramIdCriterionRequest": {
|
|
6960
|
+
"description": "Program ID criterion - validates Solana program IDs.\nOperators: \"in\", \"not in\"",
|
|
6961
|
+
"properties": {
|
|
6962
|
+
"type": {
|
|
6963
|
+
"type": "string",
|
|
6964
|
+
"enum": ["programId"],
|
|
6965
|
+
"nullable": false,
|
|
6966
|
+
"description": "The type of criterion.",
|
|
6967
|
+
"example": "programId"
|
|
6968
|
+
},
|
|
6969
|
+
"operator": {
|
|
6970
|
+
"type": "string",
|
|
6971
|
+
"enum": ["in", "not in"],
|
|
6972
|
+
"description": "The operator to use for comparison.",
|
|
6973
|
+
"example": "in"
|
|
6974
|
+
},
|
|
6975
|
+
"programIds": {
|
|
6976
|
+
"items": {
|
|
6977
|
+
"type": "string"
|
|
6978
|
+
},
|
|
6979
|
+
"type": "array",
|
|
6980
|
+
"description": "List of program IDs (Base58)."
|
|
6981
|
+
}
|
|
6982
|
+
},
|
|
6983
|
+
"required": ["type", "operator", "programIds"],
|
|
6984
|
+
"type": "object",
|
|
6985
|
+
"additionalProperties": false
|
|
6986
|
+
},
|
|
6987
|
+
"SolNetworkCriterionRequest": {
|
|
6988
|
+
"description": "Solana Network criterion - validates Solana network.\nOperators: \"in\", \"not in\"",
|
|
6989
|
+
"properties": {
|
|
6990
|
+
"type": {
|
|
6991
|
+
"type": "string",
|
|
6992
|
+
"enum": ["solNetwork"],
|
|
6993
|
+
"nullable": false,
|
|
6994
|
+
"description": "The type of criterion.",
|
|
6995
|
+
"example": "solNetwork"
|
|
6996
|
+
},
|
|
6997
|
+
"operator": {
|
|
6998
|
+
"type": "string",
|
|
6999
|
+
"enum": ["in", "not in"],
|
|
7000
|
+
"description": "The operator to use for comparison.",
|
|
7001
|
+
"example": "in"
|
|
7002
|
+
},
|
|
7003
|
+
"networks": {
|
|
7004
|
+
"items": {
|
|
7005
|
+
"type": "string"
|
|
7006
|
+
},
|
|
7007
|
+
"type": "array",
|
|
7008
|
+
"description": "List of networks: \"mainnet-beta\", \"devnet\", \"testnet\".",
|
|
7009
|
+
"example": ["mainnet-beta"]
|
|
7010
|
+
}
|
|
7011
|
+
},
|
|
7012
|
+
"required": ["type", "operator", "networks"],
|
|
7013
|
+
"type": "object",
|
|
7014
|
+
"additionalProperties": false
|
|
7015
|
+
},
|
|
7016
|
+
"SolMessageCriterionRequest": {
|
|
7017
|
+
"description": "Solana Message criterion - validates message content with regex.\nOperators: \"match\"",
|
|
7018
|
+
"properties": {
|
|
7019
|
+
"type": {
|
|
7020
|
+
"type": "string",
|
|
7021
|
+
"enum": ["solMessage"],
|
|
7022
|
+
"nullable": false,
|
|
7023
|
+
"description": "The type of criterion.",
|
|
7024
|
+
"example": "solMessage"
|
|
7025
|
+
},
|
|
7026
|
+
"operator": {
|
|
7027
|
+
"type": "string",
|
|
7028
|
+
"enum": ["match"],
|
|
7029
|
+
"nullable": false,
|
|
7030
|
+
"description": "The operator to use for comparison.",
|
|
7031
|
+
"example": "match"
|
|
7032
|
+
},
|
|
7033
|
+
"pattern": {
|
|
7034
|
+
"type": "string",
|
|
7035
|
+
"description": "RE2 regex pattern."
|
|
7036
|
+
}
|
|
7037
|
+
},
|
|
7038
|
+
"required": ["type", "operator", "pattern"],
|
|
7039
|
+
"type": "object",
|
|
7040
|
+
"additionalProperties": false
|
|
7041
|
+
},
|
|
7042
|
+
"PolicyV2CriterionRequest": {
|
|
7043
|
+
"anyOf": [
|
|
7044
|
+
{
|
|
7045
|
+
"$ref": "#/components/schemas/EvmAddressCriterionRequest"
|
|
7046
|
+
},
|
|
7047
|
+
{
|
|
7048
|
+
"$ref": "#/components/schemas/EthValueCriterionRequest"
|
|
7049
|
+
},
|
|
7050
|
+
{
|
|
7051
|
+
"$ref": "#/components/schemas/EvmNetworkCriterionRequest"
|
|
7052
|
+
},
|
|
7053
|
+
{
|
|
7054
|
+
"$ref": "#/components/schemas/EvmMessageCriterionRequest"
|
|
7055
|
+
},
|
|
7056
|
+
{
|
|
7057
|
+
"$ref": "#/components/schemas/EvmDataCriterionRequest"
|
|
7058
|
+
},
|
|
7059
|
+
{
|
|
7060
|
+
"$ref": "#/components/schemas/EvmTypedDataVerifyingContractCriterionRequest"
|
|
7061
|
+
},
|
|
7062
|
+
{
|
|
7063
|
+
"$ref": "#/components/schemas/EvmTypedDataFieldCriterionRequest"
|
|
7064
|
+
},
|
|
7065
|
+
{
|
|
7066
|
+
"$ref": "#/components/schemas/NetUSDChangeCriterionRequest"
|
|
7067
|
+
},
|
|
7068
|
+
{
|
|
7069
|
+
"$ref": "#/components/schemas/SolAddressCriterionRequest"
|
|
7070
|
+
},
|
|
7071
|
+
{
|
|
7072
|
+
"$ref": "#/components/schemas/SolValueCriterionRequest"
|
|
7073
|
+
},
|
|
7074
|
+
{
|
|
7075
|
+
"$ref": "#/components/schemas/SplAddressCriterionRequest"
|
|
7076
|
+
},
|
|
7077
|
+
{
|
|
7078
|
+
"$ref": "#/components/schemas/SplValueCriterionRequest"
|
|
7079
|
+
},
|
|
7080
|
+
{
|
|
7081
|
+
"$ref": "#/components/schemas/MintAddressCriterionRequest"
|
|
7082
|
+
},
|
|
7083
|
+
{
|
|
7084
|
+
"$ref": "#/components/schemas/SolDataCriterionRequest"
|
|
7085
|
+
},
|
|
7086
|
+
{
|
|
7087
|
+
"$ref": "#/components/schemas/ProgramIdCriterionRequest"
|
|
7088
|
+
},
|
|
7089
|
+
{
|
|
7090
|
+
"$ref": "#/components/schemas/SolNetworkCriterionRequest"
|
|
7091
|
+
},
|
|
7092
|
+
{
|
|
7093
|
+
"$ref": "#/components/schemas/SolMessageCriterionRequest"
|
|
7094
|
+
}
|
|
7095
|
+
],
|
|
7096
|
+
"description": "Union of all criterion request types."
|
|
7097
|
+
},
|
|
7098
|
+
"CreatePolicyV2RuleRequest": {
|
|
7099
|
+
"properties": {
|
|
7100
|
+
"action": {
|
|
7101
|
+
"type": "string",
|
|
7102
|
+
"enum": ["accept", "reject"],
|
|
7103
|
+
"description": "The action to take when this rule matches.",
|
|
7104
|
+
"example": "accept"
|
|
7105
|
+
},
|
|
7106
|
+
"operation": {
|
|
7107
|
+
"type": "string",
|
|
7108
|
+
"description": "The operation this rule applies to.\nEVM: signEvmTransaction, sendEvmTransaction, signEvmTypedData, signEvmMessage, signEvmHash, prepareUserOperation, sendUserOperation\nSolana: signSolTransaction, sendSolTransaction, signSolMessage",
|
|
7109
|
+
"example": "signEvmTransaction"
|
|
7110
|
+
},
|
|
7111
|
+
"criteria": {
|
|
7112
|
+
"items": {
|
|
7113
|
+
"$ref": "#/components/schemas/PolicyV2CriterionRequest"
|
|
7114
|
+
},
|
|
7115
|
+
"type": "array",
|
|
7116
|
+
"description": "Array of criteria to match for this rule. All criteria must match (AND logic)."
|
|
7117
|
+
}
|
|
7118
|
+
},
|
|
7119
|
+
"required": ["action", "operation"],
|
|
7120
|
+
"type": "object",
|
|
7121
|
+
"additionalProperties": false
|
|
7122
|
+
},
|
|
7123
|
+
"CreatePolicyV2Request": {
|
|
7124
|
+
"properties": {
|
|
7125
|
+
"scope": {
|
|
7126
|
+
"type": "string",
|
|
7127
|
+
"enum": ["project", "account"],
|
|
7128
|
+
"description": "The scope of the policy. 'project' applies to all accounts, 'account' applies to a specific account.",
|
|
7129
|
+
"example": "project"
|
|
7130
|
+
},
|
|
7131
|
+
"description": {
|
|
7132
|
+
"type": "string",
|
|
7133
|
+
"description": "A description of what this policy does.",
|
|
7134
|
+
"example": "Limit ETH transfers to 1 ETH to approved addresses"
|
|
7135
|
+
},
|
|
7136
|
+
"accountId": {
|
|
7137
|
+
"type": "string",
|
|
7138
|
+
"description": "The account ID for account-scoped policies (starts with acc_). Required when scope is 'account'.",
|
|
7139
|
+
"example": "acc_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
7140
|
+
},
|
|
7141
|
+
"enabled": {
|
|
7142
|
+
"type": "boolean",
|
|
7143
|
+
"description": "Whether the policy is enabled.",
|
|
7144
|
+
"example": true
|
|
7145
|
+
},
|
|
7146
|
+
"priority": {
|
|
7147
|
+
"type": "integer",
|
|
7148
|
+
"format": "int32",
|
|
7149
|
+
"description": "Priority of the policy. Higher priority policies are evaluated first.",
|
|
7150
|
+
"example": 0
|
|
7151
|
+
},
|
|
7152
|
+
"rules": {
|
|
7153
|
+
"items": {
|
|
7154
|
+
"$ref": "#/components/schemas/CreatePolicyV2RuleRequest"
|
|
7155
|
+
},
|
|
7156
|
+
"type": "array",
|
|
7157
|
+
"description": "The rules that make up this policy. Rules are processed sequentially until a match occurs."
|
|
7158
|
+
}
|
|
7159
|
+
},
|
|
7160
|
+
"required": ["scope", "rules"],
|
|
7161
|
+
"type": "object",
|
|
7162
|
+
"additionalProperties": false
|
|
7163
|
+
},
|
|
7164
|
+
"EvaluatePolicyV2Response": {
|
|
7165
|
+
"properties": {
|
|
7166
|
+
"object": {
|
|
7167
|
+
"type": "string",
|
|
7168
|
+
"enum": ["policy_evaluation"],
|
|
7169
|
+
"nullable": false,
|
|
7170
|
+
"description": "The object type.",
|
|
7171
|
+
"example": "policy_evaluation"
|
|
7172
|
+
},
|
|
7173
|
+
"allowed": {
|
|
7174
|
+
"type": "boolean",
|
|
7175
|
+
"description": "Whether the operation is allowed by the policy.",
|
|
7176
|
+
"example": true
|
|
7177
|
+
},
|
|
7178
|
+
"reason": {
|
|
7179
|
+
"type": "string",
|
|
7180
|
+
"description": "The reason for the policy decision.",
|
|
7181
|
+
"example": "Allowed by policy rule"
|
|
7182
|
+
},
|
|
7183
|
+
"operation": {
|
|
7184
|
+
"type": "string",
|
|
7185
|
+
"description": "The operation that was evaluated.",
|
|
7186
|
+
"example": "signEvmTransaction"
|
|
7187
|
+
},
|
|
7188
|
+
"accountId": {
|
|
7189
|
+
"type": "string",
|
|
7190
|
+
"description": "The account ID that was evaluated (if any).",
|
|
7191
|
+
"example": "acc_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
7192
|
+
},
|
|
7193
|
+
"matchedPolicyId": {
|
|
7194
|
+
"type": "string",
|
|
7195
|
+
"description": "The ID of the policy that matched (if any).",
|
|
7196
|
+
"example": "ply_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
7197
|
+
},
|
|
7198
|
+
"matchedRuleId": {
|
|
7199
|
+
"type": "string",
|
|
7200
|
+
"description": "The ID of the rule that matched (if any).",
|
|
7201
|
+
"example": "plr_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
7202
|
+
}
|
|
7203
|
+
},
|
|
7204
|
+
"required": ["object", "allowed", "reason", "operation"],
|
|
7205
|
+
"type": "object",
|
|
7206
|
+
"additionalProperties": false
|
|
7207
|
+
},
|
|
7208
|
+
"EvaluatePolicyV2Payload": {
|
|
7209
|
+
"properties": {
|
|
7210
|
+
"chainId": {
|
|
7211
|
+
"type": "integer",
|
|
7212
|
+
"format": "int32",
|
|
7213
|
+
"description": "Chain ID for EVM operations.",
|
|
7214
|
+
"example": 1
|
|
7215
|
+
},
|
|
7216
|
+
"to": {
|
|
7217
|
+
"type": "string",
|
|
7218
|
+
"description": "Recipient address for EVM transaction (hex with 0x prefix).",
|
|
7219
|
+
"example": "0x742d35Cc6634C0532925a3b844Bc9e7595f0aB12"
|
|
7220
|
+
},
|
|
7221
|
+
"value": {
|
|
7222
|
+
"type": "string",
|
|
7223
|
+
"description": "Value in wei for EVM transaction.",
|
|
7224
|
+
"example": "1000000000000000000"
|
|
7225
|
+
},
|
|
7226
|
+
"data": {
|
|
7227
|
+
"type": "string",
|
|
7228
|
+
"description": "Transaction data/calldata for EVM transaction (hex with 0x prefix).",
|
|
7229
|
+
"example": "0xa9059cbb..."
|
|
7230
|
+
},
|
|
7231
|
+
"verifyingContract": {
|
|
7232
|
+
"type": "string",
|
|
7233
|
+
"description": "Verifying contract address for EIP-712 typed data."
|
|
7234
|
+
},
|
|
7235
|
+
"domain": {
|
|
7236
|
+
"$ref": "#/components/schemas/Record_string.unknown_",
|
|
7237
|
+
"description": "EIP-712 domain object."
|
|
7238
|
+
},
|
|
7239
|
+
"message": {
|
|
7240
|
+
"$ref": "#/components/schemas/Record_string.unknown_",
|
|
7241
|
+
"description": "EIP-712 message object."
|
|
7242
|
+
},
|
|
7243
|
+
"primaryType": {
|
|
7244
|
+
"type": "string",
|
|
7245
|
+
"description": "Primary type for EIP-712 typed data.",
|
|
7246
|
+
"example": "Permit"
|
|
7247
|
+
},
|
|
7248
|
+
"evmMessage": {
|
|
7249
|
+
"type": "string",
|
|
7250
|
+
"description": "Message content for signEvmMessage."
|
|
7251
|
+
},
|
|
7252
|
+
"network": {
|
|
7253
|
+
"type": "string",
|
|
7254
|
+
"description": "Solana network: \"mainnet-beta\", \"devnet\", \"testnet\".",
|
|
7255
|
+
"example": "mainnet-beta"
|
|
7256
|
+
},
|
|
7257
|
+
"recipients": {
|
|
7258
|
+
"items": {
|
|
7259
|
+
"type": "string"
|
|
7260
|
+
},
|
|
7261
|
+
"type": "array",
|
|
7262
|
+
"description": "Recipient addresses for SOL transfers (Base58)."
|
|
7263
|
+
},
|
|
7264
|
+
"solValue": {
|
|
7265
|
+
"type": "string",
|
|
7266
|
+
"description": "SOL amount in lamports.",
|
|
7267
|
+
"example": "1000000000"
|
|
7268
|
+
},
|
|
7269
|
+
"splRecipients": {
|
|
7270
|
+
"items": {
|
|
7271
|
+
"type": "string"
|
|
7272
|
+
},
|
|
7273
|
+
"type": "array",
|
|
7274
|
+
"description": "Recipient addresses for SPL token transfers (Base58)."
|
|
7275
|
+
},
|
|
7276
|
+
"splValue": {
|
|
7277
|
+
"type": "string",
|
|
7278
|
+
"description": "SPL token amount."
|
|
7279
|
+
},
|
|
7280
|
+
"mintAddress": {
|
|
7281
|
+
"type": "string",
|
|
7282
|
+
"description": "Token mint address (Base58)."
|
|
7283
|
+
},
|
|
7284
|
+
"programIds": {
|
|
7285
|
+
"items": {
|
|
7286
|
+
"type": "string"
|
|
7287
|
+
},
|
|
7288
|
+
"type": "array",
|
|
7289
|
+
"description": "Program IDs involved in transaction (Base58)."
|
|
7290
|
+
},
|
|
7291
|
+
"solMessage": {
|
|
7292
|
+
"type": "string",
|
|
7293
|
+
"description": "Message content for signSolMessage."
|
|
7294
|
+
},
|
|
7295
|
+
"instructionData": {
|
|
7296
|
+
"type": "string",
|
|
7297
|
+
"description": "Base64-encoded instruction data for Solana programs (includes 8-byte discriminator)."
|
|
7298
|
+
}
|
|
7299
|
+
},
|
|
7300
|
+
"type": "object",
|
|
7301
|
+
"additionalProperties": false
|
|
7302
|
+
},
|
|
7303
|
+
"EvaluatePolicyV2Request": {
|
|
7304
|
+
"properties": {
|
|
7305
|
+
"operation": {
|
|
7306
|
+
"type": "string",
|
|
7307
|
+
"description": "The signing operation to evaluate.\nEVM: signEvmTransaction, sendEvmTransaction, signEvmTypedData, signEvmMessage, signEvmHash, prepareUserOperation, sendUserOperation\nSolana: signSolTransaction, sendSolTransaction, signSolMessage",
|
|
7308
|
+
"example": "signEvmTransaction"
|
|
7309
|
+
},
|
|
7310
|
+
"accountId": {
|
|
7311
|
+
"type": "string",
|
|
7312
|
+
"description": "The account ID to evaluate policies for (starts with acc_). If not provided, only project-scoped policies are evaluated.",
|
|
7313
|
+
"example": "acc_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
7314
|
+
},
|
|
7315
|
+
"payload": {
|
|
7316
|
+
"$ref": "#/components/schemas/EvaluatePolicyV2Payload",
|
|
7317
|
+
"description": "The payload to evaluate against policy criteria. Structure depends on the operation type."
|
|
7318
|
+
}
|
|
7319
|
+
},
|
|
7320
|
+
"required": ["operation"],
|
|
7321
|
+
"type": "object",
|
|
7322
|
+
"additionalProperties": false
|
|
7323
|
+
},
|
|
7324
|
+
"UpdatePolicyV2Request": {
|
|
7325
|
+
"properties": {
|
|
7326
|
+
"description": {
|
|
7327
|
+
"type": "string",
|
|
7328
|
+
"description": "A description of what this policy does.",
|
|
7329
|
+
"example": "Limit ETH transfers to 1 ETH to approved addresses"
|
|
7330
|
+
},
|
|
7331
|
+
"enabled": {
|
|
7332
|
+
"type": "boolean",
|
|
7333
|
+
"description": "Whether the policy is enabled.",
|
|
7334
|
+
"example": true
|
|
7335
|
+
},
|
|
7336
|
+
"priority": {
|
|
7337
|
+
"type": "integer",
|
|
7338
|
+
"format": "int32",
|
|
7339
|
+
"description": "Priority of the policy. Higher priority policies are evaluated first.",
|
|
7340
|
+
"example": 0
|
|
7341
|
+
},
|
|
7342
|
+
"rules": {
|
|
7343
|
+
"items": {
|
|
7344
|
+
"$ref": "#/components/schemas/CreatePolicyV2RuleRequest"
|
|
7345
|
+
},
|
|
7346
|
+
"type": "array",
|
|
7347
|
+
"description": "The rules that make up this policy. If provided, replaces all existing rules."
|
|
7348
|
+
}
|
|
7349
|
+
},
|
|
7350
|
+
"type": "object",
|
|
7351
|
+
"additionalProperties": false
|
|
7352
|
+
},
|
|
7353
|
+
"PolicyV2DeleteResponse": {
|
|
7354
|
+
"properties": {
|
|
7355
|
+
"id": {
|
|
7356
|
+
"type": "string"
|
|
7357
|
+
},
|
|
7358
|
+
"object": {
|
|
7359
|
+
"$ref": "#/components/schemas/EntityType.POLICY_V2"
|
|
7360
|
+
},
|
|
7361
|
+
"deleted": {
|
|
7362
|
+
"type": "boolean"
|
|
7363
|
+
}
|
|
7364
|
+
},
|
|
7365
|
+
"required": ["id", "object", "deleted"],
|
|
7366
|
+
"type": "object",
|
|
7367
|
+
"additionalProperties": false
|
|
7368
|
+
},
|
|
7369
|
+
"RecoverV2Response": {
|
|
7370
|
+
"properties": {
|
|
7371
|
+
"id": {
|
|
7372
|
+
"type": "string"
|
|
7373
|
+
},
|
|
7374
|
+
"account": {
|
|
7375
|
+
"type": "string"
|
|
7376
|
+
},
|
|
7377
|
+
"signerAddress": {
|
|
7378
|
+
"type": "string"
|
|
7379
|
+
},
|
|
7380
|
+
"signer": {
|
|
7381
|
+
"type": "string"
|
|
7382
|
+
},
|
|
7383
|
+
"share": {
|
|
7384
|
+
"type": "string"
|
|
7385
|
+
},
|
|
7386
|
+
"isPrimary": {
|
|
7387
|
+
"type": "boolean"
|
|
7388
|
+
},
|
|
7389
|
+
"createdAt": {
|
|
7390
|
+
"type": "string",
|
|
7391
|
+
"format": "date-time"
|
|
7392
|
+
},
|
|
7393
|
+
"user": {
|
|
7394
|
+
"type": "string"
|
|
7395
|
+
}
|
|
7396
|
+
},
|
|
7397
|
+
"required": [
|
|
7398
|
+
"id",
|
|
7399
|
+
"account",
|
|
7400
|
+
"signerAddress",
|
|
7401
|
+
"signer",
|
|
7402
|
+
"share",
|
|
7403
|
+
"isPrimary",
|
|
7404
|
+
"createdAt",
|
|
7405
|
+
"user"
|
|
7406
|
+
],
|
|
7407
|
+
"type": "object",
|
|
7408
|
+
"additionalProperties": false
|
|
7409
|
+
},
|
|
7410
|
+
"RecoverV2EmbeddedRequest": {
|
|
7411
|
+
"properties": {
|
|
7412
|
+
"account": {
|
|
7413
|
+
"type": "string"
|
|
7414
|
+
}
|
|
7415
|
+
},
|
|
7416
|
+
"required": ["account"],
|
|
7417
|
+
"type": "object",
|
|
7418
|
+
"additionalProperties": false
|
|
7419
|
+
},
|
|
7420
|
+
"RegisterEmbeddedV2Request": {
|
|
7421
|
+
"properties": {
|
|
7422
|
+
"account": {
|
|
7423
|
+
"type": "string"
|
|
7424
|
+
},
|
|
7425
|
+
"share": {
|
|
7426
|
+
"type": "string"
|
|
7427
|
+
}
|
|
7428
|
+
},
|
|
7429
|
+
"required": ["account", "share"],
|
|
7430
|
+
"type": "object",
|
|
7431
|
+
"additionalProperties": false
|
|
7432
|
+
},
|
|
7433
|
+
"CreateEmbeddedRequest": {
|
|
7434
|
+
"properties": {
|
|
7435
|
+
"accountType": {
|
|
7436
|
+
"type": "string",
|
|
7437
|
+
"enum": [
|
|
7438
|
+
"Externally Owned Account",
|
|
7439
|
+
"Smart Account",
|
|
7440
|
+
"Delegated Account"
|
|
7441
|
+
],
|
|
7442
|
+
"description": "The type of smart account that will be created. \"Externally Owned Account\", \"Smart Account\" or \"Delegated Account\".",
|
|
7443
|
+
"example": "Externally Owned Account"
|
|
7444
|
+
},
|
|
7445
|
+
"chainType": {
|
|
7446
|
+
"type": "string",
|
|
7447
|
+
"enum": ["EVM", "SVM"],
|
|
7448
|
+
"description": "The chain type. \"EVM\" or \"SVM\".",
|
|
7449
|
+
"example": "EVM"
|
|
7450
|
+
},
|
|
7451
|
+
"address": {
|
|
7452
|
+
"type": "string",
|
|
7453
|
+
"description": "The wallet address. For EOA: the EOA address. For Smart Account: the owner address (EOA will be created with this address). For Delegated Account: the address for both EOA and Delegated Account.",
|
|
7454
|
+
"example": "0x662D24Bf7Ea2dD6a7D0935F680a6056b94fE934d"
|
|
7455
|
+
},
|
|
7456
|
+
"chainId": {
|
|
7457
|
+
"type": "integer",
|
|
7458
|
+
"format": "int32",
|
|
7459
|
+
"description": "The chain ID. Must be a [supported chain](/development/chains). Required for Smart Account and Delegated Account types.",
|
|
7460
|
+
"example": 80002
|
|
7461
|
+
},
|
|
7462
|
+
"share": {
|
|
7463
|
+
"type": "string",
|
|
7464
|
+
"description": "Specifies the share repositories. Required for creating embedded accounts.",
|
|
7465
|
+
"example": "7d526b7e99fbf52850a183..."
|
|
7466
|
+
},
|
|
7467
|
+
"signerUuid": {
|
|
7468
|
+
"type": "string"
|
|
7469
|
+
},
|
|
7470
|
+
"implementationType": {
|
|
7471
|
+
"type": "string",
|
|
7472
|
+
"description": "The type of smart account that will be created (e.g. UpgradeableV6, UpgradeableV5, Calibur, Simple). Defaults to UpgradeableV6 in mainnets. Must support EIP-7702 for Delegated Accounts.",
|
|
7473
|
+
"example": "UpgradeableV6"
|
|
7474
|
+
}
|
|
7475
|
+
},
|
|
7476
|
+
"required": ["accountType", "chainType", "address"],
|
|
7477
|
+
"type": "object",
|
|
7478
|
+
"additionalProperties": false
|
|
7479
|
+
},
|
|
7480
|
+
"BackendWalletResponse": {
|
|
7481
|
+
"description": "Backend wallet details response.",
|
|
7482
|
+
"properties": {
|
|
7483
|
+
"object": {
|
|
7484
|
+
"type": "string",
|
|
7485
|
+
"enum": ["backendWallet"],
|
|
7486
|
+
"nullable": false,
|
|
7487
|
+
"description": "The type of object."
|
|
7488
|
+
},
|
|
7489
|
+
"id": {
|
|
7490
|
+
"type": "string",
|
|
7491
|
+
"description": "The wallet ID (starts with `acc_`).",
|
|
7492
|
+
"example": "acc_e0b84653-1741-4a3d-9e91-2b0fd2942f60"
|
|
7493
|
+
},
|
|
7494
|
+
"address": {
|
|
5955
7495
|
"type": "string",
|
|
5956
7496
|
"description": "The wallet address.",
|
|
5957
7497
|
"example": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
|
|
@@ -15760,359 +17300,60 @@
|
|
|
15760
17300
|
},
|
|
15761
17301
|
"401": {
|
|
15762
17302
|
"description": "Error response."
|
|
15763
|
-
},
|
|
15764
|
-
"409": {
|
|
15765
|
-
"description": "Error response."
|
|
15766
|
-
}
|
|
15767
|
-
},
|
|
15768
|
-
"summary": "Updates a contract object.",
|
|
15769
|
-
"tags": ["Contracts"],
|
|
15770
|
-
"security": [
|
|
15771
|
-
{
|
|
15772
|
-
"sk": []
|
|
15773
|
-
},
|
|
15774
|
-
{
|
|
15775
|
-
"user_project": []
|
|
15776
|
-
}
|
|
15777
|
-
],
|
|
15778
|
-
"parameters": [
|
|
15779
|
-
{
|
|
15780
|
-
"description": "Specifies the unique contract ID (starts with con_).",
|
|
15781
|
-
"in": "path",
|
|
15782
|
-
"name": "id",
|
|
15783
|
-
"required": true,
|
|
15784
|
-
"schema": {
|
|
15785
|
-
"type": "string"
|
|
15786
|
-
},
|
|
15787
|
-
"example": "con_0cddb398-1dc6-4e6f-8726-9ec7cea85f35"
|
|
15788
|
-
}
|
|
15789
|
-
],
|
|
15790
|
-
"requestBody": {
|
|
15791
|
-
"required": true,
|
|
15792
|
-
"content": {
|
|
15793
|
-
"application/json": {
|
|
15794
|
-
"schema": {
|
|
15795
|
-
"$ref": "#/components/schemas/UpdateContractRequest"
|
|
15796
|
-
}
|
|
15797
|
-
}
|
|
15798
|
-
}
|
|
15799
|
-
}
|
|
15800
|
-
},
|
|
15801
|
-
"delete": {
|
|
15802
|
-
"operationId": "DeleteContract",
|
|
15803
|
-
"responses": {
|
|
15804
|
-
"200": {
|
|
15805
|
-
"description": "Successful response.",
|
|
15806
|
-
"content": {
|
|
15807
|
-
"application/json": {
|
|
15808
|
-
"schema": {
|
|
15809
|
-
"$ref": "#/components/schemas/ContractDeleteResponse"
|
|
15810
|
-
},
|
|
15811
|
-
"examples": {
|
|
15812
|
-
"Example 1": {
|
|
15813
|
-
"value": {
|
|
15814
|
-
"id": "con_c502d628-5bb3-42f2-b8d5-62ba46717f3a",
|
|
15815
|
-
"deleted": true,
|
|
15816
|
-
"object": "contract"
|
|
15817
|
-
}
|
|
15818
|
-
}
|
|
15819
|
-
}
|
|
15820
|
-
}
|
|
15821
|
-
}
|
|
15822
|
-
},
|
|
15823
|
-
"401": {
|
|
15824
|
-
"description": "Error response."
|
|
15825
|
-
},
|
|
15826
|
-
"409": {
|
|
15827
|
-
"description": "Error response."
|
|
15828
|
-
}
|
|
15829
|
-
},
|
|
15830
|
-
"description": "Delete a contract from the project by providing its contract id.",
|
|
15831
|
-
"summary": "Deletes a contract object.",
|
|
15832
|
-
"tags": ["Contracts"],
|
|
15833
|
-
"security": [
|
|
15834
|
-
{
|
|
15835
|
-
"sk": []
|
|
15836
|
-
},
|
|
15837
|
-
{
|
|
15838
|
-
"user_project": []
|
|
15839
|
-
}
|
|
15840
|
-
],
|
|
15841
|
-
"parameters": [
|
|
15842
|
-
{
|
|
15843
|
-
"description": "Specifies the unique contract ID (starts with con_).",
|
|
15844
|
-
"in": "path",
|
|
15845
|
-
"name": "id",
|
|
15846
|
-
"required": true,
|
|
15847
|
-
"schema": {
|
|
15848
|
-
"type": "string"
|
|
15849
|
-
},
|
|
15850
|
-
"example": "con_0cddb398-1dc6-4e6f-8726-9ec7cea85f35"
|
|
15851
|
-
}
|
|
15852
|
-
]
|
|
15853
|
-
}
|
|
15854
|
-
},
|
|
15855
|
-
"/v1/contracts/{id}/read": {
|
|
15856
|
-
"get": {
|
|
15857
|
-
"operationId": "ReadContract",
|
|
15858
|
-
"responses": {
|
|
15859
|
-
"200": {
|
|
15860
|
-
"description": "Successful response.",
|
|
15861
|
-
"content": {
|
|
15862
|
-
"application/json": {
|
|
15863
|
-
"schema": {
|
|
15864
|
-
"$ref": "#/components/schemas/ContractReadResponse"
|
|
15865
|
-
},
|
|
15866
|
-
"examples": {
|
|
15867
|
-
"Example 1": {
|
|
15868
|
-
"value": {
|
|
15869
|
-
"id": "con_c502d628-5bb3-42f2-b8d5-62ba46717f3a",
|
|
15870
|
-
"createdAt": 1689869074,
|
|
15871
|
-
"object": "readContract",
|
|
15872
|
-
"functionName": "balanceOf",
|
|
15873
|
-
"result": {
|
|
15874
|
-
"type": "BigNumber",
|
|
15875
|
-
"hex": "0x00"
|
|
15876
|
-
}
|
|
15877
|
-
}
|
|
15878
|
-
}
|
|
15879
|
-
}
|
|
15880
|
-
}
|
|
15881
|
-
}
|
|
15882
|
-
},
|
|
15883
|
-
"401": {
|
|
15884
|
-
"description": "Error response."
|
|
15885
|
-
},
|
|
15886
|
-
"409": {
|
|
15887
|
-
"description": "Error response."
|
|
15888
|
-
}
|
|
15889
|
-
},
|
|
15890
|
-
"description": "Using this endpoint, you can get the repositories returned by any readable\nfunction listed in a contracts ABI. This could be things like querying\nthe totalSupply of a currency contract, the number of owners of an items\ncontract, and more.",
|
|
15891
|
-
"summary": "Read on chain contract repositories.",
|
|
15892
|
-
"tags": ["Contracts"],
|
|
15893
|
-
"security": [
|
|
15894
|
-
{
|
|
15895
|
-
"sk": []
|
|
15896
|
-
},
|
|
15897
|
-
{
|
|
15898
|
-
"user_project": []
|
|
15899
|
-
}
|
|
15900
|
-
],
|
|
15901
|
-
"parameters": [
|
|
15902
|
-
{
|
|
15903
|
-
"description": "Specifies the unique contract ID (starts with con_).",
|
|
15904
|
-
"in": "path",
|
|
15905
|
-
"name": "id",
|
|
15906
|
-
"required": true,
|
|
15907
|
-
"schema": {
|
|
15908
|
-
"type": "string"
|
|
15909
|
-
},
|
|
15910
|
-
"example": "con_0cddb398-1dc6-4e6f-8726-9ec7cea85f35"
|
|
15911
|
-
},
|
|
15912
|
-
{
|
|
15913
|
-
"description": "The function name of the contract.",
|
|
15914
|
-
"in": "query",
|
|
15915
|
-
"name": "functionName",
|
|
15916
|
-
"required": true,
|
|
15917
|
-
"schema": {
|
|
15918
|
-
"type": "string"
|
|
15919
|
-
},
|
|
15920
|
-
"example": "mint"
|
|
15921
|
-
},
|
|
15922
|
-
{
|
|
15923
|
-
"description": "The function arguments of the contract, in string format. Accepts pla_, con_ and acc_ IDs.",
|
|
15924
|
-
"in": "query",
|
|
15925
|
-
"name": "functionArgs",
|
|
15926
|
-
"required": false,
|
|
15927
|
-
"schema": {
|
|
15928
|
-
"type": "array",
|
|
15929
|
-
"items": {}
|
|
15930
|
-
},
|
|
15931
|
-
"example": ["0x662D24Bf7Ea2dD6a7D0935F680a6056b94fE934d"]
|
|
15932
|
-
}
|
|
15933
|
-
]
|
|
15934
|
-
}
|
|
15935
|
-
},
|
|
15936
|
-
"/v1/accounts": {
|
|
15937
|
-
"get": {
|
|
15938
|
-
"operationId": "GetAccounts",
|
|
15939
|
-
"responses": {
|
|
15940
|
-
"200": {
|
|
15941
|
-
"description": "Successful response.",
|
|
15942
|
-
"content": {
|
|
15943
|
-
"application/json": {
|
|
15944
|
-
"schema": {
|
|
15945
|
-
"$ref": "#/components/schemas/AccountListResponse"
|
|
15946
|
-
},
|
|
15947
|
-
"examples": {
|
|
15948
|
-
"Example 1": {
|
|
15949
|
-
"value": {
|
|
15950
|
-
"object": "list",
|
|
15951
|
-
"url": "/v1/accounts",
|
|
15952
|
-
"start": 0,
|
|
15953
|
-
"end": 1,
|
|
15954
|
-
"total": 1,
|
|
15955
|
-
"data": [
|
|
15956
|
-
{
|
|
15957
|
-
"id": "acc_c502d628-5bb3-42f2-b8d5-62ba46717f3a",
|
|
15958
|
-
"createdAt": 1689869074,
|
|
15959
|
-
"address": "0x8C5cedA46A26214A52A9D7BF036Ad2F6255BdBEa",
|
|
15960
|
-
"chainId": 80002,
|
|
15961
|
-
"deployed": true,
|
|
15962
|
-
"custodial": false,
|
|
15963
|
-
"embeddedSigner": false,
|
|
15964
|
-
"object": "account",
|
|
15965
|
-
"accountType": "Upgradeable_v06",
|
|
15966
|
-
"ownerAddress": "0x8C5cedA46A26214A52A9D7BF036Ad2F6255BdBEa",
|
|
15967
|
-
"player": {
|
|
15968
|
-
"id": "pla_c502d628-5bb3-42f2-b8d5-62ba46717f3a"
|
|
15969
|
-
},
|
|
15970
|
-
"transactionIntents": [
|
|
15971
|
-
{
|
|
15972
|
-
"id": "tin_c502d628-5bb3-42f2-b8f5-62ba4d71df3a"
|
|
15973
|
-
}
|
|
15974
|
-
]
|
|
15975
|
-
}
|
|
15976
|
-
]
|
|
15977
|
-
}
|
|
15978
|
-
}
|
|
15979
|
-
}
|
|
15980
|
-
}
|
|
15981
|
-
}
|
|
15982
|
-
},
|
|
15983
|
-
"401": {
|
|
15984
|
-
"description": "Error response."
|
|
17303
|
+
},
|
|
17304
|
+
"409": {
|
|
17305
|
+
"description": "Error response."
|
|
15985
17306
|
}
|
|
15986
17307
|
},
|
|
15987
|
-
"
|
|
15988
|
-
"
|
|
15989
|
-
"tags": ["accs v1"],
|
|
17308
|
+
"summary": "Updates a contract object.",
|
|
17309
|
+
"tags": ["Contracts"],
|
|
15990
17310
|
"security": [
|
|
15991
|
-
{
|
|
15992
|
-
"pk_access_token": []
|
|
15993
|
-
},
|
|
15994
|
-
{
|
|
15995
|
-
"pk_third_party": []
|
|
15996
|
-
},
|
|
15997
17311
|
{
|
|
15998
17312
|
"sk": []
|
|
15999
17313
|
},
|
|
16000
17314
|
{
|
|
16001
17315
|
"user_project": []
|
|
16002
|
-
},
|
|
16003
|
-
{
|
|
16004
|
-
"better_auth": []
|
|
16005
17316
|
}
|
|
16006
17317
|
],
|
|
16007
17318
|
"parameters": [
|
|
16008
17319
|
{
|
|
16009
|
-
"description": "Specifies the
|
|
16010
|
-
"in": "
|
|
16011
|
-
"name": "
|
|
16012
|
-
"required":
|
|
16013
|
-
"schema": {
|
|
16014
|
-
"format": "int32",
|
|
16015
|
-
"type": "integer",
|
|
16016
|
-
"minimum": 1
|
|
16017
|
-
}
|
|
16018
|
-
},
|
|
16019
|
-
{
|
|
16020
|
-
"description": "Specifies the offset for the first records to return.",
|
|
16021
|
-
"in": "query",
|
|
16022
|
-
"name": "skip",
|
|
16023
|
-
"required": false,
|
|
16024
|
-
"schema": {
|
|
16025
|
-
"format": "int32",
|
|
16026
|
-
"type": "integer",
|
|
16027
|
-
"minimum": 0
|
|
16028
|
-
}
|
|
16029
|
-
},
|
|
16030
|
-
{
|
|
16031
|
-
"description": "Specifies the order in which to sort the results.",
|
|
16032
|
-
"in": "query",
|
|
16033
|
-
"name": "order",
|
|
16034
|
-
"required": false,
|
|
16035
|
-
"schema": {
|
|
16036
|
-
"$ref": "#/components/schemas/Prisma.SortOrder"
|
|
16037
|
-
}
|
|
16038
|
-
},
|
|
16039
|
-
{
|
|
16040
|
-
"description": "The chain ID. Must be a [supported chain](/development/chains).",
|
|
16041
|
-
"in": "query",
|
|
16042
|
-
"name": "chainId",
|
|
16043
|
-
"required": false,
|
|
16044
|
-
"schema": {
|
|
16045
|
-
"format": "int32",
|
|
16046
|
-
"type": "integer"
|
|
16047
|
-
},
|
|
16048
|
-
"example": 80002
|
|
16049
|
-
},
|
|
16050
|
-
{
|
|
16051
|
-
"description": "Specifies the unique player ID (starts with pla_)",
|
|
16052
|
-
"in": "query",
|
|
16053
|
-
"name": "player",
|
|
16054
|
-
"required": false,
|
|
16055
|
-
"schema": {
|
|
16056
|
-
"type": "string"
|
|
16057
|
-
},
|
|
16058
|
-
"example": "pla_6f6c9067-89fa-4fc8-ac72-c242a268c584"
|
|
16059
|
-
},
|
|
16060
|
-
{
|
|
16061
|
-
"description": "Specifies the address of the account",
|
|
16062
|
-
"in": "query",
|
|
16063
|
-
"name": "address",
|
|
16064
|
-
"required": false,
|
|
17320
|
+
"description": "Specifies the unique contract ID (starts with con_).",
|
|
17321
|
+
"in": "path",
|
|
17322
|
+
"name": "id",
|
|
17323
|
+
"required": true,
|
|
16065
17324
|
"schema": {
|
|
16066
17325
|
"type": "string"
|
|
16067
17326
|
},
|
|
16068
|
-
"example": "
|
|
16069
|
-
}
|
|
16070
|
-
|
|
16071
|
-
|
|
16072
|
-
|
|
16073
|
-
|
|
16074
|
-
"
|
|
16075
|
-
|
|
16076
|
-
|
|
16077
|
-
"items": {
|
|
16078
|
-
"$ref": "#/components/schemas/AccountResponseExpandable"
|
|
17327
|
+
"example": "con_0cddb398-1dc6-4e6f-8726-9ec7cea85f35"
|
|
17328
|
+
}
|
|
17329
|
+
],
|
|
17330
|
+
"requestBody": {
|
|
17331
|
+
"required": true,
|
|
17332
|
+
"content": {
|
|
17333
|
+
"application/json": {
|
|
17334
|
+
"schema": {
|
|
17335
|
+
"$ref": "#/components/schemas/UpdateContractRequest"
|
|
16079
17336
|
}
|
|
16080
|
-
}
|
|
16081
|
-
"example": ["transactionIntents"]
|
|
17337
|
+
}
|
|
16082
17338
|
}
|
|
16083
|
-
|
|
17339
|
+
}
|
|
16084
17340
|
},
|
|
16085
|
-
"
|
|
16086
|
-
"operationId": "
|
|
17341
|
+
"delete": {
|
|
17342
|
+
"operationId": "DeleteContract",
|
|
16087
17343
|
"responses": {
|
|
16088
17344
|
"200": {
|
|
16089
17345
|
"description": "Successful response.",
|
|
16090
17346
|
"content": {
|
|
16091
17347
|
"application/json": {
|
|
16092
17348
|
"schema": {
|
|
16093
|
-
"$ref": "#/components/schemas/
|
|
17349
|
+
"$ref": "#/components/schemas/ContractDeleteResponse"
|
|
16094
17350
|
},
|
|
16095
17351
|
"examples": {
|
|
16096
17352
|
"Example 1": {
|
|
16097
17353
|
"value": {
|
|
16098
|
-
"id": "
|
|
16099
|
-
"
|
|
16100
|
-
"
|
|
16101
|
-
"chainId": 80002,
|
|
16102
|
-
"deployed": true,
|
|
16103
|
-
"custodial": false,
|
|
16104
|
-
"embeddedSigner": false,
|
|
16105
|
-
"object": "account",
|
|
16106
|
-
"accountType": "Upgradeable_v06",
|
|
16107
|
-
"ownerAddress": "0x8C5cedA46A26214A52A9D7BF036Ad2F6255BdBEa",
|
|
16108
|
-
"player": {
|
|
16109
|
-
"id": "pla_c502d628-5bb3-42f2-b8d5-62ba46717f3a"
|
|
16110
|
-
},
|
|
16111
|
-
"transactionIntents": [
|
|
16112
|
-
{
|
|
16113
|
-
"id": "tin_c502d628-5bb3-42f2-b8f5-62ba4d71df3a"
|
|
16114
|
-
}
|
|
16115
|
-
]
|
|
17354
|
+
"id": "con_c502d628-5bb3-42f2-b8d5-62ba46717f3a",
|
|
17355
|
+
"deleted": true,
|
|
17356
|
+
"object": "contract"
|
|
16116
17357
|
}
|
|
16117
17358
|
}
|
|
16118
17359
|
}
|
|
@@ -16126,71 +17367,53 @@
|
|
|
16126
17367
|
"description": "Error response."
|
|
16127
17368
|
}
|
|
16128
17369
|
},
|
|
16129
|
-
"description": "
|
|
16130
|
-
"summary": "
|
|
16131
|
-
"tags": ["
|
|
17370
|
+
"description": "Delete a contract from the project by providing its contract id.",
|
|
17371
|
+
"summary": "Deletes a contract object.",
|
|
17372
|
+
"tags": ["Contracts"],
|
|
16132
17373
|
"security": [
|
|
16133
|
-
{
|
|
16134
|
-
"pk_access_token": []
|
|
16135
|
-
},
|
|
16136
|
-
{
|
|
16137
|
-
"pk_third_party": []
|
|
16138
|
-
},
|
|
16139
17374
|
{
|
|
16140
17375
|
"sk": []
|
|
16141
17376
|
},
|
|
16142
17377
|
{
|
|
16143
17378
|
"user_project": []
|
|
16144
|
-
},
|
|
16145
|
-
{
|
|
16146
|
-
"better_auth": []
|
|
16147
17379
|
}
|
|
16148
17380
|
],
|
|
16149
|
-
"parameters": [
|
|
16150
|
-
|
|
16151
|
-
|
|
16152
|
-
|
|
16153
|
-
"
|
|
16154
|
-
|
|
16155
|
-
|
|
16156
|
-
|
|
16157
|
-
}
|
|
17381
|
+
"parameters": [
|
|
17382
|
+
{
|
|
17383
|
+
"description": "Specifies the unique contract ID (starts with con_).",
|
|
17384
|
+
"in": "path",
|
|
17385
|
+
"name": "id",
|
|
17386
|
+
"required": true,
|
|
17387
|
+
"schema": {
|
|
17388
|
+
"type": "string"
|
|
17389
|
+
},
|
|
17390
|
+
"example": "con_0cddb398-1dc6-4e6f-8726-9ec7cea85f35"
|
|
16158
17391
|
}
|
|
16159
|
-
|
|
17392
|
+
]
|
|
16160
17393
|
}
|
|
16161
17394
|
},
|
|
16162
|
-
"/v1/
|
|
17395
|
+
"/v1/contracts/{id}/read": {
|
|
16163
17396
|
"get": {
|
|
16164
|
-
"operationId": "
|
|
17397
|
+
"operationId": "ReadContract",
|
|
16165
17398
|
"responses": {
|
|
16166
17399
|
"200": {
|
|
16167
17400
|
"description": "Successful response.",
|
|
16168
17401
|
"content": {
|
|
16169
17402
|
"application/json": {
|
|
16170
17403
|
"schema": {
|
|
16171
|
-
"$ref": "#/components/schemas/
|
|
17404
|
+
"$ref": "#/components/schemas/ContractReadResponse"
|
|
16172
17405
|
},
|
|
16173
17406
|
"examples": {
|
|
16174
17407
|
"Example 1": {
|
|
16175
17408
|
"value": {
|
|
16176
|
-
"id": "
|
|
17409
|
+
"id": "con_c502d628-5bb3-42f2-b8d5-62ba46717f3a",
|
|
16177
17410
|
"createdAt": 1689869074,
|
|
16178
|
-
"
|
|
16179
|
-
"
|
|
16180
|
-
"
|
|
16181
|
-
|
|
16182
|
-
|
|
16183
|
-
|
|
16184
|
-
"accountType": "Upgradeable_v06",
|
|
16185
|
-
"ownerAddress": "0x8C5cedA46A26214A52A9D7BF036Ad2F6255BdBEa",
|
|
16186
|
-
"player": {
|
|
16187
|
-
"id": "pla_c502d628-5bb3-42f2-b8d5-62ba46717f3a"
|
|
16188
|
-
},
|
|
16189
|
-
"transactionIntents": [
|
|
16190
|
-
{
|
|
16191
|
-
"id": "tin_c502d628-5bb3-42f2-b8f5-62ba4d71df3a"
|
|
16192
|
-
}
|
|
16193
|
-
]
|
|
17411
|
+
"object": "readContract",
|
|
17412
|
+
"functionName": "balanceOf",
|
|
17413
|
+
"result": {
|
|
17414
|
+
"type": "BigNumber",
|
|
17415
|
+
"hex": "0x00"
|
|
17416
|
+
}
|
|
16194
17417
|
}
|
|
16195
17418
|
}
|
|
16196
17419
|
}
|
|
@@ -16199,11 +17422,14 @@
|
|
|
16199
17422
|
},
|
|
16200
17423
|
"401": {
|
|
16201
17424
|
"description": "Error response."
|
|
17425
|
+
},
|
|
17426
|
+
"409": {
|
|
17427
|
+
"description": "Error response."
|
|
16202
17428
|
}
|
|
16203
17429
|
},
|
|
16204
|
-
"description": "
|
|
16205
|
-
"summary": "
|
|
16206
|
-
"tags": ["
|
|
17430
|
+
"description": "Using this endpoint, you can get the repositories returned by any readable\nfunction listed in a contracts ABI. This could be things like querying\nthe totalSupply of a currency contract, the number of owners of an items\ncontract, and more.",
|
|
17431
|
+
"summary": "Read on chain contract repositories.",
|
|
17432
|
+
"tags": ["Contracts"],
|
|
16207
17433
|
"security": [
|
|
16208
17434
|
{
|
|
16209
17435
|
"sk": []
|
|
@@ -16214,46 +17440,92 @@
|
|
|
16214
17440
|
],
|
|
16215
17441
|
"parameters": [
|
|
16216
17442
|
{
|
|
16217
|
-
"description": "Specifies the unique
|
|
17443
|
+
"description": "Specifies the unique contract ID (starts with con_).",
|
|
16218
17444
|
"in": "path",
|
|
16219
17445
|
"name": "id",
|
|
16220
17446
|
"required": true,
|
|
16221
17447
|
"schema": {
|
|
16222
17448
|
"type": "string"
|
|
16223
17449
|
},
|
|
16224
|
-
"example": "
|
|
17450
|
+
"example": "con_0cddb398-1dc6-4e6f-8726-9ec7cea85f35"
|
|
16225
17451
|
},
|
|
16226
17452
|
{
|
|
17453
|
+
"description": "The function name of the contract.",
|
|
16227
17454
|
"in": "query",
|
|
16228
|
-
"name": "
|
|
17455
|
+
"name": "functionName",
|
|
17456
|
+
"required": true,
|
|
17457
|
+
"schema": {
|
|
17458
|
+
"type": "string"
|
|
17459
|
+
},
|
|
17460
|
+
"example": "mint"
|
|
17461
|
+
},
|
|
17462
|
+
{
|
|
17463
|
+
"description": "The function arguments of the contract, in string format. Accepts pla_, con_ and acc_ IDs.",
|
|
17464
|
+
"in": "query",
|
|
17465
|
+
"name": "functionArgs",
|
|
16229
17466
|
"required": false,
|
|
16230
17467
|
"schema": {
|
|
16231
|
-
"default": [],
|
|
16232
17468
|
"type": "array",
|
|
16233
|
-
"items": {
|
|
16234
|
-
|
|
17469
|
+
"items": {}
|
|
17470
|
+
},
|
|
17471
|
+
"example": ["0x662D24Bf7Ea2dD6a7D0935F680a6056b94fE934d"]
|
|
17472
|
+
}
|
|
17473
|
+
]
|
|
17474
|
+
}
|
|
17475
|
+
},
|
|
17476
|
+
"/v1/accounts": {
|
|
17477
|
+
"get": {
|
|
17478
|
+
"operationId": "GetAccounts",
|
|
17479
|
+
"responses": {
|
|
17480
|
+
"200": {
|
|
17481
|
+
"description": "Successful response.",
|
|
17482
|
+
"content": {
|
|
17483
|
+
"application/json": {
|
|
17484
|
+
"schema": {
|
|
17485
|
+
"$ref": "#/components/schemas/AccountListResponse"
|
|
17486
|
+
},
|
|
17487
|
+
"examples": {
|
|
17488
|
+
"Example 1": {
|
|
17489
|
+
"value": {
|
|
17490
|
+
"object": "list",
|
|
17491
|
+
"url": "/v1/accounts",
|
|
17492
|
+
"start": 0,
|
|
17493
|
+
"end": 1,
|
|
17494
|
+
"total": 1,
|
|
17495
|
+
"data": [
|
|
17496
|
+
{
|
|
17497
|
+
"id": "acc_c502d628-5bb3-42f2-b8d5-62ba46717f3a",
|
|
17498
|
+
"createdAt": 1689869074,
|
|
17499
|
+
"address": "0x8C5cedA46A26214A52A9D7BF036Ad2F6255BdBEa",
|
|
17500
|
+
"chainId": 80002,
|
|
17501
|
+
"deployed": true,
|
|
17502
|
+
"custodial": false,
|
|
17503
|
+
"embeddedSigner": false,
|
|
17504
|
+
"object": "account",
|
|
17505
|
+
"accountType": "Upgradeable_v06",
|
|
17506
|
+
"ownerAddress": "0x8C5cedA46A26214A52A9D7BF036Ad2F6255BdBEa",
|
|
17507
|
+
"player": {
|
|
17508
|
+
"id": "pla_c502d628-5bb3-42f2-b8d5-62ba46717f3a"
|
|
17509
|
+
},
|
|
17510
|
+
"transactionIntents": [
|
|
17511
|
+
{
|
|
17512
|
+
"id": "tin_c502d628-5bb3-42f2-b8f5-62ba4d71df3a"
|
|
17513
|
+
}
|
|
17514
|
+
]
|
|
17515
|
+
}
|
|
17516
|
+
]
|
|
17517
|
+
}
|
|
17518
|
+
}
|
|
17519
|
+
}
|
|
16235
17520
|
}
|
|
16236
17521
|
}
|
|
16237
|
-
}
|
|
16238
|
-
]
|
|
16239
|
-
}
|
|
16240
|
-
},
|
|
16241
|
-
"/v1/accounts/{id}/disable": {
|
|
16242
|
-
"post": {
|
|
16243
|
-
"operationId": "DisableAccount",
|
|
16244
|
-
"responses": {
|
|
16245
|
-
"204": {
|
|
16246
|
-
"description": "Successful response."
|
|
16247
17522
|
},
|
|
16248
17523
|
"401": {
|
|
16249
17524
|
"description": "Error response."
|
|
16250
|
-
},
|
|
16251
|
-
"409": {
|
|
16252
|
-
"description": "Error response."
|
|
16253
17525
|
}
|
|
16254
17526
|
},
|
|
16255
|
-
"description": "
|
|
16256
|
-
"summary": "
|
|
17527
|
+
"description": "Returns a list of accounts for the given player.\n\nThis object represents a player's account, which is a blockchain smart account that can be used to interact with the blockchain.\n\nThe accounts are returned sorted by creation date, with the most recently created accounts appearing first.\n\nReturns the latest 10 transaction intents for each account.\n\nBy default, a maximum of 10 accounts are shown per page.",
|
|
17528
|
+
"summary": "List accounts of a player.",
|
|
16257
17529
|
"tags": ["accs v1"],
|
|
16258
17530
|
"security": [
|
|
16259
17531
|
{
|
|
@@ -16274,81 +17546,111 @@
|
|
|
16274
17546
|
],
|
|
16275
17547
|
"parameters": [
|
|
16276
17548
|
{
|
|
16277
|
-
"
|
|
16278
|
-
"
|
|
16279
|
-
"
|
|
17549
|
+
"description": "Specifies the maximum number of records to return.",
|
|
17550
|
+
"in": "query",
|
|
17551
|
+
"name": "limit",
|
|
17552
|
+
"required": false,
|
|
16280
17553
|
"schema": {
|
|
16281
|
-
"
|
|
17554
|
+
"format": "int32",
|
|
17555
|
+
"type": "integer",
|
|
17556
|
+
"minimum": 1
|
|
17557
|
+
}
|
|
17558
|
+
},
|
|
17559
|
+
{
|
|
17560
|
+
"description": "Specifies the offset for the first records to return.",
|
|
17561
|
+
"in": "query",
|
|
17562
|
+
"name": "skip",
|
|
17563
|
+
"required": false,
|
|
17564
|
+
"schema": {
|
|
17565
|
+
"format": "int32",
|
|
17566
|
+
"type": "integer",
|
|
17567
|
+
"minimum": 0
|
|
17568
|
+
}
|
|
17569
|
+
},
|
|
17570
|
+
{
|
|
17571
|
+
"description": "Specifies the order in which to sort the results.",
|
|
17572
|
+
"in": "query",
|
|
17573
|
+
"name": "order",
|
|
17574
|
+
"required": false,
|
|
17575
|
+
"schema": {
|
|
17576
|
+
"$ref": "#/components/schemas/Prisma.SortOrder"
|
|
16282
17577
|
}
|
|
17578
|
+
},
|
|
17579
|
+
{
|
|
17580
|
+
"description": "The chain ID. Must be a [supported chain](/development/chains).",
|
|
17581
|
+
"in": "query",
|
|
17582
|
+
"name": "chainId",
|
|
17583
|
+
"required": false,
|
|
17584
|
+
"schema": {
|
|
17585
|
+
"format": "int32",
|
|
17586
|
+
"type": "integer"
|
|
17587
|
+
},
|
|
17588
|
+
"example": 80002
|
|
17589
|
+
},
|
|
17590
|
+
{
|
|
17591
|
+
"description": "Specifies the unique player ID (starts with pla_)",
|
|
17592
|
+
"in": "query",
|
|
17593
|
+
"name": "player",
|
|
17594
|
+
"required": false,
|
|
17595
|
+
"schema": {
|
|
17596
|
+
"type": "string"
|
|
17597
|
+
},
|
|
17598
|
+
"example": "pla_6f6c9067-89fa-4fc8-ac72-c242a268c584"
|
|
17599
|
+
},
|
|
17600
|
+
{
|
|
17601
|
+
"description": "Specifies the address of the account",
|
|
17602
|
+
"in": "query",
|
|
17603
|
+
"name": "address",
|
|
17604
|
+
"required": false,
|
|
17605
|
+
"schema": {
|
|
17606
|
+
"type": "string"
|
|
17607
|
+
},
|
|
17608
|
+
"example": "0x9590Ed0C18190a310f4e93CAccc4CC17270bED40"
|
|
17609
|
+
},
|
|
17610
|
+
{
|
|
17611
|
+
"description": "Specifies the fields to expand in the response.",
|
|
17612
|
+
"in": "query",
|
|
17613
|
+
"name": "expand",
|
|
17614
|
+
"required": false,
|
|
17615
|
+
"schema": {
|
|
17616
|
+
"type": "array",
|
|
17617
|
+
"items": {
|
|
17618
|
+
"$ref": "#/components/schemas/AccountResponseExpandable"
|
|
17619
|
+
}
|
|
17620
|
+
},
|
|
17621
|
+
"example": ["transactionIntents"]
|
|
16283
17622
|
}
|
|
16284
17623
|
]
|
|
16285
|
-
}
|
|
16286
|
-
},
|
|
16287
|
-
"/v1/accounts/{id}/request_transfer_ownership": {
|
|
17624
|
+
},
|
|
16288
17625
|
"post": {
|
|
16289
|
-
"operationId": "
|
|
17626
|
+
"operationId": "CreateAccount",
|
|
16290
17627
|
"responses": {
|
|
16291
17628
|
"200": {
|
|
16292
17629
|
"description": "Successful response.",
|
|
16293
17630
|
"content": {
|
|
16294
17631
|
"application/json": {
|
|
16295
17632
|
"schema": {
|
|
16296
|
-
"$ref": "#/components/schemas/
|
|
17633
|
+
"$ref": "#/components/schemas/AccountResponse"
|
|
16297
17634
|
},
|
|
16298
17635
|
"examples": {
|
|
16299
17636
|
"Example 1": {
|
|
16300
17637
|
"value": {
|
|
16301
|
-
"id": "
|
|
17638
|
+
"id": "acc_c502d628-5bb3-42f2-b8d5-62ba46717f3a",
|
|
16302
17639
|
"createdAt": 1689869074,
|
|
16303
|
-
"
|
|
16304
|
-
"userOperation": null,
|
|
17640
|
+
"address": "0x8C5cedA46A26214A52A9D7BF036Ad2F6255BdBEa",
|
|
16305
17641
|
"chainId": 80002,
|
|
16306
|
-
"
|
|
16307
|
-
"
|
|
16308
|
-
|
|
16309
|
-
|
|
16310
|
-
|
|
16311
|
-
|
|
16312
|
-
"maxPriorityFeePerGas": "0x3b9aca00",
|
|
16313
|
-
"nonce": "0x0",
|
|
16314
|
-
"data": "0x3c44..."
|
|
16315
|
-
},
|
|
16316
|
-
"updatedAt": 1689869074,
|
|
16317
|
-
"policy": {
|
|
16318
|
-
"id": "pol_..."
|
|
16319
|
-
},
|
|
17642
|
+
"deployed": true,
|
|
17643
|
+
"custodial": false,
|
|
17644
|
+
"embeddedSigner": false,
|
|
17645
|
+
"object": "account",
|
|
17646
|
+
"accountType": "Upgradeable_v06",
|
|
17647
|
+
"ownerAddress": "0x8C5cedA46A26214A52A9D7BF036Ad2F6255BdBEa",
|
|
16320
17648
|
"player": {
|
|
16321
|
-
"id": "
|
|
16322
|
-
},
|
|
16323
|
-
"account": {
|
|
16324
|
-
"id": "acc_..."
|
|
16325
|
-
},
|
|
16326
|
-
"response": {
|
|
16327
|
-
"createdAt": 1689869074,
|
|
16328
|
-
"logs": [
|
|
16329
|
-
{
|
|
16330
|
-
"removed": false,
|
|
16331
|
-
"transactionIndex": 0,
|
|
16332
|
-
"blockNumber": 44904492,
|
|
16333
|
-
"transactionHash": "0x25d3...005c",
|
|
16334
|
-
"address": "0x5FF1...2789",
|
|
16335
|
-
"topics": ["0xbb47...f972"],
|
|
16336
|
-
"data": "0x",
|
|
16337
|
-
"logIndex": 0,
|
|
16338
|
-
"blockHash": "0x8a69...6d59"
|
|
16339
|
-
}
|
|
16340
|
-
],
|
|
16341
|
-
"blockNumber": 8789286,
|
|
16342
|
-
"transactionHash": "0x25d3...005c",
|
|
16343
|
-
"to": "0x0576...1B57",
|
|
16344
|
-
"gasUsed": "336730",
|
|
16345
|
-
"status": 1
|
|
17649
|
+
"id": "pla_c502d628-5bb3-42f2-b8d5-62ba46717f3a"
|
|
16346
17650
|
},
|
|
16347
|
-
"
|
|
17651
|
+
"transactionIntents": [
|
|
16348
17652
|
{
|
|
16349
|
-
"
|
|
16350
|
-
"contract": "con_...",
|
|
16351
|
-
"functionArgs": ["0x63B7...484f"]
|
|
17653
|
+
"id": "tin_c502d628-5bb3-42f2-b8f5-62ba4d71df3a"
|
|
16352
17654
|
}
|
|
16353
17655
|
]
|
|
16354
17656
|
}
|
|
@@ -16364,103 +17666,69 @@
|
|
|
16364
17666
|
"description": "Error response."
|
|
16365
17667
|
}
|
|
16366
17668
|
},
|
|
16367
|
-
"description": "
|
|
16368
|
-
"summary": "
|
|
17669
|
+
"description": "Creates a new blockchain account for the provided player. If not player is provided, a new one will be created.\n\nAccount creation does not consume any gas. All accounts of a player will use the same address across blockchains.\n\nEach player can only have one account per chain.",
|
|
17670
|
+
"summary": "Create an account object.",
|
|
16369
17671
|
"tags": ["accs v1"],
|
|
16370
17672
|
"security": [
|
|
17673
|
+
{
|
|
17674
|
+
"pk_access_token": []
|
|
17675
|
+
},
|
|
17676
|
+
{
|
|
17677
|
+
"pk_third_party": []
|
|
17678
|
+
},
|
|
16371
17679
|
{
|
|
16372
17680
|
"sk": []
|
|
16373
|
-
}
|
|
16374
|
-
],
|
|
16375
|
-
"parameters": [
|
|
17681
|
+
},
|
|
16376
17682
|
{
|
|
16377
|
-
"
|
|
16378
|
-
|
|
16379
|
-
|
|
16380
|
-
"
|
|
16381
|
-
"schema": {
|
|
16382
|
-
"type": "string"
|
|
16383
|
-
},
|
|
16384
|
-
"example": "acc_4194ad24-c818-4e5c-b003-9cc2aa7df53b"
|
|
17683
|
+
"user_project": []
|
|
17684
|
+
},
|
|
17685
|
+
{
|
|
17686
|
+
"better_auth": []
|
|
16385
17687
|
}
|
|
16386
17688
|
],
|
|
17689
|
+
"parameters": [],
|
|
16387
17690
|
"requestBody": {
|
|
16388
17691
|
"required": true,
|
|
16389
17692
|
"content": {
|
|
16390
17693
|
"application/json": {
|
|
16391
17694
|
"schema": {
|
|
16392
|
-
"$ref": "#/components/schemas/
|
|
17695
|
+
"$ref": "#/components/schemas/CreateAccountRequest"
|
|
16393
17696
|
}
|
|
16394
17697
|
}
|
|
16395
17698
|
}
|
|
16396
17699
|
}
|
|
16397
17700
|
}
|
|
16398
17701
|
},
|
|
16399
|
-
"/v1/accounts/{id}
|
|
16400
|
-
"
|
|
16401
|
-
"operationId": "
|
|
17702
|
+
"/v1/accounts/{id}": {
|
|
17703
|
+
"get": {
|
|
17704
|
+
"operationId": "GetAccount",
|
|
16402
17705
|
"responses": {
|
|
16403
17706
|
"200": {
|
|
16404
17707
|
"description": "Successful response.",
|
|
16405
17708
|
"content": {
|
|
16406
17709
|
"application/json": {
|
|
16407
17710
|
"schema": {
|
|
16408
|
-
"$ref": "#/components/schemas/
|
|
17711
|
+
"$ref": "#/components/schemas/AccountResponse"
|
|
16409
17712
|
},
|
|
16410
17713
|
"examples": {
|
|
16411
17714
|
"Example 1": {
|
|
16412
17715
|
"value": {
|
|
16413
|
-
"id": "
|
|
17716
|
+
"id": "acc_c502d628-5bb3-42f2-b8d5-62ba46717f3a",
|
|
16414
17717
|
"createdAt": 1689869074,
|
|
16415
|
-
"
|
|
16416
|
-
"userOperation": null,
|
|
17718
|
+
"address": "0x8C5cedA46A26214A52A9D7BF036Ad2F6255BdBEa",
|
|
16417
17719
|
"chainId": 80002,
|
|
16418
|
-
"
|
|
16419
|
-
"
|
|
16420
|
-
|
|
16421
|
-
|
|
16422
|
-
|
|
16423
|
-
|
|
16424
|
-
"maxPriorityFeePerGas": "0x3b9aca00",
|
|
16425
|
-
"nonce": "0x0",
|
|
16426
|
-
"data": "0x3c44..."
|
|
16427
|
-
},
|
|
16428
|
-
"updatedAt": 1689869074,
|
|
16429
|
-
"policy": {
|
|
16430
|
-
"id": "pol_..."
|
|
16431
|
-
},
|
|
17720
|
+
"deployed": true,
|
|
17721
|
+
"custodial": false,
|
|
17722
|
+
"embeddedSigner": false,
|
|
17723
|
+
"object": "account",
|
|
17724
|
+
"accountType": "Upgradeable_v06",
|
|
17725
|
+
"ownerAddress": "0x8C5cedA46A26214A52A9D7BF036Ad2F6255BdBEa",
|
|
16432
17726
|
"player": {
|
|
16433
|
-
"id": "
|
|
16434
|
-
},
|
|
16435
|
-
"account": {
|
|
16436
|
-
"id": "acc_..."
|
|
16437
|
-
},
|
|
16438
|
-
"response": {
|
|
16439
|
-
"createdAt": 1689869074,
|
|
16440
|
-
"logs": [
|
|
16441
|
-
{
|
|
16442
|
-
"removed": false,
|
|
16443
|
-
"transactionIndex": 0,
|
|
16444
|
-
"blockNumber": 44904492,
|
|
16445
|
-
"transactionHash": "0x25d3...005c",
|
|
16446
|
-
"address": "0x5FF1...2789",
|
|
16447
|
-
"topics": ["0xbb47...f972"],
|
|
16448
|
-
"data": "0x",
|
|
16449
|
-
"logIndex": 0,
|
|
16450
|
-
"blockHash": "0x8a69...6d59"
|
|
16451
|
-
}
|
|
16452
|
-
],
|
|
16453
|
-
"blockNumber": 8789286,
|
|
16454
|
-
"transactionHash": "0x25d3...005c",
|
|
16455
|
-
"to": "0x0576...1B57",
|
|
16456
|
-
"gasUsed": "336730",
|
|
16457
|
-
"status": 1
|
|
17727
|
+
"id": "pla_c502d628-5bb3-42f2-b8d5-62ba46717f3a"
|
|
16458
17728
|
},
|
|
16459
|
-
"
|
|
17729
|
+
"transactionIntents": [
|
|
16460
17730
|
{
|
|
16461
|
-
"
|
|
16462
|
-
"contract": "con_...",
|
|
16463
|
-
"functionArgs": ["0x63B7...484f"]
|
|
17731
|
+
"id": "tin_c502d628-5bb3-42f2-b8f5-62ba4d71df3a"
|
|
16464
17732
|
}
|
|
16465
17733
|
]
|
|
16466
17734
|
}
|
|
@@ -16471,17 +17739,17 @@
|
|
|
16471
17739
|
},
|
|
16472
17740
|
"401": {
|
|
16473
17741
|
"description": "Error response."
|
|
16474
|
-
},
|
|
16475
|
-
"409": {
|
|
16476
|
-
"description": "Error response."
|
|
16477
17742
|
}
|
|
16478
17743
|
},
|
|
16479
|
-
"description": "
|
|
16480
|
-
"summary": "
|
|
17744
|
+
"description": "Retrieves the details of an existing account.\n\nSupply the unique account ID from either a account creation request or the account list, and Openfort will return the corresponding account information.\n\nReturns the latest 10 transaction intents created by this account.",
|
|
17745
|
+
"summary": "Get existing account.",
|
|
16481
17746
|
"tags": ["accs v1"],
|
|
16482
17747
|
"security": [
|
|
16483
17748
|
{
|
|
16484
17749
|
"sk": []
|
|
17750
|
+
},
|
|
17751
|
+
{
|
|
17752
|
+
"user_project": []
|
|
16485
17753
|
}
|
|
16486
17754
|
],
|
|
16487
17755
|
"parameters": [
|
|
@@ -16494,39 +17762,125 @@
|
|
|
16494
17762
|
"type": "string"
|
|
16495
17763
|
},
|
|
16496
17764
|
"example": "acc_4194ad24-c818-4e5c-b003-9cc2aa7df53b"
|
|
16497
|
-
}
|
|
16498
|
-
|
|
16499
|
-
|
|
16500
|
-
|
|
16501
|
-
|
|
16502
|
-
"
|
|
16503
|
-
"
|
|
16504
|
-
|
|
17765
|
+
},
|
|
17766
|
+
{
|
|
17767
|
+
"in": "query",
|
|
17768
|
+
"name": "expand",
|
|
17769
|
+
"required": false,
|
|
17770
|
+
"schema": {
|
|
17771
|
+
"default": [],
|
|
17772
|
+
"type": "array",
|
|
17773
|
+
"items": {
|
|
17774
|
+
"$ref": "#/components/schemas/AccountResponseExpandable"
|
|
16505
17775
|
}
|
|
16506
17776
|
}
|
|
16507
17777
|
}
|
|
16508
|
-
|
|
17778
|
+
]
|
|
16509
17779
|
}
|
|
16510
17780
|
},
|
|
16511
|
-
"/v1/accounts/{id}/
|
|
17781
|
+
"/v1/accounts/{id}/disable": {
|
|
16512
17782
|
"post": {
|
|
16513
|
-
"operationId": "
|
|
17783
|
+
"operationId": "DisableAccount",
|
|
17784
|
+
"responses": {
|
|
17785
|
+
"204": {
|
|
17786
|
+
"description": "Successful response."
|
|
17787
|
+
},
|
|
17788
|
+
"401": {
|
|
17789
|
+
"description": "Error response."
|
|
17790
|
+
},
|
|
17791
|
+
"409": {
|
|
17792
|
+
"description": "Error response."
|
|
17793
|
+
}
|
|
17794
|
+
},
|
|
17795
|
+
"description": "Disables an account.\n\nAccounts won't be shown for user and won't be accessible for transactions.",
|
|
17796
|
+
"summary": "Disable account by id.",
|
|
17797
|
+
"tags": ["accs v1"],
|
|
17798
|
+
"security": [
|
|
17799
|
+
{
|
|
17800
|
+
"pk_access_token": []
|
|
17801
|
+
},
|
|
17802
|
+
{
|
|
17803
|
+
"pk_third_party": []
|
|
17804
|
+
},
|
|
17805
|
+
{
|
|
17806
|
+
"sk": []
|
|
17807
|
+
},
|
|
17808
|
+
{
|
|
17809
|
+
"user_project": []
|
|
17810
|
+
},
|
|
17811
|
+
{
|
|
17812
|
+
"better_auth": []
|
|
17813
|
+
}
|
|
17814
|
+
],
|
|
17815
|
+
"parameters": [
|
|
17816
|
+
{
|
|
17817
|
+
"in": "path",
|
|
17818
|
+
"name": "id",
|
|
17819
|
+
"required": true,
|
|
17820
|
+
"schema": {
|
|
17821
|
+
"type": "string"
|
|
17822
|
+
}
|
|
17823
|
+
}
|
|
17824
|
+
]
|
|
17825
|
+
}
|
|
17826
|
+
},
|
|
17827
|
+
"/v2/users": {
|
|
17828
|
+
"get": {
|
|
17829
|
+
"operationId": "GetAuthUsers",
|
|
16514
17830
|
"responses": {
|
|
16515
17831
|
"200": {
|
|
16516
17832
|
"description": "Successful response.",
|
|
16517
17833
|
"content": {
|
|
16518
17834
|
"application/json": {
|
|
16519
17835
|
"schema": {
|
|
16520
|
-
"$ref": "#/components/schemas/
|
|
17836
|
+
"$ref": "#/components/schemas/UserListResponse"
|
|
16521
17837
|
},
|
|
16522
17838
|
"examples": {
|
|
16523
17839
|
"Example 1": {
|
|
16524
17840
|
"value": {
|
|
16525
|
-
"
|
|
16526
|
-
"
|
|
16527
|
-
"
|
|
16528
|
-
|
|
16529
|
-
|
|
17841
|
+
"object": "list",
|
|
17842
|
+
"url": "http://localhost:3000",
|
|
17843
|
+
"data": [
|
|
17844
|
+
{
|
|
17845
|
+
"id": "usr_***",
|
|
17846
|
+
"createdAt": 123456789,
|
|
17847
|
+
"name": "Satoshi",
|
|
17848
|
+
"email": "satoshi@openfort.io",
|
|
17849
|
+
"emailVerified": true,
|
|
17850
|
+
"phoneNumber": null,
|
|
17851
|
+
"phoneNumberVerified": false,
|
|
17852
|
+
"isAnonymous": false,
|
|
17853
|
+
"linkedAccounts": [
|
|
17854
|
+
{
|
|
17855
|
+
"provider": "google",
|
|
17856
|
+
"createdAt": 12346789,
|
|
17857
|
+
"updatedAt": 12346789,
|
|
17858
|
+
"accountId": "123456789"
|
|
17859
|
+
}
|
|
17860
|
+
]
|
|
17861
|
+
},
|
|
17862
|
+
{
|
|
17863
|
+
"id": "usr_***",
|
|
17864
|
+
"createdAt": 123456789,
|
|
17865
|
+
"name": "Nakamoto",
|
|
17866
|
+
"email": "nakamoto@openfort.io",
|
|
17867
|
+
"emailVerified": true,
|
|
17868
|
+
"phoneNumber": null,
|
|
17869
|
+
"phoneNumberVerified": false,
|
|
17870
|
+
"isAnonymous": false,
|
|
17871
|
+
"linkedAccounts": [
|
|
17872
|
+
{
|
|
17873
|
+
"provider": "google",
|
|
17874
|
+
"createdAt": 12346789,
|
|
17875
|
+
"updatedAt": 12346789,
|
|
17876
|
+
"accountId": "123456789"
|
|
17877
|
+
}
|
|
17878
|
+
]
|
|
17879
|
+
}
|
|
17880
|
+
],
|
|
17881
|
+
"start": 0,
|
|
17882
|
+
"end": 2,
|
|
17883
|
+
"total": 2
|
|
16530
17884
|
}
|
|
16531
17885
|
}
|
|
16532
17886
|
}
|
|
@@ -16535,73 +17889,142 @@
|
|
|
16535
17889
|
},
|
|
16536
17890
|
"401": {
|
|
16537
17891
|
"description": "Error response."
|
|
16538
|
-
},
|
|
16539
|
-
"409": {
|
|
16540
|
-
"description": "Error response."
|
|
16541
17892
|
}
|
|
16542
17893
|
},
|
|
16543
|
-
"description": "
|
|
16544
|
-
"summary": "
|
|
16545
|
-
"tags": ["
|
|
17894
|
+
"description": "Retrieves an authenticated users.\n\nUsers have linked accounts and are authenticated with a provider.",
|
|
17895
|
+
"summary": "List authenticated users.",
|
|
17896
|
+
"tags": ["Users"],
|
|
16546
17897
|
"security": [
|
|
16547
17898
|
{
|
|
16548
17899
|
"sk": []
|
|
17900
|
+
},
|
|
17901
|
+
{
|
|
17902
|
+
"user_project": []
|
|
16549
17903
|
}
|
|
16550
17904
|
],
|
|
16551
17905
|
"parameters": [
|
|
16552
17906
|
{
|
|
16553
|
-
"description": "Specifies the
|
|
16554
|
-
"in": "
|
|
16555
|
-
"name": "
|
|
16556
|
-
"required":
|
|
17907
|
+
"description": "Specifies the maximum number of records to return.",
|
|
17908
|
+
"in": "query",
|
|
17909
|
+
"name": "limit",
|
|
17910
|
+
"required": false,
|
|
17911
|
+
"schema": {
|
|
17912
|
+
"format": "int32",
|
|
17913
|
+
"type": "integer",
|
|
17914
|
+
"minimum": 1
|
|
17915
|
+
}
|
|
17916
|
+
},
|
|
17917
|
+
{
|
|
17918
|
+
"description": "Specifies the offset for the first records to return.",
|
|
17919
|
+
"in": "query",
|
|
17920
|
+
"name": "skip",
|
|
17921
|
+
"required": false,
|
|
17922
|
+
"schema": {
|
|
17923
|
+
"format": "int32",
|
|
17924
|
+
"type": "integer",
|
|
17925
|
+
"minimum": 0
|
|
17926
|
+
}
|
|
17927
|
+
},
|
|
17928
|
+
{
|
|
17929
|
+
"description": "Specifies the order in which to sort the results.",
|
|
17930
|
+
"in": "query",
|
|
17931
|
+
"name": "order",
|
|
17932
|
+
"required": false,
|
|
17933
|
+
"schema": {
|
|
17934
|
+
"$ref": "#/components/schemas/Prisma.SortOrder"
|
|
17935
|
+
}
|
|
17936
|
+
},
|
|
17937
|
+
{
|
|
17938
|
+
"description": "Filter by user name.",
|
|
17939
|
+
"in": "query",
|
|
17940
|
+
"name": "name",
|
|
17941
|
+
"required": false,
|
|
16557
17942
|
"schema": {
|
|
16558
17943
|
"type": "string"
|
|
16559
17944
|
},
|
|
16560
|
-
"example": "
|
|
16561
|
-
}
|
|
16562
|
-
|
|
16563
|
-
|
|
16564
|
-
|
|
16565
|
-
|
|
16566
|
-
"
|
|
16567
|
-
|
|
16568
|
-
|
|
16569
|
-
|
|
16570
|
-
|
|
17945
|
+
"example": "John"
|
|
17946
|
+
},
|
|
17947
|
+
{
|
|
17948
|
+
"description": "Filter by external user ID (accountId from linked accounts).",
|
|
17949
|
+
"in": "query",
|
|
17950
|
+
"name": "externalUserId",
|
|
17951
|
+
"required": false,
|
|
17952
|
+
"schema": {
|
|
17953
|
+
"type": "string"
|
|
17954
|
+
},
|
|
17955
|
+
"example": "123454456687897"
|
|
17956
|
+
},
|
|
17957
|
+
{
|
|
17958
|
+
"description": "Filter by user email.",
|
|
17959
|
+
"in": "query",
|
|
17960
|
+
"name": "email",
|
|
17961
|
+
"required": false,
|
|
17962
|
+
"schema": {
|
|
17963
|
+
"type": "string"
|
|
17964
|
+
},
|
|
17965
|
+
"example": "user@example.com"
|
|
17966
|
+
},
|
|
17967
|
+
{
|
|
17968
|
+
"description": "Filter by user phone number.",
|
|
17969
|
+
"in": "query",
|
|
17970
|
+
"name": "phoneNumber",
|
|
17971
|
+
"required": false,
|
|
17972
|
+
"schema": {
|
|
17973
|
+
"type": "string"
|
|
17974
|
+
},
|
|
17975
|
+
"example": "+1234567890"
|
|
17976
|
+
},
|
|
17977
|
+
{
|
|
17978
|
+
"description": "Filter by provider ID (e.g., \"google\", \"apple\", \"siwe\", \"credential\").",
|
|
17979
|
+
"in": "query",
|
|
17980
|
+
"name": "authProviderId",
|
|
17981
|
+
"required": false,
|
|
17982
|
+
"schema": {
|
|
17983
|
+
"type": "string"
|
|
17984
|
+
},
|
|
17985
|
+
"example": "google"
|
|
17986
|
+
},
|
|
17987
|
+
{
|
|
17988
|
+
"description": "Filter by wallet client type (for SIWE accounts).",
|
|
17989
|
+
"in": "query",
|
|
17990
|
+
"name": "walletClientType",
|
|
17991
|
+
"required": false,
|
|
17992
|
+
"schema": {
|
|
17993
|
+
"type": "string"
|
|
17994
|
+
},
|
|
17995
|
+
"example": "metamask"
|
|
16571
17996
|
}
|
|
16572
|
-
|
|
17997
|
+
]
|
|
16573
17998
|
}
|
|
16574
17999
|
},
|
|
16575
|
-
"/
|
|
16576
|
-
"
|
|
16577
|
-
"operationId": "
|
|
18000
|
+
"/v2/users/{id}": {
|
|
18001
|
+
"get": {
|
|
18002
|
+
"operationId": "GetAuthUser",
|
|
16578
18003
|
"responses": {
|
|
16579
18004
|
"200": {
|
|
16580
18005
|
"description": "Successful response.",
|
|
16581
18006
|
"content": {
|
|
16582
18007
|
"application/json": {
|
|
16583
18008
|
"schema": {
|
|
16584
|
-
"$ref": "#/components/schemas/
|
|
18009
|
+
"$ref": "#/components/schemas/AuthUserResponse"
|
|
16585
18010
|
},
|
|
16586
18011
|
"examples": {
|
|
16587
18012
|
"Example 1": {
|
|
16588
18013
|
"value": {
|
|
16589
|
-
"id": "
|
|
16590
|
-
"createdAt":
|
|
16591
|
-
"
|
|
16592
|
-
"
|
|
16593
|
-
"
|
|
16594
|
-
"
|
|
16595
|
-
"
|
|
16596
|
-
"
|
|
16597
|
-
"
|
|
16598
|
-
"ownerAddress": "0x8C5cedA46A26214A52A9D7BF036Ad2F6255BdBEa",
|
|
16599
|
-
"player": {
|
|
16600
|
-
"id": "pla_c502d628-5bb3-42f2-b8d5-62ba46717f3a"
|
|
16601
|
-
},
|
|
16602
|
-
"transactionIntents": [
|
|
18014
|
+
"id": "usr_***",
|
|
18015
|
+
"createdAt": 123456789,
|
|
18016
|
+
"name": "Satoshi",
|
|
18017
|
+
"email": "satoshi@openfort.io",
|
|
18018
|
+
"emailVerified": true,
|
|
18019
|
+
"phoneNumber": null,
|
|
18020
|
+
"phoneNumberVerified": false,
|
|
18021
|
+
"isAnonymous": false,
|
|
18022
|
+
"linkedAccounts": [
|
|
16603
18023
|
{
|
|
16604
|
-
"
|
|
18024
|
+
"provider": "google",
|
|
18025
|
+
"createdAt": 12346789,
|
|
18026
|
+
"updatedAt": 12346789,
|
|
18027
|
+
"accountId": "123456789"
|
|
16605
18028
|
}
|
|
16606
18029
|
]
|
|
16607
18030
|
}
|
|
@@ -16610,89 +18033,64 @@
|
|
|
16610
18033
|
}
|
|
16611
18034
|
}
|
|
16612
18035
|
},
|
|
16613
|
-
"400": {
|
|
16614
|
-
"description": "Bad request"
|
|
16615
|
-
},
|
|
16616
18036
|
"401": {
|
|
16617
|
-
"description": "
|
|
16618
|
-
},
|
|
16619
|
-
"404": {
|
|
16620
|
-
"description": "Account not found"
|
|
18037
|
+
"description": "Error response."
|
|
16621
18038
|
}
|
|
16622
18039
|
},
|
|
16623
|
-
"description": "
|
|
16624
|
-
"summary": "
|
|
16625
|
-
"tags": ["
|
|
18040
|
+
"description": "Retrieves an authenticated user.\n\nUsers have linked accounts and are authenticated with a provider.",
|
|
18041
|
+
"summary": "Get authenticated user by id.",
|
|
18042
|
+
"tags": ["Users"],
|
|
16626
18043
|
"security": [
|
|
16627
18044
|
{
|
|
16628
18045
|
"sk": []
|
|
18046
|
+
},
|
|
18047
|
+
{
|
|
18048
|
+
"user_project": []
|
|
16629
18049
|
}
|
|
16630
18050
|
],
|
|
16631
18051
|
"parameters": [
|
|
16632
18052
|
{
|
|
16633
|
-
"description": "Specifies the unique account ID (starts with acc_).",
|
|
16634
18053
|
"in": "path",
|
|
16635
18054
|
"name": "id",
|
|
16636
18055
|
"required": true,
|
|
16637
18056
|
"schema": {
|
|
16638
18057
|
"type": "string"
|
|
16639
|
-
}
|
|
16640
|
-
"example": "acc_4194ad24-c818-4e5c-b003-9cc2aa7df53b"
|
|
18058
|
+
}
|
|
16641
18059
|
}
|
|
16642
18060
|
]
|
|
16643
|
-
}
|
|
16644
|
-
|
|
16645
|
-
|
|
16646
|
-
"post": {
|
|
16647
|
-
"operationId": "DeployAccount",
|
|
18061
|
+
},
|
|
18062
|
+
"delete": {
|
|
18063
|
+
"operationId": "DeleteUser",
|
|
16648
18064
|
"responses": {
|
|
16649
18065
|
"200": {
|
|
16650
18066
|
"description": "Successful response.",
|
|
16651
18067
|
"content": {
|
|
16652
18068
|
"application/json": {
|
|
16653
18069
|
"schema": {
|
|
16654
|
-
"$ref": "#/components/schemas/
|
|
18070
|
+
"$ref": "#/components/schemas/UserDeleteResponse"
|
|
16655
18071
|
},
|
|
16656
18072
|
"examples": {
|
|
16657
18073
|
"Example 1": {
|
|
16658
18074
|
"value": {
|
|
16659
|
-
"id": "
|
|
16660
|
-
"
|
|
16661
|
-
"
|
|
16662
|
-
"chainId": 80002,
|
|
16663
|
-
"deployed": true,
|
|
16664
|
-
"custodial": false,
|
|
16665
|
-
"embeddedSigner": false,
|
|
16666
|
-
"object": "account",
|
|
16667
|
-
"accountType": "Upgradeable_v06",
|
|
16668
|
-
"ownerAddress": "0x8C5cedA46A26214A52A9D7BF036Ad2F6255BdBEa",
|
|
16669
|
-
"player": {
|
|
16670
|
-
"id": "pla_c502d628-5bb3-42f2-b8d5-62ba46717f3a"
|
|
16671
|
-
},
|
|
16672
|
-
"transactionIntents": [
|
|
16673
|
-
{
|
|
16674
|
-
"id": "tin_c502d628-5bb3-42f2-b8f5-62ba4d71df3a"
|
|
16675
|
-
}
|
|
16676
|
-
]
|
|
18075
|
+
"id": "pla_00000000-0000-0000-0000-000000000000",
|
|
18076
|
+
"object": "player",
|
|
18077
|
+
"deleted": true
|
|
16677
18078
|
}
|
|
16678
18079
|
}
|
|
16679
18080
|
}
|
|
16680
18081
|
}
|
|
16681
18082
|
}
|
|
16682
18083
|
},
|
|
16683
|
-
"400": {
|
|
16684
|
-
"description": "Bad request"
|
|
16685
|
-
},
|
|
16686
18084
|
"401": {
|
|
16687
|
-
"description": "
|
|
18085
|
+
"description": "Error response."
|
|
16688
18086
|
},
|
|
16689
|
-
"
|
|
16690
|
-
"description": "
|
|
18087
|
+
"409": {
|
|
18088
|
+
"description": "Error response."
|
|
16691
18089
|
}
|
|
16692
18090
|
},
|
|
16693
|
-
"description": "
|
|
16694
|
-
"summary": "
|
|
16695
|
-
"tags": ["
|
|
18091
|
+
"description": "It will delete all linked accounts the user is authenticated with.\nIf the user has a linked embedded signer, it will be deleted as well.",
|
|
18092
|
+
"summary": "Delete user by id.",
|
|
18093
|
+
"tags": ["Users"],
|
|
16696
18094
|
"security": [
|
|
16697
18095
|
{
|
|
16698
18096
|
"sk": []
|
|
@@ -16703,95 +18101,35 @@
|
|
|
16703
18101
|
],
|
|
16704
18102
|
"parameters": [
|
|
16705
18103
|
{
|
|
16706
|
-
"description": "Specifies the unique
|
|
18104
|
+
"description": "Specifies the unique user ID (starts with pla_).",
|
|
16707
18105
|
"in": "path",
|
|
16708
18106
|
"name": "id",
|
|
16709
18107
|
"required": true,
|
|
16710
18108
|
"schema": {
|
|
16711
18109
|
"type": "string"
|
|
16712
18110
|
},
|
|
16713
|
-
"example": "
|
|
16714
|
-
}
|
|
16715
|
-
],
|
|
16716
|
-
"requestBody": {
|
|
16717
|
-
"required": true,
|
|
16718
|
-
"content": {
|
|
16719
|
-
"application/json": {
|
|
16720
|
-
"schema": {
|
|
16721
|
-
"$ref": "#/components/schemas/DeployRequest"
|
|
16722
|
-
}
|
|
16723
|
-
}
|
|
18111
|
+
"example": "pla_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
16724
18112
|
}
|
|
16725
|
-
|
|
18113
|
+
]
|
|
16726
18114
|
}
|
|
16727
18115
|
},
|
|
16728
|
-
"/
|
|
16729
|
-
"
|
|
16730
|
-
"operationId": "
|
|
18116
|
+
"/v2/users/{id}/wallet": {
|
|
18117
|
+
"get": {
|
|
18118
|
+
"operationId": "GetUserWallet",
|
|
16731
18119
|
"responses": {
|
|
16732
18120
|
"200": {
|
|
16733
18121
|
"description": "Successful response.",
|
|
16734
18122
|
"content": {
|
|
16735
18123
|
"application/json": {
|
|
16736
18124
|
"schema": {
|
|
16737
|
-
"$ref": "#/components/schemas/
|
|
18125
|
+
"$ref": "#/components/schemas/WalletResponse"
|
|
16738
18126
|
},
|
|
16739
18127
|
"examples": {
|
|
16740
18128
|
"Example 1": {
|
|
16741
18129
|
"value": {
|
|
16742
|
-
"id": "
|
|
16743
|
-
"
|
|
16744
|
-
"
|
|
16745
|
-
"userOperation": null,
|
|
16746
|
-
"chainId": 80002,
|
|
16747
|
-
"abstractionType": "standard",
|
|
16748
|
-
"details": {
|
|
16749
|
-
"from": "0x70997970c51812dc3a010c7d01b50e0d17dc79c8",
|
|
16750
|
-
"to": "0x3c44cdddb6a900fa2b585dd299e03d12fa4293bc",
|
|
16751
|
-
"gas": "0x5208",
|
|
16752
|
-
"maxFeePerGas": "0x3b9aca00",
|
|
16753
|
-
"maxPriorityFeePerGas": "0x3b9aca00",
|
|
16754
|
-
"nonce": "0x0",
|
|
16755
|
-
"data": "0x3c44..."
|
|
16756
|
-
},
|
|
16757
|
-
"updatedAt": 1689869074,
|
|
16758
|
-
"policy": {
|
|
16759
|
-
"id": "pol_..."
|
|
16760
|
-
},
|
|
16761
|
-
"player": {
|
|
16762
|
-
"id": "pla_..."
|
|
16763
|
-
},
|
|
16764
|
-
"account": {
|
|
16765
|
-
"id": "acc_..."
|
|
16766
|
-
},
|
|
16767
|
-
"response": {
|
|
16768
|
-
"createdAt": 1689869074,
|
|
16769
|
-
"logs": [
|
|
16770
|
-
{
|
|
16771
|
-
"removed": false,
|
|
16772
|
-
"transactionIndex": 0,
|
|
16773
|
-
"blockNumber": 44904492,
|
|
16774
|
-
"transactionHash": "0x25d3...005c",
|
|
16775
|
-
"address": "0x5FF1...2789",
|
|
16776
|
-
"topics": ["0xbb47...f972"],
|
|
16777
|
-
"data": "0x",
|
|
16778
|
-
"logIndex": 0,
|
|
16779
|
-
"blockHash": "0x8a69...6d59"
|
|
16780
|
-
}
|
|
16781
|
-
],
|
|
16782
|
-
"blockNumber": 8789286,
|
|
16783
|
-
"transactionHash": "0x25d3...005c",
|
|
16784
|
-
"to": "0x0576...1B57",
|
|
16785
|
-
"gasUsed": "336730",
|
|
16786
|
-
"status": 1
|
|
16787
|
-
},
|
|
16788
|
-
"interactions": [
|
|
16789
|
-
{
|
|
16790
|
-
"functionName": "mint",
|
|
16791
|
-
"contract": "con_...",
|
|
16792
|
-
"functionArgs": ["0x63B7...484f"]
|
|
16793
|
-
}
|
|
16794
|
-
]
|
|
18130
|
+
"id": "pla_00000000-0000-0000-0000-000000000000",
|
|
18131
|
+
"object": "wallet",
|
|
18132
|
+
"createdAt": 1689869074
|
|
16795
18133
|
}
|
|
16796
18134
|
}
|
|
16797
18135
|
}
|
|
@@ -16801,222 +18139,99 @@
|
|
|
16801
18139
|
"401": {
|
|
16802
18140
|
"description": "Error response."
|
|
16803
18141
|
},
|
|
16804
|
-
"
|
|
16805
|
-
"description": "
|
|
18142
|
+
"404": {
|
|
18143
|
+
"description": "User not found."
|
|
16806
18144
|
}
|
|
16807
18145
|
},
|
|
16808
|
-
"
|
|
16809
|
-
"
|
|
18146
|
+
"description": "Retrieves the wallet associated with an authenticated user.",
|
|
18147
|
+
"summary": "Get wallet for user.",
|
|
18148
|
+
"tags": ["Users"],
|
|
16810
18149
|
"security": [
|
|
16811
18150
|
{
|
|
16812
18151
|
"sk": []
|
|
18152
|
+
},
|
|
18153
|
+
{
|
|
18154
|
+
"user_project": []
|
|
16813
18155
|
}
|
|
16814
18156
|
],
|
|
16815
18157
|
"parameters": [
|
|
16816
18158
|
{
|
|
16817
|
-
"description": "Specifies the unique account ID (starts with acc_).",
|
|
16818
18159
|
"in": "path",
|
|
16819
18160
|
"name": "id",
|
|
16820
18161
|
"required": true,
|
|
16821
18162
|
"schema": {
|
|
16822
18163
|
"type": "string"
|
|
16823
|
-
},
|
|
16824
|
-
"example": "acc_4194ad24-c818-4e5c-b003-9cc2aa7df53b"
|
|
16825
|
-
}
|
|
16826
|
-
],
|
|
16827
|
-
"requestBody": {
|
|
16828
|
-
"required": true,
|
|
16829
|
-
"content": {
|
|
16830
|
-
"application/json": {
|
|
16831
|
-
"schema": {
|
|
16832
|
-
"$ref": "#/components/schemas/StartRecoveryRequest"
|
|
16833
|
-
}
|
|
16834
18164
|
}
|
|
16835
18165
|
}
|
|
16836
|
-
|
|
18166
|
+
]
|
|
16837
18167
|
}
|
|
16838
18168
|
},
|
|
16839
|
-
"/
|
|
18169
|
+
"/v2/users/pregenerate": {
|
|
16840
18170
|
"post": {
|
|
16841
|
-
"operationId": "
|
|
18171
|
+
"operationId": "pregenerateUserV2",
|
|
16842
18172
|
"responses": {
|
|
16843
18173
|
"200": {
|
|
16844
|
-
"description": "
|
|
18174
|
+
"description": "User and account pre-generated successfully.",
|
|
16845
18175
|
"content": {
|
|
16846
18176
|
"application/json": {
|
|
16847
18177
|
"schema": {
|
|
16848
|
-
"$ref": "#/components/schemas/
|
|
16849
|
-
},
|
|
16850
|
-
"examples": {
|
|
16851
|
-
"Example 1": {
|
|
16852
|
-
"value": {
|
|
16853
|
-
"id": "tin_c502d628-5bb3-42f2-b8f5-62ba4d71df3a",
|
|
16854
|
-
"createdAt": 1689869074,
|
|
16855
|
-
"object": "transactionIntent",
|
|
16856
|
-
"userOperation": null,
|
|
16857
|
-
"chainId": 80002,
|
|
16858
|
-
"abstractionType": "standard",
|
|
16859
|
-
"details": {
|
|
16860
|
-
"from": "0x70997970c51812dc3a010c7d01b50e0d17dc79c8",
|
|
16861
|
-
"to": "0x3c44cdddb6a900fa2b585dd299e03d12fa4293bc",
|
|
16862
|
-
"gas": "0x5208",
|
|
16863
|
-
"maxFeePerGas": "0x3b9aca00",
|
|
16864
|
-
"maxPriorityFeePerGas": "0x3b9aca00",
|
|
16865
|
-
"nonce": "0x0",
|
|
16866
|
-
"data": "0x3c44..."
|
|
16867
|
-
},
|
|
16868
|
-
"updatedAt": 1689869074,
|
|
16869
|
-
"policy": {
|
|
16870
|
-
"id": "pol_..."
|
|
16871
|
-
},
|
|
16872
|
-
"player": {
|
|
16873
|
-
"id": "pla_..."
|
|
16874
|
-
},
|
|
16875
|
-
"account": {
|
|
16876
|
-
"id": "acc_..."
|
|
16877
|
-
},
|
|
16878
|
-
"response": {
|
|
16879
|
-
"createdAt": 1689869074,
|
|
16880
|
-
"logs": [
|
|
16881
|
-
{
|
|
16882
|
-
"removed": false,
|
|
16883
|
-
"transactionIndex": 0,
|
|
16884
|
-
"blockNumber": 44904492,
|
|
16885
|
-
"transactionHash": "0x25d3...005c",
|
|
16886
|
-
"address": "0x5FF1...2789",
|
|
16887
|
-
"topics": ["0xbb47...f972"],
|
|
16888
|
-
"data": "0x",
|
|
16889
|
-
"logIndex": 0,
|
|
16890
|
-
"blockHash": "0x8a69...6d59"
|
|
16891
|
-
}
|
|
16892
|
-
],
|
|
16893
|
-
"blockNumber": 8789286,
|
|
16894
|
-
"transactionHash": "0x25d3...005c",
|
|
16895
|
-
"to": "0x0576...1B57",
|
|
16896
|
-
"gasUsed": "336730",
|
|
16897
|
-
"status": 1
|
|
16898
|
-
},
|
|
16899
|
-
"interactions": [
|
|
16900
|
-
{
|
|
16901
|
-
"functionName": "mint",
|
|
16902
|
-
"contract": "con_...",
|
|
16903
|
-
"functionArgs": ["0x63B7...484f"]
|
|
16904
|
-
}
|
|
16905
|
-
]
|
|
16906
|
-
}
|
|
16907
|
-
}
|
|
18178
|
+
"$ref": "#/components/schemas/PregenerateAccountResponse"
|
|
16908
18179
|
}
|
|
16909
18180
|
}
|
|
16910
18181
|
}
|
|
16911
18182
|
},
|
|
18183
|
+
"400": {
|
|
18184
|
+
"description": "Bad request - invalid parameters."
|
|
18185
|
+
},
|
|
16912
18186
|
"401": {
|
|
16913
|
-
"description": "
|
|
18187
|
+
"description": "Unauthorized - invalid API key."
|
|
16914
18188
|
},
|
|
16915
18189
|
"409": {
|
|
16916
|
-
"description": "
|
|
18190
|
+
"description": "Conflict - user with this identifier already exists."
|
|
16917
18191
|
}
|
|
16918
18192
|
},
|
|
16919
|
-
"
|
|
16920
|
-
"
|
|
18193
|
+
"description": "Pre-generate a user with an embedded account before they authenticate.\nCreates a user record and an embedded account using the provided SSS key shares.\nWhen the user later authenticates (via email, OAuth, third-party auth, etc.)\nwith the same identifier, they will be linked to this pre-generated account.\n\nYou can pregenerate using either:\n- `email`: User will be linked when they authenticate with the same email\n- `thirdPartyUserId` + `thirdPartyProvider`: User will be linked when they authenticate via the same third-party provider",
|
|
18194
|
+
"summary": "Pre-generate a user with an embedded account.",
|
|
18195
|
+
"tags": ["Users"],
|
|
16921
18196
|
"security": [
|
|
16922
18197
|
{
|
|
16923
18198
|
"sk": []
|
|
16924
18199
|
}
|
|
16925
18200
|
],
|
|
16926
|
-
"parameters": [
|
|
16927
|
-
{
|
|
16928
|
-
"description": "Specifies the unique account ID (starts with acc_).",
|
|
16929
|
-
"in": "path",
|
|
16930
|
-
"name": "id",
|
|
16931
|
-
"required": true,
|
|
16932
|
-
"schema": {
|
|
16933
|
-
"type": "string"
|
|
16934
|
-
},
|
|
16935
|
-
"example": "acc_4194ad24-c818-4e5c-b003-9cc2aa7df53b"
|
|
16936
|
-
}
|
|
16937
|
-
],
|
|
18201
|
+
"parameters": [],
|
|
16938
18202
|
"requestBody": {
|
|
16939
18203
|
"required": true,
|
|
16940
18204
|
"content": {
|
|
16941
18205
|
"application/json": {
|
|
16942
18206
|
"schema": {
|
|
16943
|
-
"$ref": "#/components/schemas/
|
|
18207
|
+
"$ref": "#/components/schemas/PregenerateUserRequestV2"
|
|
16944
18208
|
}
|
|
16945
18209
|
}
|
|
16946
18210
|
}
|
|
16947
18211
|
}
|
|
16948
18212
|
}
|
|
16949
18213
|
},
|
|
16950
|
-
"/v2/
|
|
18214
|
+
"/v2/policies": {
|
|
16951
18215
|
"get": {
|
|
16952
|
-
"operationId": "
|
|
18216
|
+
"operationId": "ListPolicies",
|
|
16953
18217
|
"responses": {
|
|
16954
18218
|
"200": {
|
|
16955
18219
|
"description": "Successful response.",
|
|
16956
18220
|
"content": {
|
|
16957
18221
|
"application/json": {
|
|
16958
18222
|
"schema": {
|
|
16959
|
-
"$ref": "#/components/schemas/
|
|
16960
|
-
},
|
|
16961
|
-
"examples": {
|
|
16962
|
-
"Example 1": {
|
|
16963
|
-
"value": {
|
|
16964
|
-
"object": "list",
|
|
16965
|
-
"url": "http://localhost:3000",
|
|
16966
|
-
"data": [
|
|
16967
|
-
{
|
|
16968
|
-
"id": "usr_***",
|
|
16969
|
-
"createdAt": 123456789,
|
|
16970
|
-
"name": "Satoshi",
|
|
16971
|
-
"email": "satoshi@openfort.io",
|
|
16972
|
-
"emailVerified": true,
|
|
16973
|
-
"phoneNumber": null,
|
|
16974
|
-
"phoneNumberVerified": false,
|
|
16975
|
-
"isAnonymous": false,
|
|
16976
|
-
"linkedAccounts": [
|
|
16977
|
-
{
|
|
16978
|
-
"provider": "google",
|
|
16979
|
-
"createdAt": 12346789,
|
|
16980
|
-
"updatedAt": 12346789,
|
|
16981
|
-
"accountId": "123456789"
|
|
16982
|
-
}
|
|
16983
|
-
]
|
|
16984
|
-
},
|
|
16985
|
-
{
|
|
16986
|
-
"id": "usr_***",
|
|
16987
|
-
"createdAt": 123456789,
|
|
16988
|
-
"name": "Nakamoto",
|
|
16989
|
-
"email": "nakamoto@openfort.io",
|
|
16990
|
-
"emailVerified": true,
|
|
16991
|
-
"phoneNumber": null,
|
|
16992
|
-
"phoneNumberVerified": false,
|
|
16993
|
-
"isAnonymous": false,
|
|
16994
|
-
"linkedAccounts": [
|
|
16995
|
-
{
|
|
16996
|
-
"provider": "google",
|
|
16997
|
-
"createdAt": 12346789,
|
|
16998
|
-
"updatedAt": 12346789,
|
|
16999
|
-
"accountId": "123456789"
|
|
17000
|
-
}
|
|
17001
|
-
]
|
|
17002
|
-
}
|
|
17003
|
-
],
|
|
17004
|
-
"start": 0,
|
|
17005
|
-
"end": 2,
|
|
17006
|
-
"total": 2
|
|
17007
|
-
}
|
|
17008
|
-
}
|
|
18223
|
+
"$ref": "#/components/schemas/PolicyV2ListResponse"
|
|
17009
18224
|
}
|
|
17010
18225
|
}
|
|
17011
18226
|
}
|
|
17012
18227
|
},
|
|
17013
18228
|
"401": {
|
|
17014
|
-
"description": "
|
|
18229
|
+
"description": "Unauthorized."
|
|
17015
18230
|
}
|
|
17016
18231
|
},
|
|
17017
|
-
"description": "
|
|
17018
|
-
"summary": "List
|
|
17019
|
-
"tags": ["
|
|
18232
|
+
"description": "Returns a list of policies.",
|
|
18233
|
+
"summary": "List policies.",
|
|
18234
|
+
"tags": ["Policies"],
|
|
17020
18235
|
"security": [
|
|
17021
18236
|
{
|
|
17022
18237
|
"sk": []
|
|
@@ -17058,111 +18273,106 @@
|
|
|
17058
18273
|
}
|
|
17059
18274
|
},
|
|
17060
18275
|
{
|
|
17061
|
-
"description": "Filter by
|
|
18276
|
+
"description": "Filter by scope.",
|
|
17062
18277
|
"in": "query",
|
|
17063
|
-
"name": "
|
|
18278
|
+
"name": "scope",
|
|
17064
18279
|
"required": false,
|
|
17065
18280
|
"schema": {
|
|
17066
|
-
"type": "string"
|
|
18281
|
+
"type": "string",
|
|
18282
|
+
"enum": ["project", "account"]
|
|
17067
18283
|
},
|
|
17068
|
-
"example": "
|
|
18284
|
+
"example": "project"
|
|
17069
18285
|
},
|
|
17070
18286
|
{
|
|
17071
|
-
"description": "Filter by
|
|
18287
|
+
"description": "Filter by enabled status.",
|
|
17072
18288
|
"in": "query",
|
|
17073
|
-
"name": "
|
|
18289
|
+
"name": "enabled",
|
|
17074
18290
|
"required": false,
|
|
17075
18291
|
"schema": {
|
|
17076
|
-
"type": "
|
|
18292
|
+
"type": "boolean"
|
|
17077
18293
|
},
|
|
17078
|
-
"example":
|
|
18294
|
+
"example": true
|
|
17079
18295
|
},
|
|
17080
18296
|
{
|
|
17081
|
-
"description": "Filter by
|
|
18297
|
+
"description": "Filter by account ID (for account-scoped policies).",
|
|
17082
18298
|
"in": "query",
|
|
17083
|
-
"name": "
|
|
18299
|
+
"name": "accountId",
|
|
17084
18300
|
"required": false,
|
|
17085
18301
|
"schema": {
|
|
17086
18302
|
"type": "string"
|
|
17087
18303
|
},
|
|
17088
|
-
"example": "
|
|
18304
|
+
"example": "acc_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
18305
|
+
}
|
|
18306
|
+
]
|
|
18307
|
+
},
|
|
18308
|
+
"post": {
|
|
18309
|
+
"operationId": "CreatePolicyV2",
|
|
18310
|
+
"responses": {
|
|
18311
|
+
"201": {
|
|
18312
|
+
"description": "Created.",
|
|
18313
|
+
"content": {
|
|
18314
|
+
"application/json": {
|
|
18315
|
+
"schema": {
|
|
18316
|
+
"$ref": "#/components/schemas/PolicyV2Response"
|
|
18317
|
+
}
|
|
18318
|
+
}
|
|
18319
|
+
}
|
|
17089
18320
|
},
|
|
17090
|
-
{
|
|
17091
|
-
"description": "
|
|
17092
|
-
"in": "query",
|
|
17093
|
-
"name": "phoneNumber",
|
|
17094
|
-
"required": false,
|
|
17095
|
-
"schema": {
|
|
17096
|
-
"type": "string"
|
|
17097
|
-
},
|
|
17098
|
-
"example": "+1234567890"
|
|
18321
|
+
"400": {
|
|
18322
|
+
"description": "Bad request."
|
|
17099
18323
|
},
|
|
18324
|
+
"401": {
|
|
18325
|
+
"description": "Unauthorized."
|
|
18326
|
+
}
|
|
18327
|
+
},
|
|
18328
|
+
"description": "Creates a new policy with the specified rules.",
|
|
18329
|
+
"summary": "Create a policy.",
|
|
18330
|
+
"tags": ["Policies"],
|
|
18331
|
+
"security": [
|
|
17100
18332
|
{
|
|
17101
|
-
"
|
|
17102
|
-
"in": "query",
|
|
17103
|
-
"name": "authProviderId",
|
|
17104
|
-
"required": false,
|
|
17105
|
-
"schema": {
|
|
17106
|
-
"type": "string"
|
|
17107
|
-
},
|
|
17108
|
-
"example": "google"
|
|
18333
|
+
"sk": []
|
|
17109
18334
|
},
|
|
17110
18335
|
{
|
|
17111
|
-
"
|
|
17112
|
-
"in": "query",
|
|
17113
|
-
"name": "walletClientType",
|
|
17114
|
-
"required": false,
|
|
17115
|
-
"schema": {
|
|
17116
|
-
"type": "string"
|
|
17117
|
-
},
|
|
17118
|
-
"example": "metamask"
|
|
18336
|
+
"user_project": []
|
|
17119
18337
|
}
|
|
17120
|
-
]
|
|
18338
|
+
],
|
|
18339
|
+
"parameters": [],
|
|
18340
|
+
"requestBody": {
|
|
18341
|
+
"required": true,
|
|
18342
|
+
"content": {
|
|
18343
|
+
"application/json": {
|
|
18344
|
+
"schema": {
|
|
18345
|
+
"$ref": "#/components/schemas/CreatePolicyV2Request"
|
|
18346
|
+
}
|
|
18347
|
+
}
|
|
18348
|
+
}
|
|
18349
|
+
}
|
|
17121
18350
|
}
|
|
17122
18351
|
},
|
|
17123
|
-
"/v2/
|
|
18352
|
+
"/v2/policies/{policyId}": {
|
|
17124
18353
|
"get": {
|
|
17125
|
-
"operationId": "
|
|
18354
|
+
"operationId": "GetPolicyV2",
|
|
17126
18355
|
"responses": {
|
|
17127
18356
|
"200": {
|
|
17128
18357
|
"description": "Successful response.",
|
|
17129
18358
|
"content": {
|
|
17130
18359
|
"application/json": {
|
|
17131
18360
|
"schema": {
|
|
17132
|
-
"$ref": "#/components/schemas/
|
|
17133
|
-
},
|
|
17134
|
-
"examples": {
|
|
17135
|
-
"Example 1": {
|
|
17136
|
-
"value": {
|
|
17137
|
-
"id": "usr_***",
|
|
17138
|
-
"createdAt": 123456789,
|
|
17139
|
-
"name": "Satoshi",
|
|
17140
|
-
"email": "satoshi@openfort.io",
|
|
17141
|
-
"emailVerified": true,
|
|
17142
|
-
"phoneNumber": null,
|
|
17143
|
-
"phoneNumberVerified": false,
|
|
17144
|
-
"isAnonymous": false,
|
|
17145
|
-
"linkedAccounts": [
|
|
17146
|
-
{
|
|
17147
|
-
"provider": "google",
|
|
17148
|
-
"createdAt": 12346789,
|
|
17149
|
-
"updatedAt": 12346789,
|
|
17150
|
-
"accountId": "123456789"
|
|
17151
|
-
}
|
|
17152
|
-
]
|
|
17153
|
-
}
|
|
17154
|
-
}
|
|
18361
|
+
"$ref": "#/components/schemas/PolicyV2Response"
|
|
17155
18362
|
}
|
|
17156
18363
|
}
|
|
17157
18364
|
}
|
|
17158
18365
|
},
|
|
17159
18366
|
"401": {
|
|
17160
|
-
"description": "
|
|
18367
|
+
"description": "Unauthorized."
|
|
18368
|
+
},
|
|
18369
|
+
"404": {
|
|
18370
|
+
"description": "Not found."
|
|
17161
18371
|
}
|
|
17162
18372
|
},
|
|
17163
|
-
"description": "Retrieves
|
|
17164
|
-
"summary": "Get
|
|
17165
|
-
"tags": ["
|
|
18373
|
+
"description": "Retrieves the details of a policy that has previously been created.",
|
|
18374
|
+
"summary": "Get a policy.",
|
|
18375
|
+
"tags": ["Policies"],
|
|
17166
18376
|
"security": [
|
|
17167
18377
|
{
|
|
17168
18378
|
"sk": []
|
|
@@ -17173,47 +18383,43 @@
|
|
|
17173
18383
|
],
|
|
17174
18384
|
"parameters": [
|
|
17175
18385
|
{
|
|
18386
|
+
"description": "Specifies the unique policy ID (starts with ply_).",
|
|
17176
18387
|
"in": "path",
|
|
17177
|
-
"name": "
|
|
18388
|
+
"name": "policyId",
|
|
17178
18389
|
"required": true,
|
|
17179
18390
|
"schema": {
|
|
17180
18391
|
"type": "string"
|
|
17181
|
-
}
|
|
18392
|
+
},
|
|
18393
|
+
"example": "ply_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
17182
18394
|
}
|
|
17183
18395
|
]
|
|
17184
18396
|
},
|
|
17185
|
-
"
|
|
17186
|
-
"operationId": "
|
|
18397
|
+
"post": {
|
|
18398
|
+
"operationId": "UpdatePolicyV2",
|
|
17187
18399
|
"responses": {
|
|
17188
18400
|
"200": {
|
|
17189
18401
|
"description": "Successful response.",
|
|
17190
18402
|
"content": {
|
|
17191
18403
|
"application/json": {
|
|
17192
18404
|
"schema": {
|
|
17193
|
-
"$ref": "#/components/schemas/
|
|
17194
|
-
},
|
|
17195
|
-
"examples": {
|
|
17196
|
-
"Example 1": {
|
|
17197
|
-
"value": {
|
|
17198
|
-
"id": "pla_00000000-0000-0000-0000-000000000000",
|
|
17199
|
-
"object": "player",
|
|
17200
|
-
"deleted": true
|
|
17201
|
-
}
|
|
17202
|
-
}
|
|
18405
|
+
"$ref": "#/components/schemas/PolicyV2Response"
|
|
17203
18406
|
}
|
|
17204
18407
|
}
|
|
17205
18408
|
}
|
|
17206
18409
|
},
|
|
18410
|
+
"400": {
|
|
18411
|
+
"description": "Bad request."
|
|
18412
|
+
},
|
|
17207
18413
|
"401": {
|
|
17208
|
-
"description": "
|
|
18414
|
+
"description": "Unauthorized."
|
|
17209
18415
|
},
|
|
17210
|
-
"
|
|
17211
|
-
"description": "
|
|
18416
|
+
"404": {
|
|
18417
|
+
"description": "Not found."
|
|
17212
18418
|
}
|
|
17213
18419
|
},
|
|
17214
|
-
"description": "
|
|
17215
|
-
"summary": "
|
|
17216
|
-
"tags": ["
|
|
18420
|
+
"description": "Updates an existing policy.",
|
|
18421
|
+
"summary": "Update a policy.",
|
|
18422
|
+
"tags": ["Policies"],
|
|
17217
18423
|
"security": [
|
|
17218
18424
|
{
|
|
17219
18425
|
"sk": []
|
|
@@ -17224,51 +18430,50 @@
|
|
|
17224
18430
|
],
|
|
17225
18431
|
"parameters": [
|
|
17226
18432
|
{
|
|
17227
|
-
"description": "Specifies the unique
|
|
18433
|
+
"description": "Specifies the unique policy ID (starts with ply_).",
|
|
17228
18434
|
"in": "path",
|
|
17229
|
-
"name": "
|
|
18435
|
+
"name": "policyId",
|
|
17230
18436
|
"required": true,
|
|
17231
18437
|
"schema": {
|
|
17232
18438
|
"type": "string"
|
|
17233
18439
|
},
|
|
17234
|
-
"example": "
|
|
18440
|
+
"example": "ply_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
17235
18441
|
}
|
|
17236
|
-
]
|
|
17237
|
-
|
|
17238
|
-
|
|
17239
|
-
|
|
17240
|
-
|
|
17241
|
-
|
|
18442
|
+
],
|
|
18443
|
+
"requestBody": {
|
|
18444
|
+
"required": true,
|
|
18445
|
+
"content": {
|
|
18446
|
+
"application/json": {
|
|
18447
|
+
"schema": {
|
|
18448
|
+
"$ref": "#/components/schemas/UpdatePolicyV2Request"
|
|
18449
|
+
}
|
|
18450
|
+
}
|
|
18451
|
+
}
|
|
18452
|
+
}
|
|
18453
|
+
},
|
|
18454
|
+
"delete": {
|
|
18455
|
+
"operationId": "DeletePolicyV2",
|
|
17242
18456
|
"responses": {
|
|
17243
18457
|
"200": {
|
|
17244
18458
|
"description": "Successful response.",
|
|
17245
18459
|
"content": {
|
|
17246
18460
|
"application/json": {
|
|
17247
18461
|
"schema": {
|
|
17248
|
-
"$ref": "#/components/schemas/
|
|
17249
|
-
},
|
|
17250
|
-
"examples": {
|
|
17251
|
-
"Example 1": {
|
|
17252
|
-
"value": {
|
|
17253
|
-
"id": "pla_00000000-0000-0000-0000-000000000000",
|
|
17254
|
-
"object": "wallet",
|
|
17255
|
-
"createdAt": 1689869074
|
|
17256
|
-
}
|
|
17257
|
-
}
|
|
18462
|
+
"$ref": "#/components/schemas/PolicyV2DeleteResponse"
|
|
17258
18463
|
}
|
|
17259
18464
|
}
|
|
17260
18465
|
}
|
|
17261
18466
|
},
|
|
17262
18467
|
"401": {
|
|
17263
|
-
"description": "
|
|
18468
|
+
"description": "Unauthorized."
|
|
17264
18469
|
},
|
|
17265
18470
|
"404": {
|
|
17266
|
-
"description": "
|
|
18471
|
+
"description": "Not found."
|
|
17267
18472
|
}
|
|
17268
18473
|
},
|
|
17269
|
-
"description": "
|
|
17270
|
-
"summary": "
|
|
17271
|
-
"tags": ["
|
|
18474
|
+
"description": "Deletes a policy. This is a soft delete.",
|
|
18475
|
+
"summary": "Delete a policy.",
|
|
18476
|
+
"tags": ["Policies"],
|
|
17272
18477
|
"security": [
|
|
17273
18478
|
{
|
|
17274
18479
|
"sk": []
|
|
@@ -17279,46 +18484,51 @@
|
|
|
17279
18484
|
],
|
|
17280
18485
|
"parameters": [
|
|
17281
18486
|
{
|
|
18487
|
+
"description": "Specifies the unique policy ID (starts with ply_).",
|
|
17282
18488
|
"in": "path",
|
|
17283
|
-
"name": "
|
|
18489
|
+
"name": "policyId",
|
|
17284
18490
|
"required": true,
|
|
17285
18491
|
"schema": {
|
|
17286
18492
|
"type": "string"
|
|
17287
|
-
}
|
|
18493
|
+
},
|
|
18494
|
+
"example": "ply_48eeba57-2cd5-4159-a2cb-057a23a35e65"
|
|
17288
18495
|
}
|
|
17289
18496
|
]
|
|
17290
18497
|
}
|
|
17291
18498
|
},
|
|
17292
|
-
"/v2/
|
|
18499
|
+
"/v2/policies/evaluate": {
|
|
17293
18500
|
"post": {
|
|
17294
|
-
"operationId": "
|
|
18501
|
+
"operationId": "EvaluatePolicyV2",
|
|
17295
18502
|
"responses": {
|
|
17296
18503
|
"200": {
|
|
17297
|
-
"description": "
|
|
18504
|
+
"description": "Successful response.",
|
|
17298
18505
|
"content": {
|
|
17299
18506
|
"application/json": {
|
|
17300
18507
|
"schema": {
|
|
17301
|
-
"$ref": "#/components/schemas/
|
|
18508
|
+
"$ref": "#/components/schemas/EvaluatePolicyV2Response"
|
|
17302
18509
|
}
|
|
17303
18510
|
}
|
|
17304
18511
|
}
|
|
17305
18512
|
},
|
|
17306
18513
|
"400": {
|
|
17307
|
-
"description": "Bad request
|
|
18514
|
+
"description": "Bad request."
|
|
17308
18515
|
},
|
|
17309
18516
|
"401": {
|
|
17310
|
-
"description": "Unauthorized
|
|
17311
|
-
},
|
|
17312
|
-
"409": {
|
|
17313
|
-
"description": "Conflict - user with this identifier already exists."
|
|
18517
|
+
"description": "Unauthorized."
|
|
17314
18518
|
}
|
|
17315
18519
|
},
|
|
17316
|
-
"description": "
|
|
17317
|
-
"summary": "
|
|
17318
|
-
"tags": ["
|
|
18520
|
+
"description": "Evaluates an operation against policies without actually performing the operation.\nUse this endpoint to check if an operation would be allowed before attempting it.",
|
|
18521
|
+
"summary": "Evaluate policy.",
|
|
18522
|
+
"tags": ["Policies"],
|
|
17319
18523
|
"security": [
|
|
17320
18524
|
{
|
|
17321
18525
|
"sk": []
|
|
18526
|
+
},
|
|
18527
|
+
{
|
|
18528
|
+
"pk": []
|
|
18529
|
+
},
|
|
18530
|
+
{
|
|
18531
|
+
"user_project": []
|
|
17322
18532
|
}
|
|
17323
18533
|
],
|
|
17324
18534
|
"parameters": [],
|
|
@@ -17327,7 +18537,7 @@
|
|
|
17327
18537
|
"content": {
|
|
17328
18538
|
"application/json": {
|
|
17329
18539
|
"schema": {
|
|
17330
|
-
"$ref": "#/components/schemas/
|
|
18540
|
+
"$ref": "#/components/schemas/EvaluatePolicyV2Request"
|
|
17331
18541
|
}
|
|
17332
18542
|
}
|
|
17333
18543
|
}
|