Skip to content

Commit

Permalink
Merge pull request #202 from holochain/bump-js-client-0.17-12
Browse files Browse the repository at this point in the history
Bump the JS client to 0.17-12
  • Loading branch information
ThetaSinner authored Apr 26, 2024
2 parents a6d8341 + 4b8c227 commit f6b5b3c
Show file tree
Hide file tree
Showing 35 changed files with 145 additions and 309 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
run: nix develop -c $SHELL -c "npm ci"

- name: Run tests
run: nix develop --override-input versions/holochain "github:holochain/holochain/holochain-0.3.0-beta-dev.48" -c $SHELL -c "npm t"
run: nix develop -c $SHELL -c "npm t"

- name: Setup tmate session if build or test run failed
if: ${{ failure() }}
Expand Down
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
### Changed
### Fixed

## 2024-04-26: v0.16.0-dev.4
## 2024-04-27: v0.16.0-dev.5
### Changed
- Update the version of the JS client to v0.17.0-dev.12.

## 2024-04-26: v0.16.0-dev.4
### Changed
- **BREAKING** Integrated the updated JS client which adds app websocket authentication and merges the `AppAgentWebsocket`
with the `AppWebsocket`. This affects tests when opening app websockets directly but using the 'players' API, this detail
Expand Down
4 changes: 2 additions & 2 deletions docs/tryorama.adminapiresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ All possible responses from the Admin API.
**Signature:**

