@ucanto/server
Advanced tools
Comparing version 8.0.1 to 8.0.2
@@ -9,3 +9,3 @@ export function provide<A extends API.Ability, R extends API.URI<`${string}:`>, C extends API.Caveats, O extends {}, X extends API.Failure, Result extends API.Result<O, X>>(capability: API.CapabilityParser<API.Match<API.ParsedCapability<A, R, C>, API.UnknownMatch>>, handler: (input: API.ProviderInput<API.ParsedCapability<A, R, C>>) => API.Await<Result>): API.ServiceMethod<API.Capability<A, R, C>, O & Result["ok"], X & Result["error"]>; | ||
export function error<T extends {}, X extends API.Failure>(error: X): API.ErrorBuilder<T, X>; | ||
import * as API from "./api.js"; | ||
import * as API from './api.js'; | ||
//# sourceMappingURL=handler.d.ts.map |
@@ -14,3 +14,3 @@ export { fail }; | ||
}>; | ||
export function execute<S extends Record<string, any>, I extends API.Transport.Tuple<unknown>>(input: API.AgentMessage<{ | ||
export function execute<S extends Record<string, any>, I extends API.Transport.Tuple>(input: API.AgentMessage<{ | ||
In: API.InferInvocations<I>; | ||
@@ -48,4 +48,4 @@ Out: API.Transport.Tuple<API.Receipt<any, any, API.Invocation<API.Capability<API.Ability, `${string}:${string}`, unknown>>, API.SigAlg>>; | ||
} | ||
import { fail } from "@ucanto/core/result.js"; | ||
import * as API from "@ucanto/interface"; | ||
import { fail } from '@ucanto/core'; | ||
import * as API from '@ucanto/interface'; | ||
/** | ||
@@ -61,3 +61,3 @@ * @template {Record<string, any>} S | ||
context: { | ||
canIssue?: ((capability: API.ParsedCapability<API.Ability, API.URI<`${string}:`>, {}>, issuer: `did:${string}:${string}`) => boolean) | undefined; | ||
canIssue?: ((capability: API.ParsedCapability<API.Ability, API.URI, {}>, issuer: `did:${string}:${string}`) => boolean) | undefined; | ||
resolve?: ((proof: API.UCANLink<API.Capabilities, API.MulticodecCode<number, string>, API.SigAlg>) => API.Await<API.Result<API.Delegation<API.Capabilities>, API.UnavailableProof>>) | undefined; | ||
@@ -90,5 +90,5 @@ id: API.Signer<`did:${string}:${string}`, API.SigAlg>; | ||
} | ||
import { Receipt } from "@ucanto/core"; | ||
import { Receipt } from '@ucanto/core'; | ||
export { capability, URI, Link, Failure, MalformedCapability } from "@ucanto/validator"; | ||
export { ok, error } from "./handler.js"; | ||
//# sourceMappingURL=server.d.ts.map |
{ | ||
"name": "@ucanto/server", | ||
"description": "UCAN RPC Server", | ||
"version": "8.0.1", | ||
"version": "8.0.2", | ||
"types": "./dist/src/lib.d.ts", | ||
@@ -25,2 +25,3 @@ "main": "./src/lib.js", | ||
"@ucanto/interface": "^8", | ||
"@ucanto/principal": "^8", | ||
"@ucanto/validator": "^8" | ||
@@ -33,3 +34,2 @@ }, | ||
"@ucanto/client": "^8", | ||
"@ucanto/principal": "^8", | ||
"@ucanto/transport": "^8", | ||
@@ -44,3 +44,3 @@ "@web-std/fetch": "^4.1.0", | ||
"playwright-test": "^8.2.0", | ||
"typescript": "^4.9.5" | ||
"typescript": "^5.0.4" | ||
}, | ||
@@ -47,0 +47,0 @@ "exports": { |
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
26186
14
4
+ Added@ucanto/principal@^8
+ Added@noble/curves@1.7.0(transitive)
+ Added@noble/ed25519@1.7.3(transitive)
+ Added@noble/hashes@1.6.01.6.1(transitive)
+ Added@ucanto/principal@8.1.0(transitive)
+ Addedone-webcrypto@1.0.3(transitive)