feat!: Expose updated JS Client API via js-client.api package (#246)

This commit is contained in:
Pavel
2023-02-15 03:00:42 +03:00
committed by GitHub
parent 9667c4fec6
commit d4bb8fb429
25 changed files with 858 additions and 564 deletions

View File

@ -1,7 +1,7 @@
import { SecurityTetraplet } from '@fluencelabs/avm';
import type { SecurityTetraplet } from '@fluencelabs/avm';
import type { LogLevel } from '@fluencelabs/marine-js/dist/types';
import type { MultiaddrInput } from '@multiformats/multiaddr';
import { FnConfig, FunctionCallDef, ServiceDef } from './compilerSupport.js';
// import type { MultiaddrInput } from '@multiformats/multiaddr';
import type { FnConfig, FunctionCallDef, ServiceDef } from './compilerSupport.js';
/**
* Peer ID's id as a base58 string (multihash/CIDv0).
@ -52,7 +52,8 @@ type Node = {
multiaddr: string;
};
export type RelayOptions = string | MultiaddrInput | Node;
// TODO: either drop support for this exact type or get it back
export type RelayOptions = string | /* MultiaddrInput | */ Node;
export type KeyTypes = 'RSA' | 'Ed25519' | 'secp256k1';