@web3-storage/capabilities
Advanced tools
Comparing version 15.0.0 to 16.0.0
@@ -16,3 +16,3 @@ export { top } from "./top.js"; | ||
}>, Store.Schema.InferStruct<{ | ||
link: typeof Store.Schema.Link; | ||
link: Store.Schema.Schema<import("@ucanto/interface").Link<unknown, 514, number, 1>, any>; | ||
size: Store.Schema.NumberSchema<number & import("@ucanto/interface").Phantom<{ | ||
@@ -25,3 +25,3 @@ typeof: "integer"; | ||
}>, Store.Schema.InferStruct<{ | ||
link: typeof Store.Schema.Link; | ||
link: Store.Schema.Schema<import("@ucanto/interface").Link<unknown, 514, number, 1>, any>; | ||
}>> | import("@ucanto/interface").CapabilityMatch<"store/list", `did:key:${string}` & `did:${string}` & import("@ucanto/interface").Phantom<{ | ||
@@ -28,0 +28,0 @@ protocol: "did:"; |
@@ -0,1 +1,3 @@ | ||
export const code: 514; | ||
export const CARLink: Schema.Schema<import("@ucanto/interface").Link<unknown, 514, number, 1>, any>; | ||
/** | ||
@@ -19,3 +21,3 @@ * Capability can only be delegated (but not invoked) allowing audience to | ||
}>, Schema.InferStruct<{ | ||
link: typeof Link; | ||
link: Schema.Schema<import("@ucanto/interface").Link<unknown, 514, number, 1>, any>; | ||
size: Schema.NumberSchema<number & import("@ucanto/interface").Phantom<{ | ||
@@ -39,3 +41,3 @@ typeof: "integer"; | ||
}>, Schema.InferStruct<{ | ||
link: Schema.Schema<import("@ucanto/interface").Link<unknown, number, number, 0 | 1> | undefined, unknown>; | ||
link: Schema.Schema<import("@ucanto/interface").Link<unknown, 514, number, 1> | undefined, any>; | ||
}>>>; | ||
@@ -49,3 +51,3 @@ /** | ||
}>, Schema.InferStruct<{ | ||
link: typeof Link; | ||
link: Schema.Schema<import("@ucanto/interface").Link<unknown, 514, number, 1>, any>; | ||
}>>>; | ||
@@ -68,3 +70,3 @@ /** | ||
}>, Schema.InferStruct<{ | ||
link: typeof Link; | ||
link: Schema.Schema<import("@ucanto/interface").Link<unknown, 514, number, 1>, any>; | ||
size: Schema.NumberSchema<number & import("@ucanto/interface").Phantom<{ | ||
@@ -77,3 +79,3 @@ typeof: "integer"; | ||
}>, Schema.InferStruct<{ | ||
link: typeof Link; | ||
link: Schema.Schema<import("@ucanto/interface").Link<unknown, 514, number, 1>, any>; | ||
}>> | import("@ucanto/interface").CapabilityMatch<"store/list", `did:key:${string}` & `did:${string}` & import("@ucanto/interface").Phantom<{ | ||
@@ -88,5 +90,5 @@ protocol: "did:"; | ||
}>>>; | ||
import { Schema } from '@ucanto/validator'; | ||
import { Link } from '@ucanto/validator'; | ||
import { Schema } from '@ucanto/validator'; | ||
export { Schema, Link }; | ||
//# sourceMappingURL=store.d.ts.map |
@@ -450,3 +450,3 @@ import type { TupleToUnion } from 'type-fest'; | ||
/** CID of the item. */ | ||
link: UnknownLink; | ||
link: CARLink; | ||
} | ||
@@ -480,3 +480,3 @@ export interface StoreAddSuccessDone extends StoreAddSuccessResult { | ||
export interface StoreListItem { | ||
link: UnknownLink; | ||
link: CARLink; | ||
size: number; | ||
@@ -483,0 +483,0 @@ origin?: UnknownLink; |
{ | ||
"name": "@web3-storage/capabilities", | ||
"version": "15.0.0", | ||
"version": "16.0.0", | ||
"description": "UCAN Capabilities provided by web3.storage", | ||
@@ -5,0 +5,0 @@ "homepage": "https://web3.storage", |
@@ -14,2 +14,7 @@ /** | ||
// @see https://github.com/multiformats/multicodec/blob/master/table.csv#L140 | ||
export const code = 0x0202 | ||
export const CARLink = Schema.link({ code, version: 1 }) | ||
/** | ||
@@ -50,3 +55,3 @@ * Capability can only be delegated (but not invoked) allowing audience to | ||
*/ | ||
link: Link, | ||
link: CARLink, | ||
/** | ||
@@ -99,3 +104,3 @@ * Size of the CAR file to be stored. Service will provision write target | ||
*/ | ||
link: Link.optional(), | ||
link: CARLink.optional(), | ||
}), | ||
@@ -120,3 +125,3 @@ derives: equalLink, | ||
*/ | ||
link: Link, | ||
link: CARLink, | ||
}), | ||
@@ -123,0 +128,0 @@ derives: equalLink, |
@@ -614,3 +614,3 @@ import type { TupleToUnion } from 'type-fest' | ||
/** CID of the item. */ | ||
link: UnknownLink | ||
link: CARLink | ||
} | ||
@@ -653,3 +653,3 @@ | ||
export interface StoreListItem { | ||
link: UnknownLink | ||
link: CARLink | ||
size: number | ||
@@ -656,0 +656,0 @@ origin?: UnknownLink |
Sorry, the diff of this file is not supported yet
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
190946
4486
1
15206