-
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
1 parent
8f9ea03
commit 8c86605
Showing
11 changed files
with
51 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
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,3 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
|
||
export interface AlreadyConnected { sessionId: string, } |
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { AckMessage } from "./AckMessage"; | ||
import type { AlreadyConnected } from "./AlreadyConnected"; | ||
import type { ErrorMessage } from "./ErrorMessage"; | ||
import type { InitializeResponse } from "./InitializeResponse"; | ||
import type { ResponsePayload } from "./ResponsePayload"; | ||
import type { UserConnectedEvent } from "./UserConnectedEvent"; | ||
import type { UserDisconnectedEvent } from "./UserDisconnectedEvent"; | ||
|
||
export type ServerToApp = { type: "InitializeResponse" } & InitializeResponse | { type: "UserConnectedEvent" } & UserConnectedEvent | { type: "UserDisconnectedEvent" } & UserDisconnectedEvent | { type: "ResponsePayload" } & ResponsePayload | { type: "ErrorMessage" } & ErrorMessage | { type: "AckMessage" } & AckMessage; | ||
export type ServerToApp = { type: "InitializeResponse" } & InitializeResponse | { type: "UserConnectedEvent" } & UserConnectedEvent | { type: "UserDisconnectedEvent" } & UserDisconnectedEvent | { type: "ResponsePayload" } & ResponsePayload | { type: "ErrorMessage" } & ErrorMessage | { type: "AckMessage" } & AckMessage | { type: "AlreadyConnected" } & AlreadyConnected; |
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,3 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
|
||
export interface AlreadyConnected { sessionId: string, } |
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 |
---|---|---|
@@ -1,8 +1,3 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
|
||
export interface InitializeResponse { | ||
responseId: string | ||
sessionId: string | ||
createdNew: boolean | ||
publicKeys: Array<string> | ||
} | ||
export interface InitializeResponse { responseId: string, sessionId: string, createdNew: boolean, publicKeys: Array<string>, } |
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { AckMessage } from "./AckMessage"; | ||
import type { AlreadyConnected } from "./AlreadyConnected"; | ||
import type { ErrorMessage } from "./ErrorMessage"; | ||
import type { InitializeResponse } from "./InitializeResponse"; | ||
import type { ResponsePayload } from "./ResponsePayload"; | ||
import type { UserConnectedEvent } from "./UserConnectedEvent"; | ||
import type { UserDisconnectedEvent } from "./UserDisconnectedEvent"; | ||
|
||
export type ServerToApp = { type: "InitializeResponse" } & InitializeResponse | { type: "UserConnectedEvent" } & UserConnectedEvent | { type: "UserDisconnectedEvent" } & UserDisconnectedEvent | { type: "ResponsePayload" } & ResponsePayload | { type: "ErrorMessage" } & ErrorMessage | { type: "AckMessage" } & AckMessage; | ||
export type ServerToApp = { type: "InitializeResponse" } & InitializeResponse | { type: "UserConnectedEvent" } & UserConnectedEvent | { type: "UserDisconnectedEvent" } & UserDisconnectedEvent | { type: "ResponsePayload" } & ResponsePayload | { type: "ErrorMessage" } & ErrorMessage | { type: "AckMessage" } & AckMessage | { type: "AlreadyConnected" } & AlreadyConnected; |
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,9 @@ | ||
use serde::{Deserialize, Serialize}; | ||
use ts_rs::TS; | ||
|
||
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize, TS)] | ||
#[ts(export)] | ||
pub struct AlreadyConnected { | ||
#[serde(rename = "sessionId")] | ||
pub session_id: String, | ||
} |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
pub mod already_connected; | ||
pub mod app_messages; | ||
pub mod initialize; | ||
pub mod payload; | ||
|