PolicyEngineClient class abstract

Policy rules for embedded wallets, signer share sets, and business accounts. All operations use REST and do not start the WaaS engine. Implemented by PolicyEngineClientImpl; hosts can substitute this interface in tests.

Implementers

Constructors

PolicyEngineClient()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

batchAccountPolicyRules(String businessAccountId, List<PolicyLayerRuleOperation> operations) → Future<WaasPolicyLayerResponse>
Applies policy rule operations to a business account in one atomic batch.
batchSignerPolicyRules(String chain, String accountAddress, List<PolicyLayerRuleOperation> operations, [String? shareSetId]) → Future<WaasPolicyLayerResponse>
Applies policy rule operations to a signer in one atomic batch.
batchWalletPolicyRules(String chain, String accountAddress, List<PolicyLayerRuleOperation> operations) → Future<WaasPolicyLayerResponse>
Applies policy rule operations to an embedded wallet in one atomic batch.
buildAllowPolicyRule(PolicyRuleInput rule) → WaasPolicyRule
Builds a policy rule with ruleType set to 'allow'.
buildDenyPolicyRule(PolicyRuleInput rule) → WaasPolicyRule
Builds a policy rule with ruleType set to 'deny'.
getAccountPolicyLayer(String businessAccountId) → Future<WaasPolicyLayerResponse>
Gets a business account's policy layer.
getSignerPolicyLayer(String chain, String accountAddress, [String? shareSetId]) → Future<WaasPolicyLayerResponse>
Gets the caller's active signer policy layer.
getWalletPolicyLayer(String chain, String accountAddress) → Future<WaasPolicyLayerResponse>
Gets an embedded wallet's policy layer.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAccountPolicyRule(String businessAccountId, String ruleId) → Future<WaasPolicyLayerResponse>
Removes one rule from a business-account policy layer.
removeSignerPolicyRule(String chain, String accountAddress, String ruleId, [String? shareSetId]) → Future<WaasPolicyLayerResponse>
Removes one rule from a signer policy layer.
removeWalletPolicyRule(String chain, String accountAddress, String ruleId) → Future<WaasPolicyLayerResponse>
Removes one rule from an embedded-wallet policy layer.
toString() → String
A string representation of this object.
inherited
updateAccountPolicyLayer(String businessAccountId, BusinessAccountPolicyLayerEdit request, [WaasPolicyLayerResponse? layer, String? proposalId, bool? autoExecute, SignedBusinessAccountIntent? signedIntent]) → Future<BusinessAccountPolicyLayerUpdateResult>
Updates a business-account policy layer, signing an updatePolicyLayer intent when the layer carries a digest and RBAC version, and returning actionRequired when approvals are needed.
upsertAccountPolicyRule(String businessAccountId, WaasPolicyRule rule) → Future<WaasPolicyLayerResponse>
Creates or updates one rule on a business-account policy layer.
upsertSignerPolicyRule(String chain, String accountAddress, WaasPolicyRule rule, [String? shareSetId]) → Future<WaasPolicyLayerResponse>
Creates or updates one rule on a signer policy layer.
upsertWalletPolicyRule(String chain, String accountAddress, WaasPolicyRule rule) → Future<WaasPolicyLayerResponse>
Creates or updates one rule on an embedded-wallet policy layer.

Operators

operator ==(Object other) → bool
The equality operator.
inherited