```typescript
export type AdminApiResponse = AdminApiResponseAgentInfo | AdminApiResponseAgentInfoAdded | AdminApiResponseAgentPubKeyGenerated | AdminApiResponseAppDisabled | AdminApiResponseAppEnabled | AdminApiResponseAppInstalled | AdminApiResponseAppInterfaceAttached | AdminApiResponseAppInterfacesListed | AdminApiResponseAppStarted | AdminApiResponseAppUninstalled | AdminApiResponseAppsListed | AdminApiResponseCellIdsListed | AdminApiResponseCloneCellDeleted | AdminApiResponseCoordinatorsUpdated | AdminApiResponseDnasDefinitionReturned | AdminApiResponseDnasListed | AdminApiResponseDnaRegistered | AdminApiResponseFullStateDumped | AdminApiResponseNetworkStatsDumped | AdminApiResponseStateDumped | AdminApiResponseStorageInfo | AdminApiResponseZomeCallCapabilityGranted;
export type AdminApiResponse = AdminApiResponseAgentInfo | AdminApiResponseAgentInfoAdded | AdminApiResponseAgentPubKeyGenerated | AdminApiResponseAppDisabled | AdminApiResponseAppEnabled | AdminApiResponseAppInstalled | AdminApiResponseAppInterfaceAttached | AdminApiResponseAppInterfacesListed | AdminApiResponseAppStarted | AdminApiResponseAppUninstalled | AdminApiResponseAppsListed | AdminApiResponseCellIdsListed | AdminApiResponseCloneCellDeleted | AdminApiResponseCoordinatorsUpdated | AdminApiResponseDnasDefinitionReturned | AdminApiResponseDnasListed | AdminApiResponseDnaRegistered | AdminApiResponseFullStateDumped | AdminApiResponseNetworkStatsDumped | AdminApiResponseStateDumped | AdminApiResponseStorageInfo | AdminApiResponseAppAuthenticationTokenIssued | AdminApiResponseZomeCallCapabilityGranted;
```
**References:** [AdminApiResponseAgentInfo](./tryorama.adminapiresponseagentinfo.md)<!-- -->, [AdminApiResponseAgentInfoAdded](./tryorama.adminapiresponseagentinfoadded.md)<!-- -->, [AdminApiResponseAgentPubKeyGenerated](./tryorama.adminapiresponseagentpubkeygenerated.md)<!-- -->, [AdminApiResponseAppDisabled](./tryorama.adminapiresponseappdisabled.md)<!-- -->, [AdminApiResponseAppEnabled](./tryorama.adminapiresponseappenabled.md)<!-- -->, [AdminApiResponseAppInstalled](./tryorama.adminapiresponseappinstalled.md)<!-- -->, [AdminApiResponseAppInterfaceAttached](./tryorama.adminapiresponseappinterfaceattached.md)<!-- -->, [AdminApiResponseAppInterfacesListed](./tryorama.adminapiresponseappinterfaceslisted.md)<!-- -->, [AdminApiResponseAppStarted](./tryorama.adminapiresponseappstarted.md)<!-- -->, [AdminApiResponseAppUninstalled](./tryorama.adminapiresponseappuninstalled.md)<!-- -->, [AdminApiResponseAppsListed](./tryorama.adminapiresponseappslisted.md)<!-- -->, [AdminApiResponseCellIdsListed](./tryorama.adminapiresponsecellidslisted.md)<!-- -->, [AdminApiResponseCloneCellDeleted](./tryorama.adminapiresponseclonecelldeleted.md)<!-- -->, [AdminApiResponseCoordinatorsUpdated](./tryorama.adminapiresponsecoordinatorsupdated.md)<!-- -->, [AdminApiResponseDnasDefinitionReturned](./tryorama.adminapiresponsednasdefinitionreturned.md)<!-- -->, [AdminApiResponseDnasListed](./tryorama.adminapiresponsednaslisted.md)<!-- -->, [AdminApiResponseDnaRegistered](./tryorama.adminapiresponsednaregistered.md)<!-- -->, [AdminApiResponseFullStateDumped](./tryorama.adminapiresponsefullstatedumped.md)<!-- -->, [AdminApiResponseNetworkStatsDumped](./tryorama.adminapiresponsenetworkstatsdumped.md)<!-- -->, [AdminApiResponseStateDumped](./tryorama.adminapiresponsestatedumped.md)<!-- -->, [AdminApiResponseStorageInfo](./tryorama.adminapiresponsestorageinfo.md)<!-- -->, [AdminApiResponseZomeCallCapabilityGranted](./tryorama.adminapiresponsezomecallcapabilitygranted.md)
**References:** [AdminApiResponseAgentInfo](./tryorama.adminapiresponseagentinfo.md)<!-- -->, [AdminApiResponseAgentInfoAdded](./tryorama.adminapiresponseagentinfoadded.md)<!-- -->, [AdminApiResponseAgentPubKeyGenerated](./tryorama.adminapiresponseagentpubkeygenerated.md)<!-- -->, [AdminApiResponseAppDisabled](./tryorama.adminapiresponseappdisabled.md)<!-- -->, [AdminApiResponseAppEnabled](./tryorama.adminapiresponseappenabled.md)<!-- -->, [AdminApiResponseAppInstalled](./tryorama.adminapiresponseappinstalled.md)<!-- -->, [AdminApiResponseAppInterfaceAttached](./tryorama.adminapiresponseappinterfaceattached.md)<!-- -->, [AdminApiResponseAppInterfacesListed](./tryorama.adminapiresponseappinterfaceslisted.md)<!-- -->, [AdminApiResponseAppStarted](./tryorama.adminapiresponseappstarted.md)<!-- -->, [AdminApiResponseAppUninstalled](./tryorama.adminapiresponseappuninstalled.md)<!-- -->, [AdminApiResponseAppsListed](./tryorama.adminapiresponseappslisted.md)<!-- -->, [AdminApiResponseCellIdsListed](./tryorama.adminapiresponsecellidslisted.md)<!-- -->, [AdminApiResponseCloneCellDeleted](./tryorama.adminapiresponseclonecelldeleted.md)<!-- -->, [AdminApiResponseCoordinatorsUpdated](./tryorama.adminapiresponsecoordinatorsupdated.md)<!-- -->, [AdminApiResponseDnasDefinitionReturned](./tryorama.adminapiresponsednasdefinitionreturned.md)<!-- -->, [AdminApiResponseDnasListed](./tryorama.adminapiresponsednaslisted.md)<!-- -->, [AdminApiResponseDnaRegistered](./tryorama.adminapiresponsednaregistered.md)<!-- -->, [AdminApiResponseFullStateDumped](./tryorama.adminapiresponsefullstatedumped.md)<!-- -->, [AdminApiResponseNetworkStatsDumped](./tryorama.adminapiresponsenetworkstatsdumped.md)<!-- -->, [AdminApiResponseStateDumped](./tryorama.adminapiresponsestatedumped.md)<!-- -->, [AdminApiResponseStorageInfo](./tryorama.adminapiresponsestorageinfo.md)<!-- -->, [AdminApiResponseAppAuthenticationTokenIssued](./tryorama.adminapiresponseappauthenticationtokenissued.md)<!-- -->, [AdminApiResponseZomeCallCapabilityGranted](./tryorama.adminapiresponsezomecallcapabilitygranted.md)

71 changes: 0 additions & 71 deletions docs/tryorama.conductor.connectappagentws.md

This file was deleted.

18 changes: 17 additions & 1 deletion docs/tryorama.conductor.connectappws.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Connect a web socket to the App API,
**Signature:**

