internal/policy_engine library

Classes

BusinessAccountApprovalRequirement
Approval progress for one governance rule.
BusinessAccountPolicyLayerActionRequired
A proposed business-account policy-layer update that requires approvals.
BusinessAccountPolicyLayerEdit
A business-account policy-layer edit. Approvers sign this operation when the account governs updatePolicyLayer.
BusinessAccountPolicyLayerUpdateResult
An updated business-account policy layer or an action that needs approval.
BusinessAccountPolicyLayerUpdateResultActionRequired
BusinessAccountPolicyLayerUpdateResultLayer
PolicyApprovalRequirement
A signing approval quorum carried by a policy rule.
PolicyEngineClient
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.
PolicyEngineClientImpl
Policy rules for embedded wallets, signer share sets, and business accounts. All operations use REST and do not start the WaaS engine. Instances share the root client's state. NOTE: not yet thread-safe.
PolicyEngineExtension
Registers PolicyEngineClientImpl on the root client. Access it through client.policyEngine.
PolicyLayerRuleOperation
One upsert or remove operation in an atomic policy-layer batch.
PolicyRuleInput
The caller-supplied fields for a policy rule. A rule builder supplies ruleType.
PolicyScope
A concrete policy-layer target. Account targets require businessAccountId. Wallet targets require walletId. Signer targets require walletId and can include shareSetId.
SignedBusinessAccountIntent
An original intent and its session-key signature.
WaasPolicyLayerResponse
A wallet-, signer-, or account-policy-Layer, as it stands right after a read or an upsert.
WaasPolicyRule
One rule on a wallet-, signer-, or account-policy-Layer (dynamic-labs sdk-api-core's WaasPolicyRule) — used by request bodies. Response entries use WaasPolicyLayerRule, which can also be a deletion marker. Omit ruleId to create a new rule (the enclave mints one); pass an existing id to update it in place. Deliberately does NOT model contractAbi (Array<object> — arbitrary ABI JSON, no fixed shape), functionName, or argumentConstraints (WaasPolicyArgumentConstraint.value is untyped any) — the IR has no arbitrary-object/map-of-unknown-shape type for any of the three, matching this DSL's established convention for such gaps (see SdkUser's metadata field). Use the dashboard or a direct API call for contract-call-scoped rules; every address/value/export/revocation/signing rule built through this DSL is unaffected.
WaasPolicyRuleOperationRestrictions
Operation-level restrictions carried on a WaasPolicyRule — wallet-wide, independent of the rule's own chain/chainIds scope.
WaasPolicyRuleValueLimit
Value cap carried on a WaasPolicyRule. asset omitted means the native asset of the rule's own chain; maxPerCall/totalLimit are decimal strings (smallest unit, e.g. wei) — same convention as every other on-chain amount in this DSL, to survive round-tripping without precision loss.

Enums

PolicyLayerUpdateOperation
The edit to apply to a policy layer.
PolicyRuleOperation
The operation to apply to one rule in a policy-layer batch.
PolicyScopeTarget
The policy layer that an operation targets.

Extensions

DynamicClientPolicyEngine on DynamicClient
Convenience accessor: fetches the installed PolicyEngineClientImpl. Throws a clear error instead of a raw getExtension<PolicyEngineClientImpl>()! null-check if usePolicyEngine(...) was never called.
PolicyEngineBuilder on DynamicClient
Installs PolicyEngine and returns the client for chaining.