@1claw/openapi-spec 0.48.1 → 0.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/openapi.json +223 -9
- package/openapi.yaml +179 -6
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -16727,6 +16727,9 @@
|
|
|
16727
16727
|
},
|
|
16728
16728
|
"consensus_trigger": {
|
|
16729
16729
|
"$ref": "#/components/schemas/ConsensusTrigger"
|
|
16730
|
+
},
|
|
16731
|
+
"tx_conditions": {
|
|
16732
|
+
"$ref": "#/components/schemas/TxConditions"
|
|
16730
16733
|
}
|
|
16731
16734
|
}
|
|
16732
16735
|
},
|
|
@@ -16766,6 +16769,9 @@
|
|
|
16766
16769
|
},
|
|
16767
16770
|
"consensus_trigger": {
|
|
16768
16771
|
"$ref": "#/components/schemas/ConsensusTrigger"
|
|
16772
|
+
},
|
|
16773
|
+
"tx_conditions": {
|
|
16774
|
+
"$ref": "#/components/schemas/TxConditions"
|
|
16769
16775
|
}
|
|
16770
16776
|
}
|
|
16771
16777
|
},
|
|
@@ -16841,6 +16847,9 @@
|
|
|
16841
16847
|
},
|
|
16842
16848
|
"consensus_trigger": {
|
|
16843
16849
|
"$ref": "#/components/schemas/ConsensusTrigger"
|
|
16850
|
+
},
|
|
16851
|
+
"tx_conditions": {
|
|
16852
|
+
"$ref": "#/components/schemas/TxConditions"
|
|
16844
16853
|
}
|
|
16845
16854
|
}
|
|
16846
16855
|
},
|
|
@@ -18482,6 +18491,11 @@
|
|
|
18482
18491
|
"type": "object",
|
|
18483
18492
|
"additionalProperties": true,
|
|
18484
18493
|
"description": "Raw XRPL transaction JSON for full transaction type coverage. When present (and chain is XRP), the handler uses the xrpl-rust binary codec to encode and sign the transaction as-is. Supports all XRPL transaction types: Payment, TrustSet, OfferCreate, OfferCancel, AccountSet, EscrowCreate, NFTokenMint, AMMCreate, and 20+ more. Account, Sequence, Fee, LastLedgerSequence, and SigningPubKey are auto-filled when absent.\n"
|
|
18494
|
+
},
|
|
18495
|
+
"approval_id": {
|
|
18496
|
+
"type": "string",
|
|
18497
|
+
"format": "uuid",
|
|
18498
|
+
"description": "Optional pending approval ID. When consensus policies match, clients resubmit with this field set to bypass the 202 gate after the approval has been executed.\n"
|
|
18485
18499
|
}
|
|
18486
18500
|
}
|
|
18487
18501
|
},
|
|
@@ -19131,6 +19145,11 @@
|
|
|
19131
19145
|
"type": "object",
|
|
19132
19146
|
"additionalProperties": true,
|
|
19133
19147
|
"description": "Raw XRPL transaction JSON for full transaction type coverage. When present (and chain is XRP), the handler uses the xrpl-rust binary codec to encode and sign the transaction as-is. Supports all XRPL transaction types: Payment, TrustSet, OfferCreate, OfferCancel, AccountSet, EscrowCreate, NFTokenMint, AMMCreate, and 20+ more. Account, Sequence, Fee, LastLedgerSequence, and SigningPubKey are auto-filled when absent.\n"
|
|
19148
|
+
},
|
|
19149
|
+
"approval_id": {
|
|
19150
|
+
"type": "string",
|
|
19151
|
+
"format": "uuid",
|
|
19152
|
+
"description": "Optional pending approval ID. When consensus policies match, clients resubmit with this field set to bypass the 202 gate after the approval has been executed.\n"
|
|
19134
19153
|
}
|
|
19135
19154
|
}
|
|
19136
19155
|
},
|
|
@@ -25808,13 +25827,22 @@
|
|
|
25808
25827
|
"type": "string"
|
|
25809
25828
|
},
|
|
25810
25829
|
"contract_address": {
|
|
25811
|
-
"type": "string"
|
|
25830
|
+
"type": "string",
|
|
25831
|
+
"description": "Contract address, or Solana program id when interface_kind is solana_idl"
|
|
25812
25832
|
},
|
|
25813
25833
|
"abi_json": {
|
|
25814
|
-
"
|
|
25815
|
-
"
|
|
25816
|
-
|
|
25817
|
-
|
|
25834
|
+
"description": "EVM ABI JSON array, or Solana IDL object when interface_kind is solana_idl",
|
|
25835
|
+
"oneOf": [
|
|
25836
|
+
{
|
|
25837
|
+
"type": "array",
|
|
25838
|
+
"items": {
|
|
25839
|
+
"type": "object"
|
|
25840
|
+
}
|
|
25841
|
+
},
|
|
25842
|
+
{
|
|
25843
|
+
"type": "object"
|
|
25844
|
+
}
|
|
25845
|
+
]
|
|
25818
25846
|
},
|
|
25819
25847
|
"name": {
|
|
25820
25848
|
"type": "string"
|
|
@@ -25824,6 +25852,14 @@
|
|
|
25824
25852
|
},
|
|
25825
25853
|
"token_decimals": {
|
|
25826
25854
|
"type": "integer"
|
|
25855
|
+
},
|
|
25856
|
+
"interface_kind": {
|
|
25857
|
+
"type": "string",
|
|
25858
|
+
"enum": [
|
|
25859
|
+
"evm_abi",
|
|
25860
|
+
"solana_idl"
|
|
25861
|
+
],
|
|
25862
|
+
"default": "evm_abi"
|
|
25827
25863
|
}
|
|
25828
25864
|
}
|
|
25829
25865
|
},
|
|
@@ -25845,10 +25881,18 @@
|
|
|
25845
25881
|
"type": "string"
|
|
25846
25882
|
},
|
|
25847
25883
|
"abi_json": {
|
|
25848
|
-
"
|
|
25849
|
-
"
|
|
25850
|
-
|
|
25851
|
-
|
|
25884
|
+
"description": "EVM ABI JSON array, or Solana IDL object",
|
|
25885
|
+
"oneOf": [
|
|
25886
|
+
{
|
|
25887
|
+
"type": "array",
|
|
25888
|
+
"items": {
|
|
25889
|
+
"type": "object"
|
|
25890
|
+
}
|
|
25891
|
+
},
|
|
25892
|
+
{
|
|
25893
|
+
"type": "object"
|
|
25894
|
+
}
|
|
25895
|
+
]
|
|
25852
25896
|
},
|
|
25853
25897
|
"name": {
|
|
25854
25898
|
"type": "string"
|
|
@@ -25859,6 +25903,14 @@
|
|
|
25859
25903
|
"token_decimals": {
|
|
25860
25904
|
"type": "integer"
|
|
25861
25905
|
},
|
|
25906
|
+
"interface_kind": {
|
|
25907
|
+
"type": "string",
|
|
25908
|
+
"enum": [
|
|
25909
|
+
"evm_abi",
|
|
25910
|
+
"solana_idl"
|
|
25911
|
+
],
|
|
25912
|
+
"default": "evm_abi"
|
|
25913
|
+
},
|
|
25862
25914
|
"created_by": {
|
|
25863
25915
|
"type": "string",
|
|
25864
25916
|
"format": "uuid"
|
|
@@ -25884,6 +25936,73 @@
|
|
|
25884
25936
|
}
|
|
25885
25937
|
}
|
|
25886
25938
|
},
|
|
25939
|
+
"TxConditions": {
|
|
25940
|
+
"type": "object",
|
|
25941
|
+
"description": "Signing-time conditions on access policies (all tiers).\nIgnored on secret reads. Evaluated when a TransactionContext is present.\nFields are combined according to `match_mode` (default AND).\n",
|
|
25942
|
+
"additionalProperties": true,
|
|
25943
|
+
"properties": {
|
|
25944
|
+
"match_mode": {
|
|
25945
|
+
"type": "string",
|
|
25946
|
+
"enum": [
|
|
25947
|
+
"all",
|
|
25948
|
+
"any"
|
|
25949
|
+
],
|
|
25950
|
+
"default": "all",
|
|
25951
|
+
"description": "How individual condition fields are combined.\n\"all\" (default): every present field must match (AND).\n\"any\": at least one present field must match (OR).\n"
|
|
25952
|
+
},
|
|
25953
|
+
"function_name_in": {
|
|
25954
|
+
"type": "array",
|
|
25955
|
+
"items": {
|
|
25956
|
+
"type": "string"
|
|
25957
|
+
}
|
|
25958
|
+
},
|
|
25959
|
+
"function_selector_in": {
|
|
25960
|
+
"type": "array",
|
|
25961
|
+
"items": {
|
|
25962
|
+
"type": "string"
|
|
25963
|
+
}
|
|
25964
|
+
},
|
|
25965
|
+
"erc20_amount_above": {
|
|
25966
|
+
"type": "string"
|
|
25967
|
+
},
|
|
25968
|
+
"value_above": {
|
|
25969
|
+
"type": "string",
|
|
25970
|
+
"description": "Native value threshold in gwei"
|
|
25971
|
+
},
|
|
25972
|
+
"to_address_in": {
|
|
25973
|
+
"type": "array",
|
|
25974
|
+
"items": {
|
|
25975
|
+
"type": "string"
|
|
25976
|
+
}
|
|
25977
|
+
},
|
|
25978
|
+
"chain_in": {
|
|
25979
|
+
"type": "array",
|
|
25980
|
+
"items": {
|
|
25981
|
+
"type": "string"
|
|
25982
|
+
}
|
|
25983
|
+
},
|
|
25984
|
+
"intent_type_in": {
|
|
25985
|
+
"type": "array",
|
|
25986
|
+
"items": {
|
|
25987
|
+
"type": "string"
|
|
25988
|
+
}
|
|
25989
|
+
},
|
|
25990
|
+
"decode_failed": {
|
|
25991
|
+
"type": "boolean"
|
|
25992
|
+
},
|
|
25993
|
+
"program_id_in": {
|
|
25994
|
+
"type": "array",
|
|
25995
|
+
"items": {
|
|
25996
|
+
"type": "string"
|
|
25997
|
+
}
|
|
25998
|
+
},
|
|
25999
|
+
"deep_inspect": {
|
|
26000
|
+
"type": "boolean",
|
|
26001
|
+
"default": false,
|
|
26002
|
+
"description": "When true, conditions are also evaluated against inner calls\nextracted from wrapper transactions (multicall, Safe execTransaction,\nERC-4337 handleOps). A match on any inner call counts as an overall match.\n"
|
|
26003
|
+
}
|
|
26004
|
+
}
|
|
26005
|
+
},
|
|
25887
26006
|
"ConsensusTrigger": {
|
|
25888
26007
|
"type": "object",
|
|
25889
26008
|
"required": [
|
|
@@ -25908,6 +26027,101 @@
|
|
|
25908
26027
|
"self_approval_allowed": {
|
|
25909
26028
|
"type": "boolean",
|
|
25910
26029
|
"default": false
|
|
26030
|
+
},
|
|
26031
|
+
"skip_when": {
|
|
26032
|
+
"type": "array",
|
|
26033
|
+
"description": "When ALL conditions in ANY entry match, consensus is bypassed.\nUseful for exempting known-safe recipients or low-value transfers.\n",
|
|
26034
|
+
"items": {
|
|
26035
|
+
"$ref": "#/components/schemas/FlatConditionSet"
|
|
26036
|
+
}
|
|
26037
|
+
},
|
|
26038
|
+
"require_when": {
|
|
26039
|
+
"type": "array",
|
|
26040
|
+
"description": "Consensus is ONLY required when at least one entry matches.\nIf set and none match, consensus is skipped entirely.\n",
|
|
26041
|
+
"items": {
|
|
26042
|
+
"$ref": "#/components/schemas/FlatConditionSet"
|
|
26043
|
+
}
|
|
26044
|
+
},
|
|
26045
|
+
"deep_inspect": {
|
|
26046
|
+
"type": "boolean",
|
|
26047
|
+
"default": false,
|
|
26048
|
+
"description": "When true, also evaluate conditions against inner calls extracted\nfrom wrapper transactions (multicall, Safe execTransaction,\nERC-4337 handleOps).\n"
|
|
26049
|
+
}
|
|
26050
|
+
}
|
|
26051
|
+
},
|
|
26052
|
+
"FlatConditionSet": {
|
|
26053
|
+
"type": "object",
|
|
26054
|
+
"description": "Flat condition set used by consensus composability. Each present field\nis AND-combined within the set. At least one field must be specified\n(unless `always` is true).\n",
|
|
26055
|
+
"additionalProperties": false,
|
|
26056
|
+
"properties": {
|
|
26057
|
+
"value_above": {
|
|
26058
|
+
"type": "string",
|
|
26059
|
+
"description": "Native value threshold in gwei (numeric string)"
|
|
26060
|
+
},
|
|
26061
|
+
"chain_in": {
|
|
26062
|
+
"type": "array",
|
|
26063
|
+
"items": {
|
|
26064
|
+
"type": "string"
|
|
26065
|
+
}
|
|
26066
|
+
},
|
|
26067
|
+
"to_address_in": {
|
|
26068
|
+
"type": "array",
|
|
26069
|
+
"items": {
|
|
26070
|
+
"type": "string"
|
|
26071
|
+
}
|
|
26072
|
+
},
|
|
26073
|
+
"function_selector_in": {
|
|
26074
|
+
"type": "array",
|
|
26075
|
+
"items": {
|
|
26076
|
+
"type": "string"
|
|
26077
|
+
}
|
|
26078
|
+
},
|
|
26079
|
+
"erc20_amount_above": {
|
|
26080
|
+
"type": "string",
|
|
26081
|
+
"description": "ERC-20 raw token amount threshold (numeric string)"
|
|
26082
|
+
},
|
|
26083
|
+
"intent_type_in": {
|
|
26084
|
+
"type": "array",
|
|
26085
|
+
"items": {
|
|
26086
|
+
"type": "string"
|
|
26087
|
+
}
|
|
26088
|
+
},
|
|
26089
|
+
"always": {
|
|
26090
|
+
"type": "boolean",
|
|
26091
|
+
"description": "When true, this entry always matches regardless of other fields"
|
|
26092
|
+
}
|
|
26093
|
+
}
|
|
26094
|
+
},
|
|
26095
|
+
"TimeWindow": {
|
|
26096
|
+
"type": "object",
|
|
26097
|
+
"description": "Time window condition for policy evaluation. Used inside the policy\n`conditions` JSON to restrict when the policy is active.\n",
|
|
26098
|
+
"properties": {
|
|
26099
|
+
"start_hour": {
|
|
26100
|
+
"type": "integer",
|
|
26101
|
+
"minimum": 0,
|
|
26102
|
+
"maximum": 23
|
|
26103
|
+
},
|
|
26104
|
+
"end_hour": {
|
|
26105
|
+
"type": "integer",
|
|
26106
|
+
"minimum": 0,
|
|
26107
|
+
"maximum": 24
|
|
26108
|
+
},
|
|
26109
|
+
"days_of_week": {
|
|
26110
|
+
"type": "array",
|
|
26111
|
+
"description": "Days when policy is active (0=Sunday, 6=Saturday)",
|
|
26112
|
+
"items": {
|
|
26113
|
+
"type": "integer",
|
|
26114
|
+
"minimum": 0,
|
|
26115
|
+
"maximum": 6
|
|
26116
|
+
}
|
|
26117
|
+
},
|
|
26118
|
+
"timezone": {
|
|
26119
|
+
"type": "string",
|
|
26120
|
+
"description": "IANA timezone identifier (e.g. \"America/New_York\"). Defaults to UTC."
|
|
26121
|
+
},
|
|
26122
|
+
"cron_expr": {
|
|
26123
|
+
"type": "string",
|
|
26124
|
+
"description": "Cron expression (6-field with seconds) for fine-grained scheduling."
|
|
25911
26125
|
}
|
|
25912
26126
|
}
|
|
25913
26127
|
},
|
package/openapi.yaml
CHANGED
|
@@ -10730,6 +10730,8 @@ components:
|
|
|
10730
10730
|
additionalProperties: true
|
|
10731
10731
|
consensus_trigger:
|
|
10732
10732
|
$ref: "#/components/schemas/ConsensusTrigger"
|
|
10733
|
+
tx_conditions:
|
|
10734
|
+
$ref: "#/components/schemas/TxConditions"
|
|
10733
10735
|
|
|
10734
10736
|
UpdatePolicyRequest:
|
|
10735
10737
|
type: object
|
|
@@ -10757,6 +10759,8 @@ components:
|
|
|
10757
10759
|
additionalProperties: true
|
|
10758
10760
|
consensus_trigger:
|
|
10759
10761
|
$ref: "#/components/schemas/ConsensusTrigger"
|
|
10762
|
+
tx_conditions:
|
|
10763
|
+
$ref: "#/components/schemas/TxConditions"
|
|
10760
10764
|
|
|
10761
10765
|
PolicyResponse:
|
|
10762
10766
|
type: object
|
|
@@ -10813,6 +10817,8 @@ components:
|
|
|
10813
10817
|
additionalProperties: true
|
|
10814
10818
|
consensus_trigger:
|
|
10815
10819
|
$ref: "#/components/schemas/ConsensusTrigger"
|
|
10820
|
+
tx_conditions:
|
|
10821
|
+
$ref: "#/components/schemas/TxConditions"
|
|
10816
10822
|
|
|
10817
10823
|
PolicyListResponse:
|
|
10818
10824
|
type: object
|
|
@@ -12005,6 +12011,13 @@ components:
|
|
|
12005
12011
|
OfferCancel, AccountSet, EscrowCreate, NFTokenMint, AMMCreate,
|
|
12006
12012
|
and 20+ more. Account, Sequence, Fee, LastLedgerSequence, and
|
|
12007
12013
|
SigningPubKey are auto-filled when absent.
|
|
12014
|
+
approval_id:
|
|
12015
|
+
type: string
|
|
12016
|
+
format: uuid
|
|
12017
|
+
description: >
|
|
12018
|
+
Optional pending approval ID. When consensus policies match,
|
|
12019
|
+
clients resubmit with this field set to bypass the 202 gate
|
|
12020
|
+
after the approval has been executed.
|
|
12008
12021
|
|
|
12009
12022
|
SignTransactionRequest:
|
|
12010
12023
|
type: object
|
|
@@ -12472,6 +12485,13 @@ components:
|
|
|
12472
12485
|
OfferCancel, AccountSet, EscrowCreate, NFTokenMint, AMMCreate,
|
|
12473
12486
|
and 20+ more. Account, Sequence, Fee, LastLedgerSequence, and
|
|
12474
12487
|
SigningPubKey are auto-filled when absent.
|
|
12488
|
+
approval_id:
|
|
12489
|
+
type: string
|
|
12490
|
+
format: uuid
|
|
12491
|
+
description: >
|
|
12492
|
+
Optional pending approval ID. When consensus policies match,
|
|
12493
|
+
clients resubmit with this field set to bypass the 202 gate
|
|
12494
|
+
after the approval has been executed.
|
|
12475
12495
|
|
|
12476
12496
|
SignIntentResponse:
|
|
12477
12497
|
type: object
|
|
@@ -16990,16 +17010,24 @@ components:
|
|
|
16990
17010
|
type: string
|
|
16991
17011
|
contract_address:
|
|
16992
17012
|
type: string
|
|
17013
|
+
description: Contract address, or Solana program id when interface_kind is solana_idl
|
|
16993
17014
|
abi_json:
|
|
16994
|
-
|
|
16995
|
-
|
|
16996
|
-
type:
|
|
17015
|
+
description: EVM ABI JSON array, or Solana IDL object when interface_kind is solana_idl
|
|
17016
|
+
oneOf:
|
|
17017
|
+
- type: array
|
|
17018
|
+
items:
|
|
17019
|
+
type: object
|
|
17020
|
+
- type: object
|
|
16997
17021
|
name:
|
|
16998
17022
|
type: string
|
|
16999
17023
|
description:
|
|
17000
17024
|
type: string
|
|
17001
17025
|
token_decimals:
|
|
17002
17026
|
type: integer
|
|
17027
|
+
interface_kind:
|
|
17028
|
+
type: string
|
|
17029
|
+
enum: [evm_abi, solana_idl]
|
|
17030
|
+
default: evm_abi
|
|
17003
17031
|
|
|
17004
17032
|
ContractAbiResponse:
|
|
17005
17033
|
type: object
|
|
@@ -17015,15 +17043,22 @@ components:
|
|
|
17015
17043
|
contract_address:
|
|
17016
17044
|
type: string
|
|
17017
17045
|
abi_json:
|
|
17018
|
-
|
|
17019
|
-
|
|
17020
|
-
type:
|
|
17046
|
+
description: EVM ABI JSON array, or Solana IDL object
|
|
17047
|
+
oneOf:
|
|
17048
|
+
- type: array
|
|
17049
|
+
items:
|
|
17050
|
+
type: object
|
|
17051
|
+
- type: object
|
|
17021
17052
|
name:
|
|
17022
17053
|
type: string
|
|
17023
17054
|
description:
|
|
17024
17055
|
type: string
|
|
17025
17056
|
token_decimals:
|
|
17026
17057
|
type: integer
|
|
17058
|
+
interface_kind:
|
|
17059
|
+
type: string
|
|
17060
|
+
enum: [evm_abi, solana_idl]
|
|
17061
|
+
default: evm_abi
|
|
17027
17062
|
created_by:
|
|
17028
17063
|
type: string
|
|
17029
17064
|
format: uuid
|
|
@@ -17046,6 +17081,61 @@ components:
|
|
|
17046
17081
|
# Consensus / Pending Approvals
|
|
17047
17082
|
# -------------------------------------------------------------------
|
|
17048
17083
|
|
|
17084
|
+
TxConditions:
|
|
17085
|
+
type: object
|
|
17086
|
+
description: |
|
|
17087
|
+
Signing-time conditions on access policies (all tiers).
|
|
17088
|
+
Ignored on secret reads. Evaluated when a TransactionContext is present.
|
|
17089
|
+
Fields are combined according to `match_mode` (default AND).
|
|
17090
|
+
additionalProperties: true
|
|
17091
|
+
properties:
|
|
17092
|
+
match_mode:
|
|
17093
|
+
type: string
|
|
17094
|
+
enum: [all, any]
|
|
17095
|
+
default: all
|
|
17096
|
+
description: |
|
|
17097
|
+
How individual condition fields are combined.
|
|
17098
|
+
"all" (default): every present field must match (AND).
|
|
17099
|
+
"any": at least one present field must match (OR).
|
|
17100
|
+
function_name_in:
|
|
17101
|
+
type: array
|
|
17102
|
+
items:
|
|
17103
|
+
type: string
|
|
17104
|
+
function_selector_in:
|
|
17105
|
+
type: array
|
|
17106
|
+
items:
|
|
17107
|
+
type: string
|
|
17108
|
+
erc20_amount_above:
|
|
17109
|
+
type: string
|
|
17110
|
+
value_above:
|
|
17111
|
+
type: string
|
|
17112
|
+
description: Native value threshold in gwei
|
|
17113
|
+
to_address_in:
|
|
17114
|
+
type: array
|
|
17115
|
+
items:
|
|
17116
|
+
type: string
|
|
17117
|
+
chain_in:
|
|
17118
|
+
type: array
|
|
17119
|
+
items:
|
|
17120
|
+
type: string
|
|
17121
|
+
intent_type_in:
|
|
17122
|
+
type: array
|
|
17123
|
+
items:
|
|
17124
|
+
type: string
|
|
17125
|
+
decode_failed:
|
|
17126
|
+
type: boolean
|
|
17127
|
+
program_id_in:
|
|
17128
|
+
type: array
|
|
17129
|
+
items:
|
|
17130
|
+
type: string
|
|
17131
|
+
deep_inspect:
|
|
17132
|
+
type: boolean
|
|
17133
|
+
default: false
|
|
17134
|
+
description: |
|
|
17135
|
+
When true, conditions are also evaluated against inner calls
|
|
17136
|
+
extracted from wrapper transactions (multicall, Safe execTransaction,
|
|
17137
|
+
ERC-4337 handleOps). A match on any inner call counts as an overall match.
|
|
17138
|
+
|
|
17049
17139
|
ConsensusTrigger:
|
|
17050
17140
|
type: object
|
|
17051
17141
|
required: [conditions, approval]
|
|
@@ -17063,6 +17153,89 @@ components:
|
|
|
17063
17153
|
self_approval_allowed:
|
|
17064
17154
|
type: boolean
|
|
17065
17155
|
default: false
|
|
17156
|
+
skip_when:
|
|
17157
|
+
type: array
|
|
17158
|
+
description: |
|
|
17159
|
+
When ALL conditions in ANY entry match, consensus is bypassed.
|
|
17160
|
+
Useful for exempting known-safe recipients or low-value transfers.
|
|
17161
|
+
items:
|
|
17162
|
+
$ref: "#/components/schemas/FlatConditionSet"
|
|
17163
|
+
require_when:
|
|
17164
|
+
type: array
|
|
17165
|
+
description: |
|
|
17166
|
+
Consensus is ONLY required when at least one entry matches.
|
|
17167
|
+
If set and none match, consensus is skipped entirely.
|
|
17168
|
+
items:
|
|
17169
|
+
$ref: "#/components/schemas/FlatConditionSet"
|
|
17170
|
+
deep_inspect:
|
|
17171
|
+
type: boolean
|
|
17172
|
+
default: false
|
|
17173
|
+
description: |
|
|
17174
|
+
When true, also evaluate conditions against inner calls extracted
|
|
17175
|
+
from wrapper transactions (multicall, Safe execTransaction,
|
|
17176
|
+
ERC-4337 handleOps).
|
|
17177
|
+
|
|
17178
|
+
FlatConditionSet:
|
|
17179
|
+
type: object
|
|
17180
|
+
description: |
|
|
17181
|
+
Flat condition set used by consensus composability. Each present field
|
|
17182
|
+
is AND-combined within the set. At least one field must be specified
|
|
17183
|
+
(unless `always` is true).
|
|
17184
|
+
additionalProperties: false
|
|
17185
|
+
properties:
|
|
17186
|
+
value_above:
|
|
17187
|
+
type: string
|
|
17188
|
+
description: Native value threshold in gwei (numeric string)
|
|
17189
|
+
chain_in:
|
|
17190
|
+
type: array
|
|
17191
|
+
items:
|
|
17192
|
+
type: string
|
|
17193
|
+
to_address_in:
|
|
17194
|
+
type: array
|
|
17195
|
+
items:
|
|
17196
|
+
type: string
|
|
17197
|
+
function_selector_in:
|
|
17198
|
+
type: array
|
|
17199
|
+
items:
|
|
17200
|
+
type: string
|
|
17201
|
+
erc20_amount_above:
|
|
17202
|
+
type: string
|
|
17203
|
+
description: ERC-20 raw token amount threshold (numeric string)
|
|
17204
|
+
intent_type_in:
|
|
17205
|
+
type: array
|
|
17206
|
+
items:
|
|
17207
|
+
type: string
|
|
17208
|
+
always:
|
|
17209
|
+
type: boolean
|
|
17210
|
+
description: When true, this entry always matches regardless of other fields
|
|
17211
|
+
|
|
17212
|
+
TimeWindow:
|
|
17213
|
+
type: object
|
|
17214
|
+
description: |
|
|
17215
|
+
Time window condition for policy evaluation. Used inside the policy
|
|
17216
|
+
`conditions` JSON to restrict when the policy is active.
|
|
17217
|
+
properties:
|
|
17218
|
+
start_hour:
|
|
17219
|
+
type: integer
|
|
17220
|
+
minimum: 0
|
|
17221
|
+
maximum: 23
|
|
17222
|
+
end_hour:
|
|
17223
|
+
type: integer
|
|
17224
|
+
minimum: 0
|
|
17225
|
+
maximum: 24
|
|
17226
|
+
days_of_week:
|
|
17227
|
+
type: array
|
|
17228
|
+
description: Days when policy is active (0=Sunday, 6=Saturday)
|
|
17229
|
+
items:
|
|
17230
|
+
type: integer
|
|
17231
|
+
minimum: 0
|
|
17232
|
+
maximum: 6
|
|
17233
|
+
timezone:
|
|
17234
|
+
type: string
|
|
17235
|
+
description: IANA timezone identifier (e.g. "America/New_York"). Defaults to UTC.
|
|
17236
|
+
cron_expr:
|
|
17237
|
+
type: string
|
|
17238
|
+
description: Cron expression (6-field with seconds) for fine-grained scheduling.
|
|
17066
17239
|
|
|
17067
17240
|
ConsensusCondition:
|
|
17068
17241
|
oneOf:
|