```typescript
connectAppWs(port: number): Promise<AppWebsocket>;
connectAppWs(token: AppAuthenticationToken, port: number): Promise<AppWebsocket>;
```

## Parameters
Expand All @@ -32,6 +32,22 @@ Description
</th></tr></thead>
<tbody><tr><td>

token


</td><td>

AppAuthenticationToken


</td><td>

A token to authenticate the connection.


</td></tr>
<tr><td>

port


Expand Down
16 changes: 1 addition & 15 deletions docs/tryorama.conductor.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,7 @@ Attach a web socket to the App API.
</td></tr>
<tr><td>
[connectAppAgentWs(port, appId)](./tryorama.conductor.connectappagentws.md)
</td><td>
</td><td>
Connect a web socket for a specific app and agent to the App API,
</td></tr>
<tr><td>
[connectAppWs(port)](./tryorama.conductor.connectappws.md)
[connectAppWs(token, port)](./tryorama.conductor.connectappws.md)
</td><td>
Expand Down
2 changes: 1 addition & 1 deletion docs/tryorama.createtrycpconductor.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ options

</td><td>

_(Optional)_
_(Optional)_ Options to configure how the conductor will be started and run.


</td></tr>
Expand Down
4 changes: 2 additions & 2 deletions docs/tryorama.enableandgetagentapp.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Enable an app and build an agent app object.
**Signature:**

```typescript
enableAndGetAgentApp: (adminWs: IAdminWebsocket, appWs: IAppWebsocket | IAppAgentWebsocket, appInfo: AppInfo) => Promise<AgentApp>
enableAndGetAgentApp: (adminWs: IAdminWebsocket, appWs: IAppWebsocket, appInfo: AppInfo) => Promise<AgentApp>
```

## Parameters
Expand Down Expand Up @@ -53,7 +53,7 @@ appWs

</td><td>

[IAppWebsocket](./tryorama.iappwebsocket.md) \| [IAppAgentWebsocket](./tryorama.iappagentwebsocket.md)
[IAppWebsocket](./tryorama.iappwebsocket.md)


</td><td>
Expand Down
4 changes: 2 additions & 2 deletions docs/tryorama.getcallablecell.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Create curried version of `callZome` function for a specific cell.
**Signature:**

