@gitpod/gitpod-protocol 0.1.5-tar-sh-active-users-new.0 → 0.1.5-tar-sh-active-users-new.2

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 +2 -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.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 +2 -1
  37. package/src/protocol.ts +18 -2
  38. package/src/teams-projects-protocol.ts +1 -0
  39. package/src/workspace-cluster.ts +11 -6
  40. package/src/wsready.ts +2 -2
@@ -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
  }