@web3-storage/capabilities
Advanced tools
Comparing version 10.0.0 to 10.1.0
@@ -221,2 +221,9 @@ import type { TupleToUnion } from 'type-fest'; | ||
export type UCANRevoke = InferInvokedCapability<typeof UCANCaps.revoke>; | ||
export interface Timestamp { | ||
/** | ||
* Unix timestamp in seconds. | ||
*/ | ||
time: number; | ||
} | ||
export type UCANRevokeSuccess = Timestamp; | ||
/** | ||
@@ -243,3 +250,10 @@ * Error is raised when `UCAN` being revoked is not supplied or it's proof chain | ||
} | ||
export type UCANRevokeFailure = UCANNotFound | InvalidRevocationScope | UnauthorizedRevocation; | ||
/** | ||
* Error is raised when `UCAN` revocation cannot be stored. This | ||
* is usually not a client error. | ||
*/ | ||
export interface RevocationsStoreFailure extends Ucanto.Failure { | ||
name: 'RevocationsStoreFailure'; | ||
} | ||
export type UCANRevokeFailure = UCANNotFound | InvalidRevocationScope | UnauthorizedRevocation | RevocationsStoreFailure; | ||
export type Admin = InferInvokedCapability<typeof AdminCaps.admin>; | ||
@@ -246,0 +260,0 @@ export type AdminUploadInspect = InferInvokedCapability<typeof AdminCaps.upload.inspect>; |
{ | ||
"name": "@web3-storage/capabilities", | ||
"version": "10.0.0", | ||
"version": "10.1.0", | ||
"description": "Capabilities provided by web3.storage", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/web3-storage/w3protocol/tree/main/packages/capabilities", |
@@ -298,2 +298,11 @@ import type { TupleToUnion } from 'type-fest' | ||
export interface Timestamp { | ||
/** | ||
* Unix timestamp in seconds. | ||
*/ | ||
time: number | ||
} | ||
export type UCANRevokeSuccess = Timestamp | ||
/** | ||
@@ -323,2 +332,10 @@ * Error is raised when `UCAN` being revoked is not supplied or it's proof chain | ||
/** | ||
* Error is raised when `UCAN` revocation cannot be stored. This | ||
* is usually not a client error. | ||
*/ | ||
export interface RevocationsStoreFailure extends Ucanto.Failure { | ||
name: 'RevocationsStoreFailure' | ||
} | ||
export type UCANRevokeFailure = | ||
@@ -328,2 +345,3 @@ | UCANNotFound | ||
| UnauthorizedRevocation | ||
| RevocationsStoreFailure | ||
@@ -330,0 +348,0 @@ // Admin |
Sorry, the diff of this file is not supported yet
119081
2709