@ucanto/interface
Advanced tools
Comparing version 0.5.0 to 0.6.0
{ | ||
"name": "@ucanto/interface", | ||
"description": "interface definitions for ucanto", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"types": "./dist/src/lib.d.ts", | ||
@@ -6,0 +6,0 @@ "main": "./src/lib.js", |
@@ -295,13 +295,15 @@ import type * as Transport from './transport.js' | ||
export interface ConnectionOptions<T> extends Transport.EncodeOptions { | ||
export interface OutpboundTranpsortOptions { | ||
readonly encoder: Transport.RequestEncoder | ||
readonly decoder: Transport.ResponseDecoder | ||
} | ||
export interface ConnectionOptions<T> | ||
extends Transport.EncodeOptions, | ||
OutpboundTranpsortOptions { | ||
readonly id: Identity | ||
readonly channel: Transport.Channel<T> | ||
} | ||
export interface Connection<T> extends Phantom<T> { | ||
readonly encoder: Transport.RequestEncoder | ||
readonly decoder: Transport.ResponseDecoder | ||
readonly channel: Transport.Channel<T> | ||
export interface Connection<T> extends Phantom<T>, ConnectionOptions<T> { | ||
readonly id: Identity | ||
readonly hasher: MultihashHasher | ||
@@ -311,2 +313,3 @@ } | ||
export interface ConnectionView<T> extends Connection<T> { | ||
id: Identity | ||
execute< | ||
@@ -320,3 +323,3 @@ C extends Capability, | ||
export interface TranpsortOptions { | ||
export interface InboundTransportOptions { | ||
/** | ||
@@ -347,3 +350,5 @@ * Request decoder which is will be used by a server to decode HTTP Request | ||
export interface ServerOptions extends TranpsortOptions, ValidatorOptions { | ||
export interface ServerOptions | ||
extends InboundTransportOptions, | ||
ValidatorOptions { | ||
/** | ||
@@ -350,0 +355,0 @@ * Service DID which will be used to verify that received invocation |
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
29415
945