-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
1,247 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@holochain/client](./client.md) > [AbandonCountersigningSessionStateRequest](./client.abandoncountersigningsessionstaterequest.md) | ||
|
||
## AbandonCountersigningSessionStateRequest type | ||
|
||
Cell id for which the countersigning session should be abandoned. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
export type AbandonCountersigningSessionStateRequest = CellId; | ||
``` | ||
**References:** [CellId](./client.cellid.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@holochain/client](./client.md) > [AbandonCountersigningSessionStateResponse](./client.abandoncountersigningsessionstateresponse.md) | ||
|
||
## AbandonCountersigningSessionStateResponse type | ||
|
||
|
||
**Signature:** | ||
|
||
```typescript | ||
export type AbandonCountersigningSessionStateResponse = null; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@holochain/client](./client.md) > [AppWebsocket](./client.appwebsocket.md) > [abandonCountersigningSession](./client.appwebsocket.abandoncountersigningsession.md) | ||
|
||
## AppWebsocket.abandonCountersigningSession() method | ||
|
||
Abandon an unresolved countersigning session. | ||
|
||
If the current session has not been resolved automatically, it can be forcefully abandoned. A condition for this call to succeed is that at least one attempt has been made to resolve it automatically. | ||
|
||
\# Returns | ||
|
||
\[`AppResponse::CountersigningSessionAbandoned`<!-- -->\] | ||
|
||
The session is marked for abandoning and the countersigning workflow was triggered. The session has not been abandoned yet. | ||
|
||
Upon successful abandoning the system signal \[`SystemSignal::AbandonedCountersigning`<!-- -->\] will be emitted and the session removed from state, so that \[`AppRequest::GetCountersigningSessionState`<!-- -->\] would return `None`<!-- -->. | ||
|
||
In the countersigning workflow it will first be attempted to resolve the session with incoming signatures of the countersigned entries, before force-abandoning the session. In a very rare event it could happen that in just the moment where the \[`AppRequest::AbandonCountersigningSession`<!-- -->\] is made, signatures for this session come in. If they are valid, the session will be resolved and published as usual. Should they be invalid, however, the flag to abandon the session is erased. In such cases this request can be retried until the session has been abandoned successfully. | ||
|
||
\# Errors | ||
|
||
\[`CountersigningError::WorkspaceDoesNotExist`<!-- -->\] likely indicates that an invalid cell id was passed in to the call. | ||
|
||
\[`CountersigningError::SessionNotFound`<!-- -->\] when no ongoing session could be found for the provided cell id. | ||
|
||
\[`CountersigningError::SessionNotUnresolved`<!-- -->\] when an attempt to resolve the session automatically has not been made. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
abandonCountersigningSession(args: AbandonCountersigningSessionStateRequest): Promise<null>; | ||
``` | ||
|
||
## Parameters | ||
|
||
<table><thead><tr><th> | ||
|
||
Parameter | ||
|
||
|
||
</th><th> | ||
|
||
Type | ||
|
||
|
||
</th><th> | ||
|
||
Description | ||
|
||
|
||
</th></tr></thead> | ||
<tbody><tr><td> | ||
|
||
args | ||
|
||
|
||
</td><td> | ||
|
||
[AbandonCountersigningSessionStateRequest](./client.abandoncountersigningsessionstaterequest.md) | ||
|
||
|
||
</td><td> | ||
|
||
|
||
</td></tr> | ||
</tbody></table> | ||
**Returns:** | ||
|
||
Promise<null> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@holochain/client](./client.md) > [AppWebsocket](./client.appwebsocket.md) > [getCountersigningSessionState](./client.appwebsocket.getcountersigningsessionstate.md) | ||
|
||
## AppWebsocket.getCountersigningSessionState() method | ||
|
||
Get the state of a countersigning session. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
getCountersigningSessionState(args: GetCountersigningSessionStateRequest): Promise<GetCountersigningSessionStateResponse>; | ||
``` | ||
|
||
## Parameters | ||
|
||
<table><thead><tr><th> | ||
|
||
Parameter | ||
|
||
|
||
</th><th> | ||
|
||
Type | ||
|
||
|
||
</th><th> | ||
|
||
Description | ||
|
||
|
||
</th></tr></thead> | ||
<tbody><tr><td> | ||
|
||
args | ||
|
||
|
||
</td><td> | ||
|
||
[GetCountersigningSessionStateRequest](./client.getcountersigningsessionstaterequest.md) | ||
|
||
|
||
</td><td> | ||
|
||
|
||
</td></tr> | ||
</tbody></table> | ||
**Returns:** | ||
|
||
Promise<[GetCountersigningSessionStateResponse](./client.getcountersigningsessionstateresponse.md)<!-- -->> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.