Skip to content

Commit

Permalink
Re-generate electron&web bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
touilleMan committed Oct 3, 2024
1 parent 592c2f4 commit 57ffcd6
Show file tree
Hide file tree
Showing 4 changed files with 624 additions and 0 deletions.
60 changes: 60 additions & 0 deletions bindings/electron/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ export interface StartedWorkspaceInfo {
}


export interface Tos {
perLocaleUrls: Map<string, string>
updatedOn: number
}


export interface UserClaimFinalizeInfo {
handle: number
}
Expand Down Expand Up @@ -454,6 +460,30 @@ export type ClaimerRetrieveInfoError =
| ClaimerRetrieveInfoErrorOffline


// ClientAcceptTosError
export interface ClientAcceptTosErrorInternal {
tag: "Internal"
error: string
}
export interface ClientAcceptTosErrorNoTos {
tag: "NoTos"
error: string
}
export interface ClientAcceptTosErrorOffline {
tag: "Offline"
error: string
}
export interface ClientAcceptTosErrorTosMismatch {
tag: "TosMismatch"
error: string
}
export type ClientAcceptTosError =
| ClientAcceptTosErrorInternal
| ClientAcceptTosErrorNoTos
| ClientAcceptTosErrorOffline
| ClientAcceptTosErrorTosMismatch


// ClientCancelInvitationError
export interface ClientCancelInvitationErrorAlreadyDeleted {
tag: "AlreadyDeleted"
Expand Down Expand Up @@ -529,6 +559,9 @@ export interface ClientEventInvitationChanged {
token: string
status: InvitationStatus
}
export interface ClientEventMustAcceptTos {
tag: "MustAcceptTos"
}
export interface ClientEventOffline {
tag: "Offline"
}
Expand Down Expand Up @@ -595,6 +628,7 @@ export type ClientEvent =
| ClientEventExpiredOrganization
| ClientEventIncompatibleServer
| ClientEventInvitationChanged
| ClientEventMustAcceptTos
| ClientEventOffline
| ClientEventOnline
| ClientEventPing
Expand All @@ -611,6 +645,25 @@ export type ClientEvent =
| ClientEventWorkspacesSelfListChanged


// ClientGetTosError
export interface ClientGetTosErrorInternal {
tag: "Internal"
error: string
}
export interface ClientGetTosErrorNoTos {
tag: "NoTos"
error: string
}
export interface ClientGetTosErrorOffline {
tag: "Offline"
error: string
}
export type ClientGetTosError =
| ClientGetTosErrorInternal
| ClientGetTosErrorNoTos
| ClientGetTosErrorOffline


// ClientGetUserDeviceError
export interface ClientGetUserDeviceErrorInternal {
tag: "Internal"
Expand Down Expand Up @@ -2116,6 +2169,10 @@ export function claimerUserInitialDoWaitPeer(
canceller: number,
handle: number
): Promise<Result<UserClaimInProgress1Info, ClaimInProgressError>>
export function clientAcceptTos(
client: number,
tos_updated_on: number
): Promise<Result<null, ClientAcceptTosError>>
export function clientCancelInvitation(
client: number,
token: string
Expand All @@ -2129,6 +2186,9 @@ export function clientCreateWorkspace(
client: number,
name: string
): Promise<Result<string, ClientCreateWorkspaceError>>
export function clientGetTos(
client: number
): Promise<Result<Tos, ClientGetTosError>>
export function clientGetUserDevice(
client: number,
device: string
Expand Down
Loading

0 comments on commit 57ffcd6

Please sign in to comment.