Skip to content

Improve api for Caveat Enforcer actions and Client #209

Improve api for Caveat Enforcer actions and Client

Improve api for Caveat Enforcer actions and Client #209

Triggered via pull request August 7, 2025 00:04
Status Failure
Total duration 3m 46s
Artifacts

main.yml

on: pull_request
Check workflows
25s
Check workflows
Matrix: Build, lint, and test / Turbo Pipeline
Matrix: End to end tests / Turbo Pipeline
Code scanner  /  Run security scan
3m 12s
Code scanner / Run security scan
All jobs completed
0s
All jobs completed
All jobs pass
2s
All jobs pass
Determine whether this is a release merge commit
0s
Determine whether this is a release merge commit
Publish release  /  publish-release
Publish release / publish-release
Publish release  /  publish-npm-dry-run
Publish release / publish-npm-dry-run
Publish release  /  publish-npm
Publish release / publish-npm
Fit to window
Zoom out
Zoom in

Annotations

65 errors and 24 warnings
End to end tests / Turbo Pipeline (22.x)
Module '"../../src"' has no exported member 'getMultiTokenPeriodEnforcerAvailableAmount'.
End to end tests / Turbo Pipeline (22.x)
Object is possibly 'undefined'.
End to end tests / Turbo Pipeline (22.x)
Argument of type '{ caveats: { enforcer: string; terms: string; args: string; }[]; delegate: `0x${string}`; delegator: `0x${string}`; authority: `0x${string}`; salt: `0x${string}`; signature: `0x${string}`; }' is not assignable to parameter of type 'DelegationStruct<`0x${string}` | Uint8Array>'.
End to end tests / Turbo Pipeline (22.x)
Type '{ caveats: { enforcer: string; terms: string; args: string; }[]; delegate: `0x${string}`; delegator: `0x${string}`; authority: `0x${string}`; salt: `0x${string}`; signature: `0x${string}`; }' is not assignable to type 'Delegation'.
End to end tests / Turbo Pipeline (22.x)
Object is possibly 'undefined'.
End to end tests / Turbo Pipeline (22.x)
Object is possibly 'undefined'.
End to end tests / Turbo Pipeline (22.x)
Argument of type 'Delegation' is not assignable to parameter of type 'DelegationStruct<`0x${string}` | Uint8Array>'.
End to end tests / Turbo Pipeline (22.x)
Object is possibly 'undefined'.
End to end tests / Turbo Pipeline (22.x)
Object is possibly 'undefined'.
End to end tests / Turbo Pipeline (22.x)
Module '"../delegation"' declares 'hashDelegation' locally, but it is not exported.
Build, lint, and test / Turbo Pipeline (22.x)
Module '"../../src"' has no exported member 'getMultiTokenPeriodEnforcerAvailableAmount'.
Build, lint, and test / Turbo Pipeline (22.x)
Object is possibly 'undefined'.
Build, lint, and test / Turbo Pipeline (22.x)
Argument of type '{ caveats: { enforcer: string; terms: string; args: string; }[]; delegate: `0x${string}`; delegator: `0x${string}`; authority: `0x${string}`; salt: `0x${string}`; signature: `0x${string}`; }' is not assignable to parameter of type 'DelegationStruct<`0x${string}` | Uint8Array>'.
Build, lint, and test / Turbo Pipeline (22.x)
Type '{ caveats: { enforcer: string; terms: string; args: string; }[]; delegate: `0x${string}`; delegator: `0x${string}`; authority: `0x${string}`; salt: `0x${string}`; signature: `0x${string}`; }' is not assignable to type 'Delegation'.
Build, lint, and test / Turbo Pipeline (22.x)
Object is possibly 'undefined'.
Build, lint, and test / Turbo Pipeline (22.x)
Object is possibly 'undefined'.
Build, lint, and test / Turbo Pipeline (22.x)
Argument of type 'Delegation' is not assignable to parameter of type 'DelegationStruct<`0x${string}` | Uint8Array>'.
Build, lint, and test / Turbo Pipeline (22.x)
Object is possibly 'undefined'.
Build, lint, and test / Turbo Pipeline (22.x)
Object is possibly 'undefined'.
Build, lint, and test / Turbo Pipeline (22.x)
Module '"../delegation"' declares 'hashDelegation' locally, but it is not exported.
Build, lint, and test / Turbo Pipeline (20.x)
Module '"../../src"' has no exported member 'getMultiTokenPeriodEnforcerAvailableAmount'.
Build, lint, and test / Turbo Pipeline (20.x)
Object is possibly 'undefined'.
Build, lint, and test / Turbo Pipeline (20.x)
Argument of type '{ caveats: { enforcer: string; terms: string; args: string; }[]; delegate: `0x${string}`; delegator: `0x${string}`; authority: `0x${string}`; salt: `0x${string}`; signature: `0x${string}`; }' is not assignable to parameter of type 'DelegationStruct<`0x${string}` | Uint8Array>'.
Build, lint, and test / Turbo Pipeline (20.x)
Type '{ caveats: { enforcer: string; terms: string; args: string; }[]; delegate: `0x${string}`; delegator: `0x${string}`; authority: `0x${string}`; salt: `0x${string}`; signature: `0x${string}`; }' is not assignable to type 'Delegation'.
Build, lint, and test / Turbo Pipeline (20.x)
Object is possibly 'undefined'.
Build, lint, and test / Turbo Pipeline (20.x)
Object is possibly 'undefined'.
Build, lint, and test / Turbo Pipeline (20.x)
Argument of type 'Delegation' is not assignable to parameter of type 'DelegationStruct<`0x${string}` | Uint8Array>'.
Build, lint, and test / Turbo Pipeline (20.x)
Object is possibly 'undefined'.
Build, lint, and test / Turbo Pipeline (20.x)
Object is possibly 'undefined'.
Build, lint, and test / Turbo Pipeline (20.x)
Module '"../delegation"' declares 'hashDelegation' locally, but it is not exported.
Build, lint, and test / Turbo Pipeline (20.x)
The strategy configuration was canceled because "build-lint-test.pipeline._22_x" failed
End to end tests / Turbo Pipeline (18.x)
Module '"../../src"' has no exported member 'getMultiTokenPeriodEnforcerAvailableAmount'.
End to end tests / Turbo Pipeline (18.x)
Object is possibly 'undefined'.
End to end tests / Turbo Pipeline (18.x)
Argument of type '{ caveats: { enforcer: string; terms: string; args: string; }[]; delegate: `0x${string}`; delegator: `0x${string}`; authority: `0x${string}`; salt: `0x${string}`; signature: `0x${string}`; }' is not assignable to parameter of type 'DelegationStruct<`0x${string}` | Uint8Array>'.
End to end tests / Turbo Pipeline (18.x)
Type '{ caveats: { enforcer: string; terms: string; args: string; }[]; delegate: `0x${string}`; delegator: `0x${string}`; authority: `0x${string}`; salt: `0x${string}`; signature: `0x${string}`; }' is not assignable to type 'Delegation'.
End to end tests / Turbo Pipeline (18.x)
Object is possibly 'undefined'.
End to end tests / Turbo Pipeline (18.x)
Object is possibly 'undefined'.
End to end tests / Turbo Pipeline (18.x)
Argument of type 'Delegation' is not assignable to parameter of type 'DelegationStruct<`0x${string}` | Uint8Array>'.
End to end tests / Turbo Pipeline (18.x)
Object is possibly 'undefined'.
End to end tests / Turbo Pipeline (18.x)
Object is possibly 'undefined'.
End to end tests / Turbo Pipeline (18.x)
Module '"../delegation"' declares 'hashDelegation' locally, but it is not exported.
End to end tests / Turbo Pipeline (18.x)
The strategy configuration was canceled because "end-to-end-tests.pipeline._22_x" failed
Build, lint, and test / Turbo Pipeline (18.x)
Object is possibly 'undefined'.
Build, lint, and test / Turbo Pipeline (18.x)
Argument of type '{ caveats: { enforcer: string; terms: string; args: string; }[]; delegate: `0x${string}`; delegator: `0x${string}`; authority: `0x${string}`; salt: `0x${string}`; signature: `0x${string}`; }' is not assignable to parameter of type 'DelegationStruct<`0x${string}` | Uint8Array>'.
Build, lint, and test / Turbo Pipeline (18.x)
@metamask/delegation-toolkit#build: command (/home/runner/work/delegation-toolkit/delegation-toolkit/packages/delegation-toolkit) /tmp/xfs-6aa42a00/yarn run build exited (2)
Build, lint, and test / Turbo Pipeline (18.x)
Type '{ caveats: { enforcer: string; terms: string; args: string; }[]; delegate: `0x${string}`; delegator: `0x${string}`; authority: `0x${string}`; salt: `0x${string}`; signature: `0x${string}`; }' is not assignable to type 'Delegation'.
Build, lint, and test / Turbo Pipeline (18.x)
Object is possibly 'undefined'.
Build, lint, and test / Turbo Pipeline (18.x)
Object is possibly 'undefined'.
Build, lint, and test / Turbo Pipeline (18.x)
Argument of type 'Delegation' is not assignable to parameter of type 'DelegationStruct<`0x${string}` | Uint8Array>'.
Build, lint, and test / Turbo Pipeline (18.x)
Object is possibly 'undefined'.
Build, lint, and test / Turbo Pipeline (18.x)
Object is possibly 'undefined'.
Build, lint, and test / Turbo Pipeline (18.x)
Module '"../delegation"' declares 'hashDelegation' locally, but it is not exported.
Build, lint, and test / Turbo Pipeline (18.x)
The strategy configuration was canceled because "build-lint-test.pipeline._22_x" failed
End to end tests / Turbo Pipeline (20.x)
Object is possibly 'undefined'.
End to end tests / Turbo Pipeline (20.x)
Argument of type '{ caveats: { enforcer: string; terms: string; args: string; }[]; delegate: `0x${string}`; delegator: `0x${string}`; authority: `0x${string}`; salt: `0x${string}`; signature: `0x${string}`; }' is not assignable to parameter of type 'DelegationStruct<`0x${string}` | Uint8Array>'.
End to end tests / Turbo Pipeline (20.x)
@metamask/delegation-toolkit#build: command (/home/runner/work/delegation-toolkit/delegation-toolkit/packages/delegation-toolkit) /tmp/xfs-894897e5/yarn run build exited (2)
End to end tests / Turbo Pipeline (20.x)
Type '{ caveats: { enforcer: string; terms: string; args: string; }[]; delegate: `0x${string}`; delegator: `0x${string}`; authority: `0x${string}`; salt: `0x${string}`; signature: `0x${string}`; }' is not assignable to type 'Delegation'.
End to end tests / Turbo Pipeline (20.x)
Object is possibly 'undefined'.
End to end tests / Turbo Pipeline (20.x)
Object is possibly 'undefined'.
End to end tests / Turbo Pipeline (20.x)
Argument of type 'Delegation' is not assignable to parameter of type 'DelegationStruct<`0x${string}` | Uint8Array>'.
End to end tests / Turbo Pipeline (20.x)
Object is possibly 'undefined'.
End to end tests / Turbo Pipeline (20.x)
Object is possibly 'undefined'.
End to end tests / Turbo Pipeline (20.x)
Module '"../delegation"' declares 'hashDelegation' locally, but it is not exported.
End to end tests / Turbo Pipeline (20.x)
The strategy configuration was canceled because "end-to-end-tests.pipeline._22_x" failed
All jobs pass
Process completed with exit code 1.
End to end tests / Turbo Pipeline (22.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
End to end tests / Turbo Pipeline (22.x)
Failed to restore: Cache service responded with 400
End to end tests / Turbo Pipeline (22.x)
Cache save failed.
End to end tests / Turbo Pipeline (22.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
Build, lint, and test / Turbo Pipeline (22.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
Build, lint, and test / Turbo Pipeline (22.x)
Failed to restore: Cache service responded with 400
Build, lint, and test / Turbo Pipeline (22.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
Build, lint, and test / Turbo Pipeline (20.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
Build, lint, and test / Turbo Pipeline (20.x)
Failed to restore: Cache service responded with 400
Build, lint, and test / Turbo Pipeline (20.x)
Cache save failed.
Build, lint, and test / Turbo Pipeline (20.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
End to end tests / Turbo Pipeline (18.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
End to end tests / Turbo Pipeline (18.x)
Failed to restore: Cache service responded with 400
End to end tests / Turbo Pipeline (18.x)
Cache save failed.
End to end tests / Turbo Pipeline (18.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
Build, lint, and test / Turbo Pipeline (18.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
Build, lint, and test / Turbo Pipeline (18.x)
Failed to restore: Cache service responded with 400
Build, lint, and test / Turbo Pipeline (18.x)
Cache save failed.
Build, lint, and test / Turbo Pipeline (18.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
End to end tests / Turbo Pipeline (20.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
End to end tests / Turbo Pipeline (20.x)
Failed to restore: Cache service responded with 400
End to end tests / Turbo Pipeline (20.x)
Cache save failed.
End to end tests / Turbo Pipeline (20.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
Code scanner / Run security scan
Unable to validate code scanning workflow: error: getWorkflow() failed: Error: Expected to find a code scanning workflow file at /home/runner/work/delegation-toolkit/delegation-toolkit/.github/workflows/main.yml, but no such file existed. This can happen if the currently running workflow checks out a branch that doesn't contain the corresponding workflow file.