@ucanto/interface
Advanced tools
Comparing version 5.0.0 to 6.0.0
@@ -167,5 +167,4 @@ import { Ability, Block as UCANBlock, ByteView, Capabilities, Capability, DID, Fact, Link as UCANLink, MultihashHasher, MultihashDigest, MultibaseDecoder, MultibaseEncoder, Phantom, Resource, Signature, Principal, MulticodecCode, SigAlg, ToJSON, SignatureJSON, JSONUnknown, JSONObject } from '@ipld/dag-ucan'; | ||
export type InvocationError = HandlerNotFound | HandlerExecutionError | InvalidAudience | Unauthorized; | ||
export interface InvocationContext extends CanIssue { | ||
export interface InvocationContext extends ValidatorOptions { | ||
id: Verifier; | ||
my?: (issuer: DID) => Capability[]; | ||
resolve?: (proof: UCANLink) => Await<Result<Delegation, UnavailableProof>>; | ||
@@ -258,3 +257,2 @@ principal: PrincipalParser; | ||
readonly canIssue?: CanIssue['canIssue']; | ||
readonly my?: InvocationContext['my']; | ||
readonly resolve?: InvocationContext['resolve']; | ||
@@ -261,0 +259,0 @@ } |
{ | ||
"name": "@ucanto/interface", | ||
"description": "interface definitions for ucanto", | ||
"version": "5.0.0", | ||
"version": "6.0.0", | ||
"types": "./dist/src/lib.d.ts", | ||
@@ -26,3 +26,3 @@ "main": "./src/lib.js", | ||
"devDependencies": { | ||
"typescript": "^4.9.4" | ||
"typescript": "^4.9.5" | ||
}, | ||
@@ -29,0 +29,0 @@ "exports": { |
@@ -287,5 +287,5 @@ import { | ||
export interface InvocationContext extends CanIssue { | ||
export interface InvocationContext extends ValidatorOptions { | ||
id: Verifier | ||
my?: (issuer: DID) => Capability[] | ||
resolve?: (proof: UCANLink) => Await<Result<Delegation, UnavailableProof>> | ||
@@ -464,3 +464,2 @@ | ||
readonly canIssue?: CanIssue['canIssue'] | ||
readonly my?: InvocationContext['my'] | ||
readonly resolve?: InvocationContext['resolve'] | ||
@@ -467,0 +466,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
111568
2265