@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.
Files changed (40) 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 -4
  18. package/lib/protocol.d.ts.map +1 -1
  19. package/lib/protocol.js +11 -2
  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.d.ts.map +1 -1
  28. package/lib/wsready.js +1 -1
  29. package/package.json +1 -1
  30. package/pkg-yarn.lock +1 -1
  31. package/provenance-bundle.jsonl +1 -1
  32. package/src/attribution.ts +4 -0
  33. package/src/billing-mode.ts +4 -0
  34. package/src/experiments/configcat.ts +0 -6
  35. package/src/experiments/types.ts +0 -4
  36. package/src/gitpod-service.ts +3 -1
  37. package/src/protocol.ts +18 -3
  38. package/src/teams-projects-protocol.ts +1 -0
  39. package/src/workspace-cluster.ts +11 -6
  40. 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 StartPrebuildContext extends WorkspaceContext {
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 {
@@ -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-09-26 00:48:43.566671023 +0000 UTC m=+0.008587770
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
  }