@gitpod/gitpod-protocol 0.1.5-pd-port-15915.4 → 0.1.5-pd-timeout-16089.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.
package/src/protocol.ts CHANGED
@@ -4,10 +4,11 @@
4
4
  * See License.AGPL.txt in the project root for license information.
5
5
  */
6
6
 
7
- import { WorkspaceInstance, PortVisibility, PortProtocol } from "./workspace-instance";
7
+ import { WorkspaceInstance, PortVisibility } from "./workspace-instance";
8
8
  import { RoleOrPermission } from "./permission";
9
9
  import { Project } from "./teams-projects-protocol";
10
10
  import { createHash } from "crypto";
11
+ import { AttributionId } from "./attribution";
11
12
 
12
13
  export interface UserInfo {
13
14
  name?: string;
@@ -178,6 +179,17 @@ export namespace User {
178
179
  return user;
179
180
  }
180
181
 
182
+ export function getDefaultAttributionId(user: User): AttributionId {
183
+ if (user.usageAttributionId) {
184
+ const result = AttributionId.parse(user.usageAttributionId);
185
+ if (!result) {
186
+ throw new Error("Invalid attribution ID: " + user.usageAttributionId);
187
+ }
188
+ return result;
189
+ }
190
+ return AttributionId.create(user);
191
+ }
192
+
181
193
  // The actual Profile of a User
182
194
  export interface Profile {
183
195
  name: string;
@@ -218,6 +230,9 @@ export interface AdditionalUserData {
218
230
  // whether the user has been migrated to team attribution.
219
231
  // a corresponding feature flag (team_only_attribution) triggers the migration.
220
232
  isMigratedToTeamOnlyAttribution?: boolean;
233
+ // user globol workspace timeout
234
+ workspaceTimeout?: string;
235
+ disabledClosedTimeout?: boolean;
221
236
  }
222
237
  export namespace AdditionalUserData {
223
238
  export function set(user: User, partialData: Partial<AdditionalUserData>): User {
@@ -830,6 +845,7 @@ export interface WorkspaceConfig {
830
845
  vscode?: VSCodeConfig;
831
846
  jetbrains?: JetBrainsConfig;
832
847
  coreDump?: CoreDumpConfig;
848
+ ideCredentials?: string;
833
849
 
834
850
  /** deprecated. Enabled by default **/
835
851
  experimentalNetwork?: boolean;
@@ -964,7 +980,6 @@ export interface PortConfig {
964
980
  port: number;
965
981
  onOpen?: PortOnOpen;
966
982
  visibility?: PortVisibility;
967
- protocol?: PortProtocol;
968
983
  description?: string;
969
984
  name?: string;
970
985
  }
@@ -1405,6 +1420,7 @@ export interface AuthProviderInfo {
1405
1420
  readonly authProviderType: string;
1406
1421
  readonly host: string;
1407
1422
  readonly ownerId?: string;
1423
+ readonly organizationId?: string;
1408
1424
  readonly verified: boolean;
1409
1425
  readonly isReadonly?: boolean;
1410
1426
  readonly hiddenOnDashboard?: boolean;
@@ -11,5 +11,9 @@ interface Window {
11
11
  loggedUserID?: string;
12
12
 
13
13
  openDesktopIDE(url: string): void;
14
+
15
+ encrypt(content: string): string;
16
+ decrypt(content: string): string;
17
+ isEncryptedData(content: string): boolean;
14
18
  };
15
19
  }
@@ -186,9 +186,6 @@ export type AdmissionLevel = "owner_only" | "everyone";
186
186
  // PortVisibility describes how a port can be accessed
187
187
  export type PortVisibility = "public" | "private";
188
188
 
189
- // PortProtocol
190
- export type PortProtocol = "http" | "https";
191
-
192
189
  // WorkspaceInstancePort describes a port exposed on a workspace instance
193
190
  export interface WorkspaceInstancePort {
194
191
  // The outward-facing port number
@@ -199,8 +196,6 @@ export interface WorkspaceInstancePort {
199
196
 
200
197
  // Public, outward-facing URL where the port can be accessed on.
201
198
  url?: string;
202
-
203
- protocol?: PortProtocol;
204
199
  }
205
200
 
206
201
  // WorkspaceInstanceRepoStatus describes the status of th Git working copy of a workspace
package/src/wsready.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
- * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
2
+ * Copyright (c) 2023 Gitpod GmbH. All rights reserved.
3
3
  * Licensed under the GNU Affero General Public License (AGPL).
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-11-25 13:39:08.995865257 +0000 UTC m=+0.015035221
7
+ // generated using github.com/32leaves/bel on 2023-02-14 09:41:16.808994006 +0000 UTC m=+0.008933200
8
8
  // DO NOT MODIFY
9
9
 
10
10
  export enum WorkspaceInitSource {