-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/use-multihashdigest-type1
- Loading branch information
Showing
19 changed files
with
332 additions
and
148 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 was deleted.
Oops, something went wrong.
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,31 @@ | ||
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 ClaimsClientConfig { | ||
invocationConfig: ClaimsInvocationConfig | ||
connection: ConnectionView<Service> | ||
} | ||
|
||
export interface ClaimsClientContext { | ||
claimsService: ClaimsClientConfig | ||
} |
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
Oops, something went wrong.