@1claw/sdk 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.
|
@@ -10451,10 +10451,19 @@ export interface components {
|
|
|
10451
10451
|
abis?: components["schemas"]["ContractAbiResponse"][];
|
|
10452
10452
|
};
|
|
10453
10453
|
/**
|
|
10454
|
-
* @description Signing-time
|
|
10454
|
+
* @description Signing-time conditions on access policies (all tiers).
|
|
10455
10455
|
* Ignored on secret reads. Evaluated when a TransactionContext is present.
|
|
10456
|
+
* Fields are combined according to `match_mode` (default AND).
|
|
10456
10457
|
*/
|
|
10457
10458
|
TxConditions: {
|
|
10459
|
+
/**
|
|
10460
|
+
* @description How individual condition fields are combined.
|
|
10461
|
+
* "all" (default): every present field must match (AND).
|
|
10462
|
+
* "any": at least one present field must match (OR).
|
|
10463
|
+
* @default all
|
|
10464
|
+
* @enum {string}
|
|
10465
|
+
*/
|
|
10466
|
+
match_mode: "all" | "any";
|
|
10458
10467
|
function_name_in?: string[];
|
|
10459
10468
|
function_selector_in?: string[];
|
|
10460
10469
|
erc20_amount_above?: string;
|
|
@@ -10465,6 +10474,13 @@ export interface components {
|
|
|
10465
10474
|
intent_type_in?: string[];
|
|
10466
10475
|
decode_failed?: boolean;
|
|
10467
10476
|
program_id_in?: string[];
|
|
10477
|
+
/**
|
|
10478
|
+
* @description When true, conditions are also evaluated against inner calls
|
|
10479
|
+
* extracted from wrapper transactions (multicall, Safe execTransaction,
|
|
10480
|
+
* ERC-4337 handleOps). A match on any inner call counts as an overall match.
|
|
10481
|
+
* @default false
|
|
10482
|
+
*/
|
|
10483
|
+
deep_inspect: boolean;
|
|
10468
10484
|
} & {
|
|
10469
10485
|
[key: string]: unknown;
|
|
10470
10486
|
};
|
|
@@ -10478,6 +10494,54 @@ export interface components {
|
|
|
10478
10494
|
expiry_secs: number;
|
|
10479
10495
|
/** @default false */
|
|
10480
10496
|
self_approval_allowed: boolean;
|
|
10497
|
+
/**
|
|
10498
|
+
* @description When ALL conditions in ANY entry match, consensus is bypassed.
|
|
10499
|
+
* Useful for exempting known-safe recipients or low-value transfers.
|
|
10500
|
+
*/
|
|
10501
|
+
skip_when?: components["schemas"]["FlatConditionSet"][];
|
|
10502
|
+
/**
|
|
10503
|
+
* @description Consensus is ONLY required when at least one entry matches.
|
|
10504
|
+
* If set and none match, consensus is skipped entirely.
|
|
10505
|
+
*/
|
|
10506
|
+
require_when?: components["schemas"]["FlatConditionSet"][];
|
|
10507
|
+
/**
|
|
10508
|
+
* @description When true, also evaluate conditions against inner calls extracted
|
|
10509
|
+
* from wrapper transactions (multicall, Safe execTransaction,
|
|
10510
|
+
* ERC-4337 handleOps).
|
|
10511
|
+
* @default false
|
|
10512
|
+
*/
|
|
10513
|
+
deep_inspect: boolean;
|
|
10514
|
+
};
|
|
10515
|
+
/**
|
|
10516
|
+
* @description Flat condition set used by consensus composability. Each present field
|
|
10517
|
+
* is AND-combined within the set. At least one field must be specified
|
|
10518
|
+
* (unless `always` is true).
|
|
10519
|
+
*/
|
|
10520
|
+
FlatConditionSet: {
|
|
10521
|
+
/** @description Native value threshold in gwei (numeric string) */
|
|
10522
|
+
value_above?: string;
|
|
10523
|
+
chain_in?: string[];
|
|
10524
|
+
to_address_in?: string[];
|
|
10525
|
+
function_selector_in?: string[];
|
|
10526
|
+
/** @description ERC-20 raw token amount threshold (numeric string) */
|
|
10527
|
+
erc20_amount_above?: string;
|
|
10528
|
+
intent_type_in?: string[];
|
|
10529
|
+
/** @description When true, this entry always matches regardless of other fields */
|
|
10530
|
+
always?: boolean;
|
|
10531
|
+
};
|
|
10532
|
+
/**
|
|
10533
|
+
* @description Time window condition for policy evaluation. Used inside the policy
|
|
10534
|
+
* `conditions` JSON to restrict when the policy is active.
|
|
10535
|
+
*/
|
|
10536
|
+
TimeWindow: {
|
|
10537
|
+
start_hour?: number;
|
|
10538
|
+
end_hour?: number;
|
|
10539
|
+
/** @description Days when policy is active (0=Sunday, 6=Saturday) */
|
|
10540
|
+
days_of_week?: number[];
|
|
10541
|
+
/** @description IANA timezone identifier (e.g. "America/New_York"). Defaults to UTC. */
|
|
10542
|
+
timezone?: string;
|
|
10543
|
+
/** @description Cron expression (6-field with seconds) for fine-grained scheduling. */
|
|
10544
|
+
cron_expr?: string;
|
|
10481
10545
|
};
|
|
10482
10546
|
ConsensusCondition: {
|
|
10483
10547
|
/** @enum {string} */
|