diff --git a/docs/client.installapprequest.md b/docs/client.installapprequest.md index adfa1e22..694ac2e9 100644 --- a/docs/client.installapprequest.md +++ b/docs/client.installapprequest.md @@ -9,7 +9,7 @@ ```typescript export type InstallAppRequest = { - agent_key: AgentPubKey; + agent_key?: AgentPubKey; installed_app_id?: InstalledAppId; membrane_proofs: MemproofMap; network_seed?: NetworkSeed; diff --git a/docs/client.preflightresponse.agent_state.md b/docs/client.preflightresponse.agent_state.md index e785aa49..df7d90f5 100644 --- a/docs/client.preflightresponse.agent_state.md +++ b/docs/client.preflightresponse.agent_state.md @@ -1,13 +1,13 @@ - - -[Home](./index.md) > [@holochain/client](./client.md) > [PreflightResponse](./client.preflightresponse.md) > [agent\_state](./client.preflightresponse.agent_state.md) - -## PreflightResponse.agent\_state property - -The chain state declaration for the agent that produced this response. - -**Signature:** - -```typescript -agent_state: CountersigningAgentState; -``` + + +[Home](./index.md) > [@holochain/client](./client.md) > [PreflightResponse](./client.preflightresponse.md) > [agent\_state](./client.preflightresponse.agent_state.md) + +## PreflightResponse.agent\_state property + +The chain state declaration for the agent that produced this response. + +**Signature:** + +```typescript +agent_state: CountersigningAgentState; +``` diff --git a/docs/client.preflightresponse.md b/docs/client.preflightresponse.md index 05db536e..10d2baa7 100644 --- a/docs/client.preflightresponse.md +++ b/docs/client.preflightresponse.md @@ -1,94 +1,94 @@ - - -[Home](./index.md) > [@holochain/client](./client.md) > [PreflightResponse](./client.preflightresponse.md) - -## PreflightResponse interface - - -**Signature:** - -```typescript -export interface PreflightResponse -``` - -## Properties - - - - - -
- -Property - - - - -Modifiers - - - - -Type - - - - -Description - - -
- -[agent\_state](./client.preflightresponse.agent_state.md) - - - - - - - -[CountersigningAgentState](./client.countersigningagentstate.md) - - - - -The chain state declaration for the agent that produced this response. - - -
- -[request](./client.preflightresponse.request.md) - - - - - - - -[PreflightRequest](./client.preflightrequest.md) - - - - -The request associated with this response. - - -
- -[signature](./client.preflightresponse.signature.md) - - - - - - - -[Signature](./client.signature.md) - - - - -The signature of this response, by the agent that created it. - - -
+ + +[Home](./index.md) > [@holochain/client](./client.md) > [PreflightResponse](./client.preflightresponse.md) + +## PreflightResponse interface + + +**Signature:** + +```typescript +export interface PreflightResponse +``` + +## Properties + + + + + +
+ +Property + + + + +Modifiers + + + + +Type + + + + +Description + + +
+ +[agent\_state](./client.preflightresponse.agent_state.md) + + + + + + + +[CountersigningAgentState](./client.countersigningagentstate.md) + + + + +The chain state declaration for the agent that produced this response. + + +
+ +[request](./client.preflightresponse.request.md) + + + + + + + +[PreflightRequest](./client.preflightrequest.md) + + + + +The request associated with this response. + + +
+ +[signature](./client.preflightresponse.signature.md) + + + + + + + +[Signature](./client.signature.md) + + + + +The signature of this response, by the agent that created it. + + +
diff --git a/docs/client.preflightresponse.request.md b/docs/client.preflightresponse.request.md index cb5c4fec..9a80f317 100644 --- a/docs/client.preflightresponse.request.md +++ b/docs/client.preflightresponse.request.md @@ -1,13 +1,13 @@ - - -[Home](./index.md) > [@holochain/client](./client.md) > [PreflightResponse](./client.preflightresponse.md) > [request](./client.preflightresponse.request.md) - -## PreflightResponse.request property - -The request associated with this response. - -**Signature:** - -```typescript -request: PreflightRequest; -``` + + +[Home](./index.md) > [@holochain/client](./client.md) > [PreflightResponse](./client.preflightresponse.md) > [request](./client.preflightresponse.request.md) + +## PreflightResponse.request property + +The request associated with this response. + +**Signature:** + +```typescript +request: PreflightRequest; +``` diff --git a/docs/client.preflightresponse.signature.md b/docs/client.preflightresponse.signature.md index 61f1dc1d..d87b83a5 100644 --- a/docs/client.preflightresponse.signature.md +++ b/docs/client.preflightresponse.signature.md @@ -1,13 +1,13 @@ - - -[Home](./index.md) > [@holochain/client](./client.md) > [PreflightResponse](./client.preflightresponse.md) > [signature](./client.preflightresponse.signature.md) - -## PreflightResponse.signature property - -The signature of this response, by the agent that created it. - -**Signature:** - -```typescript -signature: Signature; -``` + + +[Home](./index.md) > [@holochain/client](./client.md) > [PreflightResponse](./client.preflightresponse.md) > [signature](./client.preflightresponse.signature.md) + +## PreflightResponse.signature property + +The signature of this response, by the agent that created it. + +**Signature:** + +```typescript +signature: Signature; +``` diff --git a/docs/client.rawsignal.md b/docs/client.rawsignal.md index 319b7475..2ac86455 100644 --- a/docs/client.rawsignal.md +++ b/docs/client.rawsignal.md @@ -1,18 +1,18 @@ - - -[Home](./index.md) > [@holochain/client](./client.md) > [RawSignal](./client.rawsignal.md) - -## RawSignal type - - -**Signature:** - -```typescript -export type RawSignal = { - [SignalType.App]: EncodedAppSignal; -} | { - [SignalType.System]: SystemSignal; -}; -``` -**References:** [EncodedAppSignal](./client.encodedappsignal.md), [SystemSignal](./client.systemsignal.md) - + + +[Home](./index.md) > [@holochain/client](./client.md) > [RawSignal](./client.rawsignal.md) + +## RawSignal type + + +**Signature:** + +```typescript +export type RawSignal = { + [SignalType.App]: EncodedAppSignal; +} | { + [SignalType.System]: SystemSignal; +}; +``` +**References:** [EncodedAppSignal](./client.encodedappsignal.md), [SystemSignal](./client.systemsignal.md) + diff --git a/docs/client.signalcb.md b/docs/client.signalcb.md index 6ebf88a8..2ee3b193 100644 --- a/docs/client.signalcb.md +++ b/docs/client.signalcb.md @@ -1,14 +1,14 @@ - - -[Home](./index.md) > [@holochain/client](./client.md) > [SignalCb](./client.signalcb.md) - -## SignalCb type - - -**Signature:** - -```typescript -export type SignalCb = (signal: Signal) => void; -``` -**References:** [Signal](./client.signal.md) - + + +[Home](./index.md) > [@holochain/client](./client.md) > [SignalCb](./client.signalcb.md) + +## SignalCb type + + +**Signature:** + +```typescript +export type SignalCb = (signal: Signal) => void; +``` +**References:** [Signal](./client.signal.md) + diff --git a/docs/client.systemsignal.md b/docs/client.systemsignal.md index 9a8cde0f..73b54b3d 100644 --- a/docs/client.systemsignal.md +++ b/docs/client.systemsignal.md @@ -1,16 +1,16 @@ - - -[Home](./index.md) > [@holochain/client](./client.md) > [SystemSignal](./client.systemsignal.md) - -## SystemSignal type - - -**Signature:** - -```typescript -export type SystemSignal = { - SuccessfulCountersigning: EntryHash; -}; -``` -**References:** [EntryHash](./client.entryhash.md) - + + +[Home](./index.md) > [@holochain/client](./client.md) > [SystemSignal](./client.systemsignal.md) + +## SystemSignal type + + +**Signature:** + +```typescript +export type SystemSignal = { + SuccessfulCountersigning: EntryHash; +}; +``` +**References:** [EntryHash](./client.entryhash.md) + diff --git a/test/e2e/app-websocket.ts b/test/e2e/app-websocket.ts index 8dd0fddf..66c9eda4 100644 --- a/test/e2e/app-websocket.ts +++ b/test/e2e/app-websocket.ts @@ -6,7 +6,7 @@ import { AppWebsocket, AppCreateCloneCellRequest, AppEntryDef, - AppSignalCb, + AppSignal, CellType, CloneId, fakeAgentPubKey, @@ -149,7 +149,7 @@ test( await admin.enableApp({ installed_app_id: app_id1 }); let received1 = false; - const signalCb1: AppSignalCb = () => { + const signalCb1: AppSignal = () => { received1 = true; }; @@ -164,7 +164,7 @@ test( await admin.enableApp({ installed_app_id: app_id2 }); let received2 = false; - const signalCb2: AppSignalCb = () => { + const signalCb2: AppSignal = () => { received2 = true; };