```typescript
getCallableCell: (appWs: IAppWebsocket | IAppAgentWebsocket, cell: ClonedCell | ProvisionedCell) => {
getCallableCell: (appWs: IAppWebsocket, cell: ClonedCell | ProvisionedCell) => {
callZome: <T>(request: CellZomeCallRequest, timeout?: number) => Promise<T>;
cell_id: import("@holochain/client").CellId;
clone_id: string;
Expand Down Expand Up @@ -50,7 +50,7 @@ appWs

</td><td>

[IAppWebsocket](./tryorama.iappwebsocket.md) \| [IAppAgentWebsocket](./tryorama.iappagentwebsocket.md)
[IAppWebsocket](./tryorama.iappwebsocket.md)


</td><td>
Expand Down
13 changes: 0 additions & 13 deletions docs/tryorama.iappagentwebsocket.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/tryorama.iappwebsocket.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ AppWebsocket interface for local and TryCP conductors.
**Signature:**

```typescript
export type IAppWebsocket = Pick<AppWebsocket, "callZome" | "appInfo" | "createCloneCell" | "enableCloneCell" | "disableCloneCell" | "networkInfo">;
export type IAppWebsocket = Pick<AppWebsocket, "callZome">;
```
11 changes: 0 additions & 11 deletions docs/tryorama.iconductor.connectappagentws.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/tryorama.iconductor.connectappws.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
**Signature:**

```typescript
connectAppWs: (port: number) => Promise<IAppWebsocket>;
connectAppWs: (token: AppAuthenticationToken, port: number) => Promise<IAppWebsocket>;
```
19 changes: 1 addition & 18 deletions docs/tryorama.iconductor.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,6 @@ Description
</td><td>


</td></tr>
<tr><td>

[connectAppAgentWs](./tryorama.iconductor.connectappagentws.md)


</td><td>


</td><td>

(port: number, appId: InstalledAppId) =&gt; Promise&lt;[IAppAgentWebsocket](./tryorama.iappagentwebsocket.md)<!-- -->&gt;


</td><td>


</td></tr>
<tr><td>

Expand All @@ -79,7 +62,7 @@ Description

</td><td>

(port: number) =&gt; Promise&lt;[IAppWebsocket](./tryorama.iappwebsocket.md)<!-- -->&gt;
(token: AppAuthenticationToken, port: number) =&gt; Promise&lt;[IAppWebsocket](./tryorama.iappwebsocket.md)<!-- -->&gt;


</td><td>
Expand Down
11 changes: 0 additions & 11 deletions docs/tryorama.iplayer.appagentws.md

This file was deleted.

4 changes: 2 additions & 2 deletions docs/tryorama.iplayer.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ Description
</th></tr></thead>
<tbody><tr><td>
[appAgentWs](./tryorama.iplayer.appagentws.md)
[appWs](./tryorama.iplayer.appws.md)
</td><td>
</td><td>
AppAgentWebsocket \| [IAppAgentWebsocket](./tryorama.iappagentwebsocket.md)
AppWebsocket \| [IAppWebsocket](./tryorama.iappwebsocket.md)
</td><td>
Expand Down
21 changes: 10 additions & 11 deletions docs/tryorama.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,16 @@ Description



</td></tr>
<tr><td>

[AdminApiResponseAppAuthenticationTokenIssued](./tryorama.adminapiresponseappauthenticationtokenissued.md)


</td><td>



</td></tr>
<tr><td>

Expand Down Expand Up @@ -1138,17 +1148,6 @@ Options for using the conductor factory.
AdminWebsocket interface for local and TryCP conductors.


</td></tr>
<tr><td>

[IAppAgentWebsocket](./tryorama.iappagentwebsocket.md)


</td><td>

AppAgentWebsocket interface for local and TryCP conductors.


</td></tr>
<tr><td>

Expand Down
2 changes: 1 addition & 1 deletion docs/tryorama.requestadmininterfacemessage.data.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
**Signature:**

```typescript
data?: AddAgentInfoRequest | AgentInfoRequest | AttachAppInterfaceRequest | DeleteCloneCellRequest | DisableAppRequest | DumpFullStateRequest | DumpNetworkStatsRequest | DumpStateRequest | EnableAppRequest | GetDnaDefinitionRequest | GrantZomeCallCapabilityRequest | InstallAppRequest | ListAppsRequest | RegisterDnaRequest | StartAppRequest | StorageInfoRequest | UninstallAppRequest | UpdateCoordinatorsRequest;
data?: AddAgentInfoRequest | AgentInfoRequest | AttachAppInterfaceRequest | DeleteCloneCellRequest | DisableAppRequest | DumpFullStateRequest | DumpNetworkStatsRequest | DumpStateRequest | EnableAppRequest | GetDnaDefinitionRequest | GrantZomeCallCapabilityRequest | InstallAppRequest | ListAppsRequest | RegisterDnaRequest | StartAppRequest | StorageInfoRequest | UninstallAppRequest | UpdateCoordinatorsRequest | IssueAppAuthenticationTokenRequest;
```
2 changes: 1 addition & 1 deletion docs/tryorama.requestadmininterfacemessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Description

</td><td>

AddAgentInfoRequest \| AgentInfoRequest \| AttachAppInterfaceRequest \| DeleteCloneCellRequest \| DisableAppRequest \| DumpFullStateRequest \| DumpNetworkStatsRequest \| DumpStateRequest \| EnableAppRequest \| GetDnaDefinitionRequest \| GrantZomeCallCapabilityRequest \| InstallAppRequest \| ListAppsRequest \| RegisterDnaRequest \| StartAppRequest \| StorageInfoRequest \| UninstallAppRequest \| UpdateCoordinatorsRequest
AddAgentInfoRequest \| AgentInfoRequest \| AttachAppInterfaceRequest \| DeleteCloneCellRequest \| DisableAppRequest \| DumpFullStateRequest \| DumpNetworkStatsRequest \| DumpStateRequest \| EnableAppRequest \| GetDnaDefinitionRequest \| GrantZomeCallCapabilityRequest \| InstallAppRequest \| ListAppsRequest \| RegisterDnaRequest \| StartAppRequest \| StorageInfoRequest \| UninstallAppRequest \| UpdateCoordinatorsRequest \| IssueAppAuthenticationTokenRequest


</td><td>
Expand Down
19 changes: 19 additions & 0 deletions docs/tryorama.requestadmininterfacemessagetype.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,25 @@ null
_(Optional)_


</td></tr>
<tr><td>

[issue\_app\_authentication\_token?](./tryorama.requestadmininterfacemessagetype.issue_app_authentication_token.md)


</td><td>


</td><td>

null


</td><td>

_(Optional)_


</td></tr>
<tr><td>

Expand Down
13 changes: 0 additions & 13 deletions docs/tryorama.requestappinfo.data.md

This file was deleted.

Loading

0 comments on commit f6b5b3c

Please sign in to comment.