@1claw/openapi-spec 0.48.2 → 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 +110 -1
- package/openapi.yaml +100 -1
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -25938,9 +25938,18 @@
|
|
|
25938
25938
|
},
|
|
25939
25939
|
"TxConditions": {
|
|
25940
25940
|
"type": "object",
|
|
25941
|
-
"description": "Signing-time
|
|
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
25942
|
"additionalProperties": true,
|
|
25943
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
|
+
},
|
|
25944
25953
|
"function_name_in": {
|
|
25945
25954
|
"type": "array",
|
|
25946
25955
|
"items": {
|
|
@@ -25986,6 +25995,11 @@
|
|
|
25986
25995
|
"items": {
|
|
25987
25996
|
"type": "string"
|
|
25988
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"
|
|
25989
26003
|
}
|
|
25990
26004
|
}
|
|
25991
26005
|
},
|
|
@@ -26013,6 +26027,101 @@
|
|
|
26013
26027
|
"self_approval_allowed": {
|
|
26014
26028
|
"type": "boolean",
|
|
26015
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."
|
|
26016
26125
|
}
|
|
26017
26126
|
}
|
|
26018
26127
|
},
|
package/openapi.yaml
CHANGED
|
@@ -17084,10 +17084,19 @@ components:
|
|
|
17084
17084
|
TxConditions:
|
|
17085
17085
|
type: object
|
|
17086
17086
|
description: |
|
|
17087
|
-
Signing-time
|
|
17087
|
+
Signing-time conditions on access policies (all tiers).
|
|
17088
17088
|
Ignored on secret reads. Evaluated when a TransactionContext is present.
|
|
17089
|
+
Fields are combined according to `match_mode` (default AND).
|
|
17089
17090
|
additionalProperties: true
|
|
17090
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).
|
|
17091
17100
|
function_name_in:
|
|
17092
17101
|
type: array
|
|
17093
17102
|
items:
|
|
@@ -17119,6 +17128,13 @@ components:
|
|
|
17119
17128
|
type: array
|
|
17120
17129
|
items:
|
|
17121
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.
|
|
17122
17138
|
|
|
17123
17139
|
ConsensusTrigger:
|
|
17124
17140
|
type: object
|
|
@@ -17137,6 +17153,89 @@ components:
|
|
|
17137
17153
|
self_approval_allowed:
|
|
17138
17154
|
type: boolean
|
|
17139
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.
|
|
17140
17239
|
|
|
17141
17240
|
ConsensusCondition:
|
|
17142
17241
|
oneOf:
|