Interfaces
CreatePolicyOptions
Defined in: src/client/policies/policies.types.ts:53 Options for creating a Policy.Properties
idempotencyKey?
Report incorrect code
Copy
Ask AI
optional idempotencyKey: string;
policy
Report incorrect code
Copy
Ask AI
policy: {
description?: string;
rules: (
| {
action: "reject" | "accept";
criteria: (
| {
ethValue: string;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "ethValue";
}
| {
addresses: `0x${string}`[];
operator: "in" | "not in";
type: "evmAddress";
}
| {
changeCents: number;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "netUSDChange";
}
| {
abi: | "erc20"
| "erc721"
| "erc1155"
| readonly (
| {
}
| {
}
| { payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; }))[];
conditions: {
function: string;
params?: ...[];
}[];
type: "evmData";
})[];
operation: "signEvmTransaction";
}
| {
action: "reject" | "accept";
operation: "signEvmHash";
}
| {
action: "reject" | "accept";
criteria: {
match: string;
type: "evmMessage";
}[];
operation: "signEvmMessage";
}
| {
action: "reject" | "accept";
criteria: (
| {
conditions: (
| {
addresses: ...[];
operator: ... | ...;
path: string;
}
| {
operator: ... | ... | ... | ... | ...;
path: string;
value: string;
}
| {
match: string;
path: string;
})[];
type: "evmTypedDataField";
types: {
primaryType: string;
types: Record<string, {
name: ...;
type: ...;
}[]>;
};
}
| {
addresses: `0x${string}`[];
operator: "in" | "not in";
type: "evmTypedDataVerifyingContract";
})[];
operation: "signEvmTypedData";
}
| {
action: "reject" | "accept";
criteria: (
| {
ethValue: string;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "ethValue";
}
| {
addresses: `0x${string}`[];
operator: "in" | "not in";
type: "evmAddress";
}
| {
networks: (
| "base-sepolia"
| "base"
| "arbitrum"
| "optimism"
| "polygon"
| "avalanche"
| "ethereum"
| "ethereum-sepolia")[];
operator: "in" | "not in";
type: "evmNetwork";
}
| {
changeCents: number;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "netUSDChange";
}
| {
abi: | "erc20"
| "erc721"
| "erc1155"
| readonly (
| {
}
| {
}
| { payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; }))[];
conditions: {
function: string;
params?: ...[];
}[];
type: "evmData";
})[];
operation: "sendEvmTransaction";
}
| {
action: "reject" | "accept";
criteria: (
| {
ethValue: string;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "ethValue";
}
| {
addresses: `0x${string}`[];
operator: "in" | "not in";
type: "evmAddress";
}
| {
networks: (
| "base-sepolia"
| "base"
| "arbitrum"
| "optimism"
| "zora"
| "polygon"
| "bnb"
| "avalanche"
| "ethereum"
| "ethereum-sepolia")[];
operator: "in" | "not in";
type: "evmNetwork";
}
| {
changeCents: number;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "netUSDChange";
}
| {
abi: | "erc20"
| "erc721"
| "erc1155"
| readonly (
| {
}
| {
}
| { payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; }))[];
conditions: {
function: string;
params?: ...[];
}[];
type: "evmData";
})[];
operation: "prepareUserOperation";
}
| {
action: "reject" | "accept";
criteria: (
| {
ethValue: string;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "ethValue";
}
| {
addresses: `0x${string}`[];
operator: "in" | "not in";
type: "evmAddress";
}
| {
changeCents: number;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "netUSDChange";
}
| {
abi: | "erc20"
| "erc721"
| "erc1155"
| readonly (
| {
}
| {
}
| { payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; }))[];
conditions: {
function: string;
params?: ...[];
}[];
type: "evmData";
})[];
operation: "sendUserOperation";
}
| {
action: "reject" | "accept";
criteria: (
| {
addresses: string[];
operator: "in" | "not in";
type: "solAddress";
}
| {
operator: ">" | ">=" | "<" | "<=" | "==";
solValue: string;
type: "solValue";
}
| {
addresses: string[];
operator: "in" | "not in";
type: "splAddress";
}
| {
operator: ">" | ">=" | "<" | "<=" | "==";
splValue: string;
type: "splValue";
}
| {
addresses: string[];
operator: "in" | "not in";
type: "mintAddress";
}
| {
conditions: {
instruction: string;
params?: ...[];
}[];
idls: (
| "SystemProgram"
| "TokenProgram"
| "AssociatedTokenProgram"
| objectOutputType<{
address: ...;
instructions: ...;
}, ZodTypeAny, "passthrough">)[];
type: "solData";
}
| {
operator: "in" | "not in";
programIds: string[];
type: "programId";
})[];
operation: "signSolTransaction";
}
| {
action: "reject" | "accept";
criteria: (
| {
addresses: string[];
operator: "in" | "not in";
type: "solAddress";
}
| {
operator: ">" | ">=" | "<" | "<=" | "==";
solValue: string;
type: "solValue";
}
| {
addresses: string[];
operator: "in" | "not in";
type: "splAddress";
}
| {
operator: ">" | ">=" | "<" | "<=" | "==";
splValue: string;
type: "splValue";
}
| {
addresses: string[];
operator: "in" | "not in";
type: "mintAddress";
}
| {
conditions: {
instruction: string;
params?: ...[];
}[];
idls: (
| "SystemProgram"
| "TokenProgram"
| "AssociatedTokenProgram"
| objectOutputType<{
address: ...;
instructions: ...;
}, ZodTypeAny, "passthrough">)[];
type: "solData";
}
| {
operator: "in" | "not in";
programIds: string[];
type: "programId";
}
| {
networks: ("solana-devnet" | "solana")[];
operator: "in" | "not in";
type: "solNetwork";
})[];
operation: "sendSolTransaction";
}
| {
action: "reject" | "accept";
criteria: {
match: string;
type: "solMessage";
}[];
operation: "signSolMessage";
})[];
scope: "project" | "account";
};
description?
Report incorrect code
Copy
Ask AI
optional description: string;
rules
Report incorrect code
Copy
Ask AI
rules: (
| {
action: "reject" | "accept";
criteria: (
| {
ethValue: string;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "ethValue";
}
| {
addresses: `0x${string}`[];
operator: "in" | "not in";
type: "evmAddress";
}
| {
changeCents: number;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "netUSDChange";
}
| {
abi: | "erc20"
| "erc721"
| "erc1155"
| readonly (
| {
}
| {
}
| { payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; }))[];
conditions: {
function: string;
params?: ...[];
}[];
type: "evmData";
})[];
operation: "signEvmTransaction";
}
| {
action: "reject" | "accept";
operation: "signEvmHash";
}
| {
action: "reject" | "accept";
criteria: {
match: string;
type: "evmMessage";
}[];
operation: "signEvmMessage";
}
| {
action: "reject" | "accept";
criteria: (
| {
conditions: (
| {
addresses: ...[];
operator: ... | ...;
path: string;
}
| {
operator: ... | ... | ... | ... | ...;
path: string;
value: string;
}
| {
match: string;
path: string;
})[];
type: "evmTypedDataField";
types: {
primaryType: string;
types: Record<string, {
name: ...;
type: ...;
}[]>;
};
}
| {
addresses: `0x${string}`[];
operator: "in" | "not in";
type: "evmTypedDataVerifyingContract";
})[];
operation: "signEvmTypedData";
}
| {
action: "reject" | "accept";
criteria: (
| {
ethValue: string;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "ethValue";
}
| {
addresses: `0x${string}`[];
operator: "in" | "not in";
type: "evmAddress";
}
| {
networks: (
| "base-sepolia"
| "base"
| "arbitrum"
| "optimism"
| "polygon"
| "avalanche"
| "ethereum"
| "ethereum-sepolia")[];
operator: "in" | "not in";
type: "evmNetwork";
}
| {
changeCents: number;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "netUSDChange";
}
| {
abi: | "erc20"
| "erc721"
| "erc1155"
| readonly (
| {
}
| {
}
| { payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; }))[];
conditions: {
function: string;
params?: ...[];
}[];
type: "evmData";
})[];
operation: "sendEvmTransaction";
}
| {
action: "reject" | "accept";
criteria: (
| {
ethValue: string;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "ethValue";
}
| {
addresses: `0x${string}`[];
operator: "in" | "not in";
type: "evmAddress";
}
| {
networks: (
| "base-sepolia"
| "base"
| "arbitrum"
| "optimism"
| "zora"
| "polygon"
| "bnb"
| "avalanche"
| "ethereum"
| "ethereum-sepolia")[];
operator: "in" | "not in";
type: "evmNetwork";
}
| {
changeCents: number;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "netUSDChange";
}
| {
abi: | "erc20"
| "erc721"
| "erc1155"
| readonly (
| {
}
| {
}
| { payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; }))[];
conditions: {
function: string;
params?: ...[];
}[];
type: "evmData";
})[];
operation: "prepareUserOperation";
}
| {
action: "reject" | "accept";
criteria: (
| {
ethValue: string;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "ethValue";
}
| {
addresses: `0x${string}`[];
operator: "in" | "not in";
type: "evmAddress";
}
| {
changeCents: number;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "netUSDChange";
}
| {
abi: | "erc20"
| "erc721"
| "erc1155"
| readonly (
| {
}
| {
}
| { payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; }))[];
conditions: {
function: string;
params?: ...[];
}[];
type: "evmData";
})[];
operation: "sendUserOperation";
}
| {
action: "reject" | "accept";
criteria: (
| {
addresses: string[];
operator: "in" | "not in";
type: "solAddress";
}
| {
operator: ">" | ">=" | "<" | "<=" | "==";
solValue: string;
type: "solValue";
}
| {
addresses: string[];
operator: "in" | "not in";
type: "splAddress";
}
| {
operator: ">" | ">=" | "<" | "<=" | "==";
splValue: string;
type: "splValue";
}
| {
addresses: string[];
operator: "in" | "not in";
type: "mintAddress";
}
| {
conditions: {
instruction: string;
params?: ...[];
}[];
idls: (
| "SystemProgram"
| "TokenProgram"
| "AssociatedTokenProgram"
| objectOutputType<{
address: ...;
instructions: ...;
}, ZodTypeAny, "passthrough">)[];
type: "solData";
}
| {
operator: "in" | "not in";
programIds: string[];
type: "programId";
})[];
operation: "signSolTransaction";
}
| {
action: "reject" | "accept";
criteria: (
| {
addresses: string[];
operator: "in" | "not in";
type: "solAddress";
}
| {
operator: ">" | ">=" | "<" | "<=" | "==";
solValue: string;
type: "solValue";
}
| {
addresses: string[];
operator: "in" | "not in";
type: "splAddress";
}
| {
operator: ">" | ">=" | "<" | "<=" | "==";
splValue: string;
type: "splValue";
}
| {
addresses: string[];
operator: "in" | "not in";
type: "mintAddress";
}
| {
conditions: {
instruction: string;
params?: ...[];
}[];
idls: (
| "SystemProgram"
| "TokenProgram"
| "AssociatedTokenProgram"
| objectOutputType<{
address: ...;
instructions: ...;
}, ZodTypeAny, "passthrough">)[];
type: "solData";
}
| {
operator: "in" | "not in";
programIds: string[];
type: "programId";
}
| {
networks: ("solana-devnet" | "solana")[];
operator: "in" | "not in";
type: "solNetwork";
})[];
operation: "sendSolTransaction";
}
| {
action: "reject" | "accept";
criteria: {
match: string;
type: "solMessage";
}[];
operation: "signSolMessage";
})[];
scope
Report incorrect code
Copy
Ask AI
scope: "project" | "account" = PolicyScopeEnum;
DeletePolicyOptions
Defined in: src/client/policies/policies.types.ts:80 Options for deleting a Policy.Properties
id
Report incorrect code
Copy
Ask AI
id: string;
idempotencyKey?
Report incorrect code
Copy
Ask AI
optional idempotencyKey: string;
GetPolicyByIdOptions
Defined in: src/client/policies/policies.types.ts:69 Options for retrieving a Policy by ID.Properties
id
Report incorrect code
Copy
Ask AI
id: string;
ListPoliciesOptions
Defined in: src/client/policies/policies.types.ts:26Properties
pageSize?
Report incorrect code
Copy
Ask AI
optional pageSize: number;
pageToken?
Report incorrect code
Copy
Ask AI
optional pageToken: string;
scope?
Report incorrect code
Copy
Ask AI
optional scope: "project" | "account";
project
, the response will include exactly one policy, which is the project-level policy. If account
, the response will include all account-level policies for the developer’s CDP Project.
ListPoliciesResult
Defined in: src/client/policies/policies.types.ts:40 The result of listing policies.Properties
nextPageToken?
Report incorrect code
Copy
Ask AI
optional nextPageToken: string;
policies
Report incorrect code
Copy
Ask AI
policies: Policy[];
UpdatePolicyOptions
Defined in: src/client/policies/policies.types.ts:96 Options for updating a Policy.Properties
id
Report incorrect code
Copy
Ask AI
id: string;
idempotencyKey?
Report incorrect code
Copy
Ask AI
optional idempotencyKey: string;
policy
Report incorrect code
Copy
Ask AI
policy: {
description?: string;
rules: (
| {
action: "reject" | "accept";
criteria: (
| {
ethValue: string;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "ethValue";
}
| {
addresses: `0x${string}`[];
operator: "in" | "not in";
type: "evmAddress";
}
| {
changeCents: number;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "netUSDChange";
}
| {
abi: | "erc20"
| "erc721"
| "erc1155"
| readonly (
| {
}
| {
}
| { payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; }))[];
conditions: {
function: string;
params?: ...[];
}[];
type: "evmData";
})[];
operation: "signEvmTransaction";
}
| {
action: "reject" | "accept";
operation: "signEvmHash";
}
| {
action: "reject" | "accept";
criteria: {
match: string;
type: "evmMessage";
}[];
operation: "signEvmMessage";
}
| {
action: "reject" | "accept";
criteria: (
| {
conditions: (
| {
addresses: ...[];
operator: ... | ...;
path: string;
}
| {
operator: ... | ... | ... | ... | ...;
path: string;
value: string;
}
| {
match: string;
path: string;
})[];
type: "evmTypedDataField";
types: {
primaryType: string;
types: Record<string, {
name: ...;
type: ...;
}[]>;
};
}
| {
addresses: `0x${string}`[];
operator: "in" | "not in";
type: "evmTypedDataVerifyingContract";
})[];
operation: "signEvmTypedData";
}
| {
action: "reject" | "accept";
criteria: (
| {
ethValue: string;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "ethValue";
}
| {
addresses: `0x${string}`[];
operator: "in" | "not in";
type: "evmAddress";
}
| {
networks: (
| "base-sepolia"
| "base"
| "arbitrum"
| "optimism"
| "polygon"
| "avalanche"
| "ethereum"
| "ethereum-sepolia")[];
operator: "in" | "not in";
type: "evmNetwork";
}
| {
changeCents: number;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "netUSDChange";
}
| {
abi: | "erc20"
| "erc721"
| "erc1155"
| readonly (
| {
}
| {
}
| { payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; }))[];
conditions: {
function: string;
params?: ...[];
}[];
type: "evmData";
})[];
operation: "sendEvmTransaction";
}
| {
action: "reject" | "accept";
criteria: (
| {
ethValue: string;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "ethValue";
}
| {
addresses: `0x${string}`[];
operator: "in" | "not in";
type: "evmAddress";
}
| {
networks: (
| "base-sepolia"
| "base"
| "arbitrum"
| "optimism"
| "zora"
| "polygon"
| "bnb"
| "avalanche"
| "ethereum"
| "ethereum-sepolia")[];
operator: "in" | "not in";
type: "evmNetwork";
}
| {
changeCents: number;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "netUSDChange";
}
| {
abi: | "erc20"
| "erc721"
| "erc1155"
| readonly (
| {
}
| {
}
| { payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; }))[];
conditions: {
function: string;
params?: ...[];
}[];
type: "evmData";
})[];
operation: "prepareUserOperation";
}
| {
action: "reject" | "accept";
criteria: (
| {
ethValue: string;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "ethValue";
}
| {
addresses: `0x${string}`[];
operator: "in" | "not in";
type: "evmAddress";
}
| {
changeCents: number;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "netUSDChange";
}
| {
abi: | "erc20"
| "erc721"
| "erc1155"
| readonly (
| {
}
| {
}
| { payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; }))[];
conditions: {
function: string;
params?: ...[];
}[];
type: "evmData";
})[];
operation: "sendUserOperation";
}
| {
action: "reject" | "accept";
criteria: (
| {
addresses: string[];
operator: "in" | "not in";
type: "solAddress";
}
| {
operator: ">" | ">=" | "<" | "<=" | "==";
solValue: string;
type: "solValue";
}
| {
addresses: string[];
operator: "in" | "not in";
type: "splAddress";
}
| {
operator: ">" | ">=" | "<" | "<=" | "==";
splValue: string;
type: "splValue";
}
| {
addresses: string[];
operator: "in" | "not in";
type: "mintAddress";
}
| {
conditions: {
instruction: string;
params?: ...[];
}[];
idls: (
| "SystemProgram"
| "TokenProgram"
| "AssociatedTokenProgram"
| objectOutputType<{
address: ...;
instructions: ...;
}, ZodTypeAny, "passthrough">)[];
type: "solData";
}
| {
operator: "in" | "not in";
programIds: string[];
type: "programId";
})[];
operation: "signSolTransaction";
}
| {
action: "reject" | "accept";
criteria: (
| {
addresses: string[];
operator: "in" | "not in";
type: "solAddress";
}
| {
operator: ">" | ">=" | "<" | "<=" | "==";
solValue: string;
type: "solValue";
}
| {
addresses: string[];
operator: "in" | "not in";
type: "splAddress";
}
| {
operator: ">" | ">=" | "<" | "<=" | "==";
splValue: string;
type: "splValue";
}
| {
addresses: string[];
operator: "in" | "not in";
type: "mintAddress";
}
| {
conditions: {
instruction: string;
params?: ...[];
}[];
idls: (
| "SystemProgram"
| "TokenProgram"
| "AssociatedTokenProgram"
| objectOutputType<{
address: ...;
instructions: ...;
}, ZodTypeAny, "passthrough">)[];
type: "solData";
}
| {
operator: "in" | "not in";
programIds: string[];
type: "programId";
}
| {
networks: ("solana-devnet" | "solana")[];
operator: "in" | "not in";
type: "solNetwork";
})[];
operation: "sendSolTransaction";
}
| {
action: "reject" | "accept";
criteria: {
match: string;
type: "solMessage";
}[];
operation: "signSolMessage";
})[];
};
description?
Report incorrect code
Copy
Ask AI
optional description: string;
rules
Report incorrect code
Copy
Ask AI
rules: (
| {
action: "reject" | "accept";
criteria: (
| {
ethValue: string;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "ethValue";
}
| {
addresses: `0x${string}`[];
operator: "in" | "not in";
type: "evmAddress";
}
| {
changeCents: number;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "netUSDChange";
}
| {
abi: | "erc20"
| "erc721"
| "erc1155"
| readonly (
| {
}
| {
}
| { payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; }))[];
conditions: {
function: string;
params?: ...[];
}[];
type: "evmData";
})[];
operation: "signEvmTransaction";
}
| {
action: "reject" | "accept";
operation: "signEvmHash";
}
| {
action: "reject" | "accept";
criteria: {
match: string;
type: "evmMessage";
}[];
operation: "signEvmMessage";
}
| {
action: "reject" | "accept";
criteria: (
| {
conditions: (
| {
addresses: ...[];
operator: ... | ...;
path: string;
}
| {
operator: ... | ... | ... | ... | ...;
path: string;
value: string;
}
| {
match: string;
path: string;
})[];
type: "evmTypedDataField";
types: {
primaryType: string;
types: Record<string, {
name: ...;
type: ...;
}[]>;
};
}
| {
addresses: `0x${string}`[];
operator: "in" | "not in";
type: "evmTypedDataVerifyingContract";
})[];
operation: "signEvmTypedData";
}
| {
action: "reject" | "accept";
criteria: (
| {
ethValue: string;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "ethValue";
}
| {
addresses: `0x${string}`[];
operator: "in" | "not in";
type: "evmAddress";
}
| {
networks: (
| "base-sepolia"
| "base"
| "arbitrum"
| "optimism"
| "polygon"
| "avalanche"
| "ethereum"
| "ethereum-sepolia")[];
operator: "in" | "not in";
type: "evmNetwork";
}
| {
changeCents: number;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "netUSDChange";
}
| {
abi: | "erc20"
| "erc721"
| "erc1155"
| readonly (
| {
}
| {
}
| { payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; }))[];
conditions: {
function: string;
params?: ...[];
}[];
type: "evmData";
})[];
operation: "sendEvmTransaction";
}
| {
action: "reject" | "accept";
criteria: (
| {
ethValue: string;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "ethValue";
}
| {
addresses: `0x${string}`[];
operator: "in" | "not in";
type: "evmAddress";
}
| {
networks: (
| "base-sepolia"
| "base"
| "arbitrum"
| "optimism"
| "zora"
| "polygon"
| "bnb"
| "avalanche"
| "ethereum"
| "ethereum-sepolia")[];
operator: "in" | "not in";
type: "evmNetwork";
}
| {
changeCents: number;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "netUSDChange";
}
| {
abi: | "erc20"
| "erc721"
| "erc1155"
| readonly (
| {
}
| {
}
| { payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; }))[];
conditions: {
function: string;
params?: ...[];
}[];
type: "evmData";
})[];
operation: "prepareUserOperation";
}
| {
action: "reject" | "accept";
criteria: (
| {
ethValue: string;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "ethValue";
}
| {
addresses: `0x${string}`[];
operator: "in" | "not in";
type: "evmAddress";
}
| {
changeCents: number;
operator: ">" | ">=" | "<" | "<=" | "==";
type: "netUSDChange";
}
| {
abi: | "erc20"
| "erc721"
| "erc1155"
| readonly (
| {
}
| {
}
| { payable?: boolean | undefined; constant?: boolean | undefined; gas?: number | undefined; } & ({ inputs: readonly AbiParameter[]; outputs: readonly AbiParameter[]; type: "function"; name: string; stateMutability: "pure" | ... 2 more ... | "payable"; } | { ...; } | { ...; } | { ...; }))[];
conditions: {
function: string;
params?: ...[];
}[];
type: "evmData";
})[];
operation: "sendUserOperation";
}
| {
action: "reject" | "accept";
criteria: (
| {
addresses: string[];
operator: "in" | "not in";
type: "solAddress";
}
| {
operator: ">" | ">=" | "<" | "<=" | "==";
solValue: string;
type: "solValue";
}
| {
addresses: string[];
operator: "in" | "not in";
type: "splAddress";
}
| {
operator: ">" | ">=" | "<" | "<=" | "==";
splValue: string;
type: "splValue";
}
| {
addresses: string[];
operator: "in" | "not in";
type: "mintAddress";
}
| {
conditions: {
instruction: string;
params?: ...[];
}[];
idls: (
| "SystemProgram"
| "TokenProgram"
| "AssociatedTokenProgram"
| objectOutputType<{
address: ...;
instructions: ...;
}, ZodTypeAny, "passthrough">)[];
type: "solData";
}
| {
operator: "in" | "not in";
programIds: string[];
type: "programId";
})[];
operation: "signSolTransaction";
}
| {
action: "reject" | "accept";
criteria: (
| {
addresses: string[];
operator: "in" | "not in";
type: "solAddress";
}
| {
operator: ">" | ">=" | "<" | "<=" | "==";
solValue: string;
type: "solValue";
}
| {
addresses: string[];
operator: "in" | "not in";
type: "splAddress";
}
| {
operator: ">" | ">=" | "<" | "<=" | "==";
splValue: string;
type: "splValue";
}
| {
addresses: string[];
operator: "in" | "not in";
type: "mintAddress";
}
| {
conditions: {
instruction: string;
params?: ...[];
}[];
idls: (
| "SystemProgram"
| "TokenProgram"
| "AssociatedTokenProgram"
| objectOutputType<{
address: ...;
instructions: ...;
}, ZodTypeAny, "passthrough">)[];
type: "solData";
}
| {
operator: "in" | "not in";
programIds: string[];
type: "programId";
}
| {
networks: ("solana-devnet" | "solana")[];
operator: "in" | "not in";
type: "solNetwork";
})[];
operation: "sendSolTransaction";
}
| {
action: "reject" | "accept";
criteria: {
match: string;
type: "solMessage";
}[];
operation: "signSolMessage";
})[];
Type Aliases
PoliciesClientInterface
Report incorrect code
Copy
Ask AI
type PoliciesClientInterface = Omit<typeof OpenApiPoliciesMethods,
| "createPolicy"
| "listPolicies"
| "getPolicyById"
| "deletePolicy"
| "updatePolicy"> & {
createPolicy: (options: CreatePolicyOptions) => Promise<Policy>;
deletePolicy: (options: DeletePolicyOptions) => Promise<void>;
getPolicyById: (options: GetPolicyByIdOptions) => Promise<Policy>;
listPolicies: (options: ListPoliciesOptions) => Promise<ListPoliciesResult>;
updatePolicy: (options: UpdatePolicyOptions) => Promise<Policy>;
};
Type declaration
createPolicy()
Report incorrect code
Copy
Ask AI
createPolicy: (options: CreatePolicyOptions) => Promise<Policy>;
Parameters
options
CreatePolicyOptions
Returns
Promise
<Policy
>
deletePolicy()
Report incorrect code
Copy
Ask AI
deletePolicy: (options: DeletePolicyOptions) => Promise<void>;
Parameters
options
DeletePolicyOptions
Returns
Promise
<void
>
getPolicyById()
Report incorrect code
Copy
Ask AI
getPolicyById: (options: GetPolicyByIdOptions) => Promise<Policy>;
Parameters
options
GetPolicyByIdOptions
Returns
Promise
<Policy
>
listPolicies()
Report incorrect code
Copy
Ask AI
listPolicies: (options: ListPoliciesOptions) => Promise<ListPoliciesResult>;
Parameters
options
ListPoliciesOptions
Returns
Promise
<ListPoliciesResult
>
updatePolicy()
Report incorrect code
Copy
Ask AI
updatePolicy: (options: UpdatePolicyOptions) => Promise<Policy>;
Parameters
options
UpdatePolicyOptions
Returns
Promise
<Policy
>