@web3-storage/capabilities
Advanced tools
Comparing version 13.1.0 to 13.1.1
@@ -34,2 +34,10 @@ import type { TupleToUnion } from 'type-fest'; | ||
/** | ||
* Error for cases where an interface implementation needs to return an | ||
* error that isn't defined explicitly in the interface. | ||
*/ | ||
export interface UnexpectedError extends Ucanto.Failure { | ||
name: 'UnexpectedError'; | ||
cause: unknown; | ||
} | ||
/** | ||
* failure due to a resource not having enough storage capacity. | ||
@@ -469,3 +477,3 @@ */ | ||
} | ||
export type PlanGetFailure = PlanNotFound; | ||
export type PlanGetFailure = PlanNotFound | UnexpectedError; | ||
export type PlanSet = InferInvokedCapability<typeof PlanCaps.set>; | ||
@@ -482,3 +490,6 @@ export type PlanSetSuccess = Unit; | ||
} | ||
export type PlanSetFailure = CustomerNotFound; | ||
export interface PlanUpdateError extends Ucanto.Failure { | ||
name: 'PlanUpdateError'; | ||
} | ||
export type PlanSetFailure = CustomerNotFound | PlanUpdateError | UnexpectedError; | ||
export type Top = InferInvokedCapability<typeof top>; | ||
@@ -485,0 +496,0 @@ export type ServiceAbility = TupleToUnion<ServiceAbilityArray>; |
{ | ||
"name": "@web3-storage/capabilities", | ||
"version": "13.1.0", | ||
"version": "13.1.1", | ||
"description": "UCAN Capabilities provided by web3.storage", | ||
@@ -5,0 +5,0 @@ "homepage": "https://web3.storage", |
@@ -53,2 +53,11 @@ import type { TupleToUnion } from 'type-fest' | ||
/** | ||
* Error for cases where an interface implementation needs to return an | ||
* error that isn't defined explicitly in the interface. | ||
*/ | ||
export interface UnexpectedError extends Ucanto.Failure { | ||
name: 'UnexpectedError' | ||
cause: unknown | ||
} | ||
/** | ||
* failure due to a resource not having enough storage capacity. | ||
@@ -632,3 +641,3 @@ */ | ||
export type PlanGetFailure = PlanNotFound | ||
export type PlanGetFailure = PlanNotFound | UnexpectedError | ||
@@ -650,4 +659,11 @@ export type PlanSet = InferInvokedCapability<typeof PlanCaps.set> | ||
export type PlanSetFailure = CustomerNotFound | ||
export interface PlanUpdateError extends Ucanto.Failure { | ||
name: 'PlanUpdateError' | ||
} | ||
export type PlanSetFailure = | ||
| CustomerNotFound | ||
| PlanUpdateError | ||
| UnexpectedError | ||
// Top | ||
@@ -654,0 +670,0 @@ export type Top = InferInvokedCapability<typeof top> |
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
153491
3569