-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alan Shaw
committed
Jun 4, 2024
1 parent
7944077
commit 1687ee7
Showing
7 changed files
with
72 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ConnectionView, DID, Principal, Proof, Signer } from '@ucanto/interface' | ||
import { Service } from '@web3-storage/content-claims/server/service/api' | ||
|
||
export type { ConnectionView, DID, Principal, Proof, Signer } | ||
export type { Service } | ||
|
||
export interface ClaimsInvocationConfig { | ||
/** Signing authority issuing the UCAN invocation(s). */ | ||
issuer: Signer | ||
/** The principal delegated to in the current UCAN. */ | ||
audience: Principal | ||
/** The resource the invocation applies to. */ | ||
with: DID | ||
/** Proof(s) the issuer has the capability to perform the action. */ | ||
proofs?: Proof[] | ||
} | ||
|
||
export interface ClaimsClientContext { | ||
claimsService: { | ||
invocationConfig: ClaimsInvocationConfig | ||
connection: ConnectionView<Service> | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.