@gitpod/gitpod-protocol 0.1.5-mp-cs-use-buf-codegen.0 → 0.1.5-mp-server-get-team.0

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.
Files changed (39) hide show
  1. package/lib/attribution.d.ts +1 -0
  2. package/lib/attribution.d.ts.map +1 -1
  3. package/lib/attribution.js +4 -0
  4. package/lib/attribution.js.map +1 -1
  5. package/lib/billing-mode.d.ts +2 -0
  6. package/lib/billing-mode.d.ts.map +1 -1
  7. package/lib/experiments/configcat.d.ts +0 -2
  8. package/lib/experiments/configcat.d.ts.map +1 -1
  9. package/lib/experiments/configcat.js +1 -7
  10. package/lib/experiments/configcat.js.map +1 -1
  11. package/lib/experiments/types.d.ts +0 -2
  12. package/lib/experiments/types.d.ts.map +1 -1
  13. package/lib/experiments/types.js.map +1 -1
  14. package/lib/gitpod-service.d.ts +3 -1
  15. package/lib/gitpod-service.d.ts.map +1 -1
  16. package/lib/gitpod-service.js.map +1 -1
  17. package/lib/protocol.d.ts +13 -3
  18. package/lib/protocol.d.ts.map +1 -1
  19. package/lib/protocol.js +11 -1
  20. package/lib/protocol.js.map +1 -1
  21. package/lib/teams-projects-protocol.d.ts +1 -0
  22. package/lib/teams-projects-protocol.d.ts.map +1 -1
  23. package/lib/teams-projects-protocol.js.map +1 -1
  24. package/lib/workspace-cluster.d.ts +6 -5
  25. package/lib/workspace-cluster.d.ts.map +1 -1
  26. package/lib/workspace-cluster.js.map +1 -1
  27. package/lib/wsready.js +1 -1
  28. package/package.json +1 -1
  29. package/pkg-yarn.lock +1 -1
  30. package/provenance-bundle.jsonl +1 -1
  31. package/src/attribution.ts +4 -0
  32. package/src/billing-mode.ts +4 -0
  33. package/src/experiments/configcat.ts +0 -6
  34. package/src/experiments/types.ts +0 -4
  35. package/src/gitpod-service.ts +3 -1
  36. package/src/protocol.ts +18 -2
  37. package/src/teams-projects-protocol.ts +1 -0
  38. package/src/workspace-cluster.ts +11 -6
  39. package/src/wsready.ts +1 -1
package/src/protocol.ts CHANGED
@@ -298,6 +298,7 @@ export const WorkspaceFeatureFlags = {
298
298
  protected_secrets: undefined,
299
299
  workspace_class_limiting: undefined,
300
300
  workspace_connection_limiting: undefined,
301
+ workspace_psi: undefined,
301
302
  };
302
303
  export type NamedWorkspaceFeatureFlag = keyof typeof WorkspaceFeatureFlags;
303
304
  export namespace NamedWorkspaceFeatureFlag {
@@ -1111,13 +1112,16 @@ export namespace SnapshotContext {
1111
1112
  }
1112
1113
  }
1113
1114
 
1114
- export interface StartPrebuildContext extends WorkspaceContext {
1115
- actual: WorkspaceContext;
1115
+ export interface WithCommitHistory {
1116
1116
  commitHistory?: string[];
1117
1117
  additionalRepositoryCommitHistories?: {
1118
1118
  cloneUrl: string;
1119
1119
  commitHistory: string[];
1120
1120
  }[];
1121
+ }
1122
+
1123
+ export interface StartPrebuildContext extends WorkspaceContext, WithCommitHistory {
1124
+ actual: WorkspaceContext;
1121
1125
  project?: Project;
1122
1126
  branch?: string;
1123
1127
  }
@@ -1200,6 +1204,16 @@ export namespace AdditionalContentContext {
1200
1204
  }
1201
1205
  }
1202
1206
 
1207
+ export interface OpenPrebuildContext extends WorkspaceContext {
1208
+ openPrebuildID: string;
1209
+ }
1210
+
1211
+ export namespace OpenPrebuildContext {
1212
+ export function is(ctx: any): ctx is OpenPrebuildContext {
1213
+ return "openPrebuildID" in ctx;
1214
+ }
1215
+ }
1216
+
1203
1217
  export interface CommitContext extends WorkspaceContext, GitCheckoutInfo {
1204
1218
  /** @deprecated Moved to .repository.cloneUrl, left here for backwards-compatibility for old workspace contextes in the DB */
1205
1219
  cloneUrl?: string;
@@ -1372,6 +1386,8 @@ export enum CreateWorkspaceMode {
1372
1386
  UsePrebuild = "use-prebuild",
1373
1387
  // SelectIfRunning returns a list of currently running workspaces for the context URL if there are any, otherwise falls back to Default mode
1374
1388
  SelectIfRunning = "select-if-running",
1389
+ // UseLastSuccessfulPrebuild returns ...
1390
+ UseLastSuccessfulPrebuild = "use-last-successful-prebuild",
1375
1391
  }
1376
1392
 
1377
1393
  export namespace WorkspaceCreationResult {
@@ -45,6 +45,7 @@ export namespace Project {
45
45
 
46
46
  export interface Overview {
47
47
  branches: BranchDetails[];
48
+ isConsideredInactive?: boolean;
48
49
  }
49
50
 
50
51
  export namespace Overview {
@@ -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: DeepPartial<WorkspaceClusterFilter>): Promise<WorkspaceClusterWoTLS[]>;
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-10-10 21:36:50.570418254 +0000 UTC m=+0.012287708
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 {