@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/data/gitpod-schema.json +4 -2
- 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/frontend-dashboard-service.d.ts +13 -4
- package/lib/frontend-dashboard-service.d.ts.map +1 -1
- package/lib/frontend-dashboard-service.js +6 -0
- package/lib/frontend-dashboard-service.js.map +1 -1
- package/lib/gitpod-service.d.ts +2 -0
- package/lib/gitpod-service.d.ts.map +1 -1
- package/lib/gitpod-service.js.map +1 -1
- package/lib/protocol.d.ts +7 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +12 -0
- package/lib/protocol.js.map +1 -1
- package/lib/typings/globals.d.ts +3 -0
- package/lib/typings/globals.d.ts.map +1 -1
- package/lib/workspace-instance.d.ts +0 -2
- package/lib/workspace-instance.d.ts.map +1 -1
- package/lib/wsready.d.ts +1 -1
- package/lib/wsready.js +2 -2
- 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/frontend-dashboard-service.ts +27 -4
- package/src/gitpod-service.ts +2 -0
- package/src/protocol.ts +18 -2
- package/src/typings/globals.ts +4 -0
- package/src/workspace-instance.ts +0 -5
- package/src/wsready.ts +2 -2
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
|
|
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;
|
package/src/typings/globals.ts
CHANGED
|
@@ -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)
|
|
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
|
|
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 {
|