Path: blob/main/components/gitpod-protocol/src/redis.ts
2498 views
/**1* Copyright (c) 2023 Gitpod GmbH. All rights reserved.2* Licensed under the GNU Affero General Public License (AGPL).3* See License.AGPL.txt in the project root for license information.4*/56import { HeadlessWorkspaceEventType } from "./headless-workspace-log";7import { PrebuiltWorkspaceState } from "./protocol";89export const WorkspaceInstanceUpdatesChannel = "chan:workspace-instances";10export const PrebuildUpdatesChannel = "chan:prebuilds";11export const HeadlessUpdatesChannel = "chan:headless";1213export type RedisWorkspaceInstanceUpdate = {14ownerID: string;15instanceID: string;16workspaceID: string;17};1819export type RedisPrebuildUpdate = {20status: PrebuiltWorkspaceState;21prebuildID: string;22workspaceID: string;23projectID: string;24organizationID?: string;25};2627export type RedisHeadlessUpdate = {28workspaceID: string;29type: HeadlessWorkspaceEventType;30};313233