@gitpod/gitpod-protocol 0.1.5-tar-sh-active-users-new.0 → 0.1.5-tar-sh-active-users-new.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/attribution.d.ts +1 -0
- package/lib/attribution.d.ts.map +1 -1
- package/lib/attribution.js +4 -0
- package/lib/attribution.js.map +1 -1
- package/lib/billing-mode.d.ts +2 -0
- package/lib/billing-mode.d.ts.map +1 -1
- package/lib/experiments/configcat.d.ts +0 -2
- package/lib/experiments/configcat.d.ts.map +1 -1
- package/lib/experiments/configcat.js +1 -7
- package/lib/experiments/configcat.js.map +1 -1
- package/lib/experiments/types.d.ts +0 -2
- package/lib/experiments/types.d.ts.map +1 -1
- package/lib/experiments/types.js.map +1 -1
- package/lib/gitpod-service.d.ts +3 -1
- package/lib/gitpod-service.d.ts.map +1 -1
- package/lib/gitpod-service.js.map +1 -1
- package/lib/protocol.d.ts +13 -4
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +11 -2
- package/lib/protocol.js.map +1 -1
- package/lib/teams-projects-protocol.d.ts +1 -0
- package/lib/teams-projects-protocol.d.ts.map +1 -1
- package/lib/teams-projects-protocol.js.map +1 -1
- package/lib/workspace-cluster.d.ts +6 -5
- package/lib/workspace-cluster.d.ts.map +1 -1
- package/lib/workspace-cluster.js.map +1 -1
- package/lib/wsready.d.ts.map +1 -1
- package/lib/wsready.js +1 -1
- package/package.json +1 -1
- package/pkg-yarn.lock +1 -1
- package/provenance-bundle.jsonl +1 -1
- package/src/attribution.ts +4 -0
- package/src/billing-mode.ts +4 -0
- package/src/experiments/configcat.ts +0 -6
- package/src/experiments/types.ts +0 -4
- package/src/gitpod-service.ts +3 -1
- package/src/protocol.ts +18 -3
- package/src/teams-projects-protocol.ts +1 -0
- package/src/workspace-cluster.ts +11 -6
- package/src/wsready.ts +2 -2
package/src/protocol.ts
CHANGED
|
@@ -295,9 +295,9 @@ export type BillingTier = "paid" | "free";
|
|
|
295
295
|
export const WorkspaceFeatureFlags = {
|
|
296
296
|
full_workspace_backup: undefined,
|
|
297
297
|
persistent_volume_claim: undefined,
|
|
298
|
-
protected_secrets: undefined,
|
|
299
298
|
workspace_class_limiting: undefined,
|
|
300
299
|
workspace_connection_limiting: undefined,
|
|
300
|
+
workspace_psi: undefined,
|
|
301
301
|
};
|
|
302
302
|
export type NamedWorkspaceFeatureFlag = keyof typeof WorkspaceFeatureFlags;
|
|
303
303
|
export namespace NamedWorkspaceFeatureFlag {
|
|
@@ -1111,13 +1111,16 @@ export namespace SnapshotContext {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
}
|
|
1113
1113
|
|
|
1114
|
-
export interface
|
|
1115
|
-
actual: WorkspaceContext;
|
|
1114
|
+
export interface WithCommitHistory {
|
|
1116
1115
|
commitHistory?: string[];
|
|
1117
1116
|
additionalRepositoryCommitHistories?: {
|
|
1118
1117
|
cloneUrl: string;
|
|
1119
1118
|
commitHistory: string[];
|
|
1120
1119
|
}[];
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
export interface StartPrebuildContext extends WorkspaceContext, WithCommitHistory {
|
|
1123
|
+
actual: WorkspaceContext;
|
|
1121
1124
|
project?: Project;
|
|
1122
1125
|
branch?: string;
|
|
1123
1126
|
}
|
|
@@ -1200,6 +1203,16 @@ export namespace AdditionalContentContext {
|
|
|
1200
1203
|
}
|
|
1201
1204
|
}
|
|
1202
1205
|
|
|
1206
|
+
export interface OpenPrebuildContext extends WorkspaceContext {
|
|
1207
|
+
openPrebuildID: string;
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
export namespace OpenPrebuildContext {
|
|
1211
|
+
export function is(ctx: any): ctx is OpenPrebuildContext {
|
|
1212
|
+
return "openPrebuildID" in ctx;
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1203
1216
|
export interface CommitContext extends WorkspaceContext, GitCheckoutInfo {
|
|
1204
1217
|
/** @deprecated Moved to .repository.cloneUrl, left here for backwards-compatibility for old workspace contextes in the DB */
|
|
1205
1218
|
cloneUrl?: string;
|
|
@@ -1372,6 +1385,8 @@ export enum CreateWorkspaceMode {
|
|
|
1372
1385
|
UsePrebuild = "use-prebuild",
|
|
1373
1386
|
// SelectIfRunning returns a list of currently running workspaces for the context URL if there are any, otherwise falls back to Default mode
|
|
1374
1387
|
SelectIfRunning = "select-if-running",
|
|
1388
|
+
// UseLastSuccessfulPrebuild returns ...
|
|
1389
|
+
UseLastSuccessfulPrebuild = "use-last-successful-prebuild",
|
|
1375
1390
|
}
|
|
1376
1391
|
|
|
1377
1392
|
export namespace WorkspaceCreationResult {
|
package/src/workspace-cluster.ts
CHANGED
|
@@ -15,6 +15,10 @@ export interface WorkspaceCluster {
|
|
|
15
15
|
// Must be identical to the installationShortname of the cluster it represents!
|
|
16
16
|
name: string;
|
|
17
17
|
|
|
18
|
+
// The name of the application cluster to which this cluster should be registered.
|
|
19
|
+
// The name can be at most 60 characters.
|
|
20
|
+
applicationCluster: string;
|
|
21
|
+
|
|
18
22
|
// URL of the cluster's ws-manager API
|
|
19
23
|
url: string;
|
|
20
24
|
|
|
@@ -86,20 +90,21 @@ export interface WorkspaceClusterDB {
|
|
|
86
90
|
* Deletes the cluster identified by this name, if any.
|
|
87
91
|
* @param name
|
|
88
92
|
*/
|
|
89
|
-
deleteByName(name: string): Promise<void>;
|
|
93
|
+
deleteByName(name: string, applicationCluster: string): Promise<void>;
|
|
90
94
|
|
|
91
95
|
/**
|
|
92
96
|
* Finds a WorkspaceCluster with the given name. If there is none, `undefined` is returned.
|
|
93
97
|
* @param name
|
|
94
98
|
*/
|
|
95
|
-
findByName(name: string): Promise<WorkspaceCluster | undefined>;
|
|
99
|
+
findByName(name: string, applicationCluster: string): Promise<WorkspaceCluster | undefined>;
|
|
96
100
|
|
|
97
101
|
/**
|
|
98
102
|
* Lists all WorkspaceClusterWoTls for which the given predicate is true (does not return TLS for size/speed concerns)
|
|
99
103
|
* @param predicate
|
|
100
104
|
*/
|
|
101
|
-
findFiltered(predicate:
|
|
102
|
-
}
|
|
103
|
-
export interface WorkspaceClusterFilter extends Pick<WorkspaceCluster, "state" | "govern" | "url"> {
|
|
104
|
-
minScore: number;
|
|
105
|
+
findFiltered(predicate: WorkspaceClusterFilter): Promise<WorkspaceClusterWoTLS[]>;
|
|
105
106
|
}
|
|
107
|
+
|
|
108
|
+
export type WorkspaceClusterFilter = Pick<WorkspaceCluster, "applicationCluster"> &
|
|
109
|
+
DeepPartial<Pick<WorkspaceCluster, "name" | "state" | "govern" | "url">> &
|
|
110
|
+
Partial<{ minScore: number }>;
|
package/src/wsready.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* See License-AGPL.txt in the project root for license information.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
// generated using github.com/32leaves/bel on 2022-
|
|
7
|
+
// generated using github.com/32leaves/bel on 2022-10-10 21:41:56.018177383 +0000 UTC m=+0.010324839
|
|
8
8
|
// DO NOT MODIFY
|
|
9
9
|
|
|
10
10
|
export enum WorkspaceInitSource {
|
|
@@ -13,5 +13,5 @@ export enum WorkspaceInitSource {
|
|
|
13
13
|
WorkspaceInitFromOther = "from-other",
|
|
14
14
|
}
|
|
15
15
|
export interface WorkspaceReadyMessage {
|
|
16
|
-
source: WorkspaceInitSource
|
|
16
|
+
source: WorkspaceInitSource;
|
|
17
17
|
}
|