@gitpod/public-api 0.1.5-mp-grpc-web-prototype.1 → 0.1.5-mp-dashboard-public-api-connect.7

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 (44) hide show
  1. package/lib/gitpod/v1/pagination_pb.d.ts +46 -0
  2. package/lib/gitpod/v1/pagination_pb.js +23 -0
  3. package/lib/gitpod/v1/prebuilds_connectweb.d.ts +65 -0
  4. package/lib/gitpod/v1/prebuilds_connectweb.d.ts.map +1 -0
  5. package/lib/gitpod/v1/prebuilds_connectweb.js +72 -0
  6. package/lib/gitpod/v1/prebuilds_connectweb.js.map +1 -0
  7. package/lib/gitpod/v1/prebuilds_connectweb.ts +71 -0
  8. package/lib/gitpod/v1/prebuilds_pb.d.ts +377 -0
  9. package/lib/gitpod/v1/prebuilds_pb.js +161 -0
  10. package/lib/gitpod/v1/workspaces_connectweb.d.ts +134 -0
  11. package/lib/gitpod/v1/workspaces_connectweb.d.ts.map +1 -0
  12. package/lib/gitpod/v1/workspaces_connectweb.js +141 -0
  13. package/lib/gitpod/v1/workspaces_connectweb.js.map +1 -0
  14. package/lib/gitpod/v1/workspaces_connectweb.ts +140 -0
  15. package/lib/gitpod/v1/workspaces_pb.d.ts +1072 -0
  16. package/lib/gitpod/v1/workspaces_pb.js +403 -0
  17. package/package.json +14 -7
  18. package/pkg-yarn.lock +5 -4
  19. package/provenance-bundle.jsonl +2 -2
  20. package/lib/gitpod/v1/pagination.pb.d.ts +0 -31
  21. package/lib/gitpod/v1/pagination.pb.d.ts.map +0 -1
  22. package/lib/gitpod/v1/pagination.pb.js +0 -53
  23. package/lib/gitpod/v1/pagination.pb.js.map +0 -1
  24. package/lib/gitpod/v1/pagination.pb.ts +0 -77
  25. package/lib/gitpod/v1/prebuilds.pb.d.ts +0 -289
  26. package/lib/gitpod/v1/prebuilds.pb.d.ts.map +0 -1
  27. package/lib/gitpod/v1/prebuilds.pb.js +0 -585
  28. package/lib/gitpod/v1/prebuilds.pb.js.map +0 -1
  29. package/lib/gitpod/v1/prebuilds.pb.ts +0 -782
  30. package/lib/gitpod/v1/workspaces.pb.d.ts +0 -665
  31. package/lib/gitpod/v1/workspaces.pb.d.ts.map +0 -1
  32. package/lib/gitpod/v1/workspaces.pb.js +0 -1571
  33. package/lib/gitpod/v1/workspaces.pb.js.map +0 -1
  34. package/lib/gitpod/v1/workspaces.pb.ts +0 -2031
  35. package/lib/google/protobuf/field_mask.pb.d.ts +0 -231
  36. package/lib/google/protobuf/field_mask.pb.d.ts.map +0 -1
  37. package/lib/google/protobuf/field_mask.pb.js +0 -54
  38. package/lib/google/protobuf/field_mask.pb.js.map +0 -1
  39. package/lib/google/protobuf/field_mask.pb.ts +0 -280
  40. package/lib/google/protobuf/timestamp.pb.d.ts +0 -131
  41. package/lib/google/protobuf/timestamp.pb.d.ts.map +0 -1
  42. package/lib/google/protobuf/timestamp.pb.js +0 -81
  43. package/lib/google/protobuf/timestamp.pb.js.map +0 -1
  44. package/lib/google/protobuf/timestamp.pb.ts +0 -211
@@ -0,0 +1,161 @@
1
+ /**
2
+ * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
3
+ * Licensed under the GNU Affero General Public License (AGPL).
4
+ * See License-AGPL.txt in the project root for license information.
5
+ */
6
+
7
+ // @generated by protoc-gen-es v0.1.1
8
+ // @generated from file gitpod/v1/prebuilds.proto (package gitpod.v1, syntax proto3)
9
+ /* eslint-disable */
10
+ /* @ts-nocheck */
11
+
12
+ import {proto3} from "@bufbuild/protobuf";
13
+ import {WorkspaceContext} from "./workspaces_pb.js";
14
+
15
+ /**
16
+ * @generated from message gitpod.v1.GetPrebuildRequest
17
+ */
18
+ export const GetPrebuildRequest = proto3.makeMessageType(
19
+ "gitpod.v1.GetPrebuildRequest",
20
+ () => [
21
+ { no: 1, name: "prebuild_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
22
+ ],
23
+ );
24
+
25
+ /**
26
+ * @generated from message gitpod.v1.GetPrebuildResponse
27
+ */
28
+ export const GetPrebuildResponse = proto3.makeMessageType(
29
+ "gitpod.v1.GetPrebuildResponse",
30
+ () => [
31
+ { no: 1, name: "prebuild", kind: "message", T: Prebuild },
32
+ ],
33
+ );
34
+
35
+ /**
36
+ * @generated from message gitpod.v1.GetRunningPrebuildRequest
37
+ */
38
+ export const GetRunningPrebuildRequest = proto3.makeMessageType(
39
+ "gitpod.v1.GetRunningPrebuildRequest",
40
+ () => [
41
+ { no: 1, name: "context_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
42
+ ],
43
+ );
44
+
45
+ /**
46
+ * @generated from message gitpod.v1.GetRunningPrebuildResponse
47
+ */
48
+ export const GetRunningPrebuildResponse = proto3.makeMessageType(
49
+ "gitpod.v1.GetRunningPrebuildResponse",
50
+ () => [
51
+ { no: 1, name: "prebuild", kind: "message", T: Prebuild },
52
+ ],
53
+ );
54
+
55
+ /**
56
+ * @generated from message gitpod.v1.ListenToPrebuildStatusRequest
57
+ */
58
+ export const ListenToPrebuildStatusRequest = proto3.makeMessageType(
59
+ "gitpod.v1.ListenToPrebuildStatusRequest",
60
+ () => [
61
+ { no: 1, name: "prebuild_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
62
+ ],
63
+ );
64
+
65
+ /**
66
+ * @generated from message gitpod.v1.ListenToPrebuildStatusResponse
67
+ */
68
+ export const ListenToPrebuildStatusResponse = proto3.makeMessageType(
69
+ "gitpod.v1.ListenToPrebuildStatusResponse",
70
+ () => [
71
+ { no: 1, name: "status", kind: "message", T: PrebuildStatus },
72
+ ],
73
+ );
74
+
75
+ /**
76
+ * @generated from message gitpod.v1.ListenToPrebuildLogsRequest
77
+ */
78
+ export const ListenToPrebuildLogsRequest = proto3.makeMessageType(
79
+ "gitpod.v1.ListenToPrebuildLogsRequest",
80
+ () => [
81
+ { no: 1, name: "prebuild_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
82
+ ],
83
+ );
84
+
85
+ /**
86
+ * @generated from message gitpod.v1.ListenToPrebuildLogsResponse
87
+ */
88
+ export const ListenToPrebuildLogsResponse = proto3.makeMessageType(
89
+ "gitpod.v1.ListenToPrebuildLogsResponse",
90
+ () => [
91
+ { no: 1, name: "line", kind: "scalar", T: 9 /* ScalarType.STRING */ },
92
+ ],
93
+ );
94
+
95
+ /**
96
+ * Prebuild describes a prebuild
97
+ *
98
+ * @generated from message gitpod.v1.Prebuild
99
+ */
100
+ export const Prebuild = proto3.makeMessageType(
101
+ "gitpod.v1.Prebuild",
102
+ () => [
103
+ { no: 1, name: "prebuild_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
104
+ { no: 2, name: "spec", kind: "message", T: PrebuildSpec },
105
+ { no: 3, name: "status", kind: "message", T: PrebuildStatus },
106
+ ],
107
+ );
108
+
109
+ /**
110
+ * PrebuildSpec specifies the prebuild input.
111
+ *
112
+ * @generated from message gitpod.v1.PrebuildSpec
113
+ */
114
+ export const PrebuildSpec = proto3.makeMessageType(
115
+ "gitpod.v1.PrebuildSpec",
116
+ () => [
117
+ { no: 1, name: "context", kind: "message", T: WorkspaceContext },
118
+ { no: 2, name: "incremental", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
119
+ ],
120
+ );
121
+
122
+ /**
123
+ * PrebuildStatus describes the prebuild status.
124
+ *
125
+ * @generated from message gitpod.v1.PrebuildStatus
126
+ */
127
+ export const PrebuildStatus = proto3.makeMessageType(
128
+ "gitpod.v1.PrebuildStatus",
129
+ () => [
130
+ { no: 1, name: "phase", kind: "enum", T: proto3.getEnumType(PrebuildStatus_Phase) },
131
+ { no: 2, name: "result", kind: "enum", T: proto3.getEnumType(PrebuildStatus_Result) },
132
+ { no: 3, name: "result_message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
133
+ ],
134
+ );
135
+
136
+ /**
137
+ * @generated from enum gitpod.v1.PrebuildStatus.Phase
138
+ */
139
+ export const PrebuildStatus_Phase = proto3.makeEnum(
140
+ "gitpod.v1.PrebuildStatus.Phase",
141
+ [
142
+ {no: 0, name: "PHASE_UNSPECIFIED", localName: "UNSPECIFIED"},
143
+ {no: 1, name: "PHASE_PENDING", localName: "PENDING"},
144
+ {no: 2, name: "PHASE_RUNNING", localName: "RUNNING"},
145
+ {no: 3, name: "PHASE_DONE", localName: "DONE"},
146
+ ],
147
+ );
148
+
149
+ /**
150
+ * @generated from enum gitpod.v1.PrebuildStatus.Result
151
+ */
152
+ export const PrebuildStatus_Result = proto3.makeEnum(
153
+ "gitpod.v1.PrebuildStatus.Result",
154
+ [
155
+ {no: 0, name: "RESULT_UNSPECIFIED", localName: "UNSPECIFIED"},
156
+ {no: 1, name: "RESULT_SUCCESS", localName: "SUCCESS"},
157
+ {no: 2, name: "RESULT_USER_CANCELED", localName: "USER_CANCELED"},
158
+ {no: 3, name: "RESULT_SYSTEM_FAILURE", localName: "SYSTEM_FAILURE"},
159
+ {no: 4, name: "RESULT_TASK_FAILURE", localName: "TASK_FAILURE"},
160
+ ],
161
+ );
@@ -0,0 +1,134 @@
1
+ /**
2
+ * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
3
+ * Licensed under the GNU Affero General Public License (AGPL).
4
+ * See License-AGPL.txt in the project root for license information.
5
+ */
6
+ import { CreateAndStartWorkspaceRequest, CreateAndStartWorkspaceResponse, GetActiveWorkspaceInstanceRequest, GetActiveWorkspaceInstanceResponse, GetOwnerTokenRequest, GetOwnerTokenResponse, GetWorkspaceInstanceOwnerTokenRequest, GetWorkspaceInstanceOwnerTokenResponse, GetWorkspaceRequest, GetWorkspaceResponse, ListenToImageBuildLogsRequest, ListenToImageBuildLogsResponse, ListenToWorkspaceInstanceRequest, ListenToWorkspaceInstanceResponse, ListWorkspacesRequest, ListWorkspacesResponse, StartWorkspaceRequest, StartWorkspaceResponse, StopWorkspaceRequest, StopWorkspaceResponse } from "./workspaces_pb.js";
7
+ import { MethodKind } from "@bufbuild/protobuf";
8
+ /**
9
+ * @generated from service gitpod.v1.WorkspacesService
10
+ */
11
+ export declare const WorkspacesService: {
12
+ readonly typeName: "gitpod.v1.WorkspacesService";
13
+ readonly methods: {
14
+ /**
15
+ * ListWorkspaces enumerates all workspaces belonging to the authenticated user.
16
+ *
17
+ * @generated from rpc gitpod.v1.WorkspacesService.ListWorkspaces
18
+ */
19
+ readonly listWorkspaces: {
20
+ readonly name: "ListWorkspaces";
21
+ readonly I: typeof ListWorkspacesRequest;
22
+ readonly O: typeof ListWorkspacesResponse;
23
+ readonly kind: MethodKind.Unary;
24
+ };
25
+ /**
26
+ * GetWorkspace returns a single workspace.
27
+ *
28
+ * @generated from rpc gitpod.v1.WorkspacesService.GetWorkspace
29
+ */
30
+ readonly getWorkspace: {
31
+ readonly name: "GetWorkspace";
32
+ readonly I: typeof GetWorkspaceRequest;
33
+ readonly O: typeof GetWorkspaceResponse;
34
+ readonly kind: MethodKind.Unary;
35
+ };
36
+ /**
37
+ * GetOwnerToken returns an owner token.
38
+ *
39
+ * @generated from rpc gitpod.v1.WorkspacesService.GetOwnerToken
40
+ */
41
+ readonly getOwnerToken: {
42
+ readonly name: "GetOwnerToken";
43
+ readonly I: typeof GetOwnerTokenRequest;
44
+ readonly O: typeof GetOwnerTokenResponse;
45
+ readonly kind: MethodKind.Unary;
46
+ };
47
+ /**
48
+ * CreateAndStartWorkspace creates a new workspace and starts it.
49
+ *
50
+ * @generated from rpc gitpod.v1.WorkspacesService.CreateAndStartWorkspace
51
+ */
52
+ readonly createAndStartWorkspace: {
53
+ readonly name: "CreateAndStartWorkspace";
54
+ readonly I: typeof CreateAndStartWorkspaceRequest;
55
+ readonly O: typeof CreateAndStartWorkspaceResponse;
56
+ readonly kind: MethodKind.Unary;
57
+ };
58
+ /**
59
+ * StartWorkspace starts an existing workspace.
60
+ *
61
+ * @generated from rpc gitpod.v1.WorkspacesService.StartWorkspace
62
+ */
63
+ readonly startWorkspace: {
64
+ readonly name: "StartWorkspace";
65
+ readonly I: typeof StartWorkspaceRequest;
66
+ readonly O: typeof StartWorkspaceResponse;
67
+ readonly kind: MethodKind.Unary;
68
+ };
69
+ /**
70
+ * GetRunningWorkspaceInstance returns the currently active instance of a workspace.
71
+ * Errors:
72
+ * FAILED_PRECONDITION: if a workspace does not a currently active instance
73
+ *
74
+ *
75
+ * @generated from rpc gitpod.v1.WorkspacesService.GetActiveWorkspaceInstance
76
+ */
77
+ readonly getActiveWorkspaceInstance: {
78
+ readonly name: "GetActiveWorkspaceInstance";
79
+ readonly I: typeof GetActiveWorkspaceInstanceRequest;
80
+ readonly O: typeof GetActiveWorkspaceInstanceResponse;
81
+ readonly kind: MethodKind.Unary;
82
+ };
83
+ /**
84
+ * GetWorkspaceInstanceOwnerToken returns the owner token of a workspace instance.
85
+ * Note: the owner token is not part of the workspace instance status so that we can scope its access on the
86
+ * API function level.
87
+ *
88
+ * @generated from rpc gitpod.v1.WorkspacesService.GetWorkspaceInstanceOwnerToken
89
+ */
90
+ readonly getWorkspaceInstanceOwnerToken: {
91
+ readonly name: "GetWorkspaceInstanceOwnerToken";
92
+ readonly I: typeof GetWorkspaceInstanceOwnerTokenRequest;
93
+ readonly O: typeof GetWorkspaceInstanceOwnerTokenResponse;
94
+ readonly kind: MethodKind.Unary;
95
+ };
96
+ /**
97
+ * ListenToWorkspaceInstance listens to workspace instance updates.
98
+ *
99
+ * @generated from rpc gitpod.v1.WorkspacesService.ListenToWorkspaceInstance
100
+ */
101
+ readonly listenToWorkspaceInstance: {
102
+ readonly name: "ListenToWorkspaceInstance";
103
+ readonly I: typeof ListenToWorkspaceInstanceRequest;
104
+ readonly O: typeof ListenToWorkspaceInstanceResponse;
105
+ readonly kind: MethodKind.ServerStreaming;
106
+ };
107
+ /**
108
+ * ListenToImageBuildLogs streams (currently or previously) running workspace image build logs
109
+ *
110
+ * @generated from rpc gitpod.v1.WorkspacesService.ListenToImageBuildLogs
111
+ */
112
+ readonly listenToImageBuildLogs: {
113
+ readonly name: "ListenToImageBuildLogs";
114
+ readonly I: typeof ListenToImageBuildLogsRequest;
115
+ readonly O: typeof ListenToImageBuildLogsResponse;
116
+ readonly kind: MethodKind.ServerStreaming;
117
+ };
118
+ /**
119
+ * StopWorkspace stops a running workspace (instance).
120
+ * Errors:
121
+ * NOT_FOUND: the workspace_id is unkown
122
+ * FAILED_PRECONDITION: if there's no running instance
123
+ *
124
+ * @generated from rpc gitpod.v1.WorkspacesService.StopWorkspace
125
+ */
126
+ readonly stopWorkspace: {
127
+ readonly name: "StopWorkspace";
128
+ readonly I: typeof StopWorkspaceRequest;
129
+ readonly O: typeof StopWorkspaceResponse;
130
+ readonly kind: MethodKind.ServerStreaming;
131
+ };
132
+ };
133
+ };
134
+ //# sourceMappingURL=workspaces_connectweb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces_connectweb.d.ts","sourceRoot":"","sources":["../../../src/gitpod/v1/workspaces_connectweb.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,OAAO,EAAC,8BAA8B,EAAE,+BAA+B,EAAE,iCAAiC,EAAE,kCAAkC,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,qCAAqC,EAAE,sCAAsC,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,gCAAgC,EAAE,iCAAiC,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AAChmB,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;QAG1B;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;;;;WAOG;;;;;;;QAOH;;;;;;WAMG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;;;;WAOG;;;;;;;;CAQG,CAAC"}
@@ -0,0 +1,141 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
4
+ * Licensed under the GNU Affero General Public License (AGPL).
5
+ * See License-AGPL.txt in the project root for license information.
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.WorkspacesService = void 0;
9
+ // @generated by protoc-gen-connect-web v0.2.1 with parameter "target=ts"
10
+ // @generated from file gitpod/v1/workspaces.proto (package gitpod.v1, syntax proto3)
11
+ /* eslint-disable */
12
+ /* @ts-nocheck */
13
+ const workspaces_pb_js_1 = require("./workspaces_pb.js");
14
+ const protobuf_1 = require("@bufbuild/protobuf");
15
+ /**
16
+ * @generated from service gitpod.v1.WorkspacesService
17
+ */
18
+ exports.WorkspacesService = {
19
+ typeName: "gitpod.v1.WorkspacesService",
20
+ methods: {
21
+ /**
22
+ * ListWorkspaces enumerates all workspaces belonging to the authenticated user.
23
+ *
24
+ * @generated from rpc gitpod.v1.WorkspacesService.ListWorkspaces
25
+ */
26
+ listWorkspaces: {
27
+ name: "ListWorkspaces",
28
+ I: workspaces_pb_js_1.ListWorkspacesRequest,
29
+ O: workspaces_pb_js_1.ListWorkspacesResponse,
30
+ kind: protobuf_1.MethodKind.Unary,
31
+ },
32
+ /**
33
+ * GetWorkspace returns a single workspace.
34
+ *
35
+ * @generated from rpc gitpod.v1.WorkspacesService.GetWorkspace
36
+ */
37
+ getWorkspace: {
38
+ name: "GetWorkspace",
39
+ I: workspaces_pb_js_1.GetWorkspaceRequest,
40
+ O: workspaces_pb_js_1.GetWorkspaceResponse,
41
+ kind: protobuf_1.MethodKind.Unary,
42
+ },
43
+ /**
44
+ * GetOwnerToken returns an owner token.
45
+ *
46
+ * @generated from rpc gitpod.v1.WorkspacesService.GetOwnerToken
47
+ */
48
+ getOwnerToken: {
49
+ name: "GetOwnerToken",
50
+ I: workspaces_pb_js_1.GetOwnerTokenRequest,
51
+ O: workspaces_pb_js_1.GetOwnerTokenResponse,
52
+ kind: protobuf_1.MethodKind.Unary,
53
+ },
54
+ /**
55
+ * CreateAndStartWorkspace creates a new workspace and starts it.
56
+ *
57
+ * @generated from rpc gitpod.v1.WorkspacesService.CreateAndStartWorkspace
58
+ */
59
+ createAndStartWorkspace: {
60
+ name: "CreateAndStartWorkspace",
61
+ I: workspaces_pb_js_1.CreateAndStartWorkspaceRequest,
62
+ O: workspaces_pb_js_1.CreateAndStartWorkspaceResponse,
63
+ kind: protobuf_1.MethodKind.Unary,
64
+ },
65
+ /**
66
+ * StartWorkspace starts an existing workspace.
67
+ *
68
+ * @generated from rpc gitpod.v1.WorkspacesService.StartWorkspace
69
+ */
70
+ startWorkspace: {
71
+ name: "StartWorkspace",
72
+ I: workspaces_pb_js_1.StartWorkspaceRequest,
73
+ O: workspaces_pb_js_1.StartWorkspaceResponse,
74
+ kind: protobuf_1.MethodKind.Unary,
75
+ },
76
+ /**
77
+ * GetRunningWorkspaceInstance returns the currently active instance of a workspace.
78
+ * Errors:
79
+ * FAILED_PRECONDITION: if a workspace does not a currently active instance
80
+ *
81
+ *
82
+ * @generated from rpc gitpod.v1.WorkspacesService.GetActiveWorkspaceInstance
83
+ */
84
+ getActiveWorkspaceInstance: {
85
+ name: "GetActiveWorkspaceInstance",
86
+ I: workspaces_pb_js_1.GetActiveWorkspaceInstanceRequest,
87
+ O: workspaces_pb_js_1.GetActiveWorkspaceInstanceResponse,
88
+ kind: protobuf_1.MethodKind.Unary,
89
+ },
90
+ /**
91
+ * GetWorkspaceInstanceOwnerToken returns the owner token of a workspace instance.
92
+ * Note: the owner token is not part of the workspace instance status so that we can scope its access on the
93
+ * API function level.
94
+ *
95
+ * @generated from rpc gitpod.v1.WorkspacesService.GetWorkspaceInstanceOwnerToken
96
+ */
97
+ getWorkspaceInstanceOwnerToken: {
98
+ name: "GetWorkspaceInstanceOwnerToken",
99
+ I: workspaces_pb_js_1.GetWorkspaceInstanceOwnerTokenRequest,
100
+ O: workspaces_pb_js_1.GetWorkspaceInstanceOwnerTokenResponse,
101
+ kind: protobuf_1.MethodKind.Unary,
102
+ },
103
+ /**
104
+ * ListenToWorkspaceInstance listens to workspace instance updates.
105
+ *
106
+ * @generated from rpc gitpod.v1.WorkspacesService.ListenToWorkspaceInstance
107
+ */
108
+ listenToWorkspaceInstance: {
109
+ name: "ListenToWorkspaceInstance",
110
+ I: workspaces_pb_js_1.ListenToWorkspaceInstanceRequest,
111
+ O: workspaces_pb_js_1.ListenToWorkspaceInstanceResponse,
112
+ kind: protobuf_1.MethodKind.ServerStreaming,
113
+ },
114
+ /**
115
+ * ListenToImageBuildLogs streams (currently or previously) running workspace image build logs
116
+ *
117
+ * @generated from rpc gitpod.v1.WorkspacesService.ListenToImageBuildLogs
118
+ */
119
+ listenToImageBuildLogs: {
120
+ name: "ListenToImageBuildLogs",
121
+ I: workspaces_pb_js_1.ListenToImageBuildLogsRequest,
122
+ O: workspaces_pb_js_1.ListenToImageBuildLogsResponse,
123
+ kind: protobuf_1.MethodKind.ServerStreaming,
124
+ },
125
+ /**
126
+ * StopWorkspace stops a running workspace (instance).
127
+ * Errors:
128
+ * NOT_FOUND: the workspace_id is unkown
129
+ * FAILED_PRECONDITION: if there's no running instance
130
+ *
131
+ * @generated from rpc gitpod.v1.WorkspacesService.StopWorkspace
132
+ */
133
+ stopWorkspace: {
134
+ name: "StopWorkspace",
135
+ I: workspaces_pb_js_1.StopWorkspaceRequest,
136
+ O: workspaces_pb_js_1.StopWorkspaceResponse,
137
+ kind: protobuf_1.MethodKind.ServerStreaming,
138
+ },
139
+ }
140
+ };
141
+ //# sourceMappingURL=workspaces_connectweb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces_connectweb.js","sourceRoot":"","sources":["../../../src/gitpod/v1/workspaces_connectweb.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,yEAAyE;AACzE,qFAAqF;AACrF,oBAAoB;AACpB,iBAAiB;AAEjB,yDAAgmB;AAChmB,iDAA8C;AAE9C;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B,QAAQ,EAAE,6BAA6B;IACvC,OAAO,EAAE;QACP;;;;WAIG;QACH,cAAc,EAAE;YACd,IAAI,EAAE,gBAAgB;YACtB,CAAC,EAAE,wCAAqB;YACxB,CAAC,EAAE,yCAAsB;YACzB,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;;;WAIG;QACH,YAAY,EAAE;YACZ,IAAI,EAAE,cAAc;YACpB,CAAC,EAAE,sCAAmB;YACtB,CAAC,EAAE,uCAAoB;YACvB,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;;;WAIG;QACH,aAAa,EAAE;YACb,IAAI,EAAE,eAAe;YACrB,CAAC,EAAE,uCAAoB;YACvB,CAAC,EAAE,wCAAqB;YACxB,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;;;WAIG;QACH,uBAAuB,EAAE;YACvB,IAAI,EAAE,yBAAyB;YAC/B,CAAC,EAAE,iDAA8B;YACjC,CAAC,EAAE,kDAA+B;YAClC,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;;;WAIG;QACH,cAAc,EAAE;YACd,IAAI,EAAE,gBAAgB;YACtB,CAAC,EAAE,wCAAqB;YACxB,CAAC,EAAE,yCAAsB;YACzB,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;;;;;;WAOG;QACH,0BAA0B,EAAE;YAC1B,IAAI,EAAE,4BAA4B;YAClC,CAAC,EAAE,oDAAiC;YACpC,CAAC,EAAE,qDAAkC;YACrC,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;;;;;WAMG;QACH,8BAA8B,EAAE;YAC9B,IAAI,EAAE,gCAAgC;YACtC,CAAC,EAAE,wDAAqC;YACxC,CAAC,EAAE,yDAAsC;YACzC,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;;;WAIG;QACH,yBAAyB,EAAE;YACzB,IAAI,EAAE,2BAA2B;YACjC,CAAC,EAAE,mDAAgC;YACnC,CAAC,EAAE,oDAAiC;YACpC,IAAI,EAAE,qBAAU,CAAC,eAAe;SACjC;QACD;;;;WAIG;QACH,sBAAsB,EAAE;YACtB,IAAI,EAAE,wBAAwB;YAC9B,CAAC,EAAE,gDAA6B;YAChC,CAAC,EAAE,iDAA8B;YACjC,IAAI,EAAE,qBAAU,CAAC,eAAe;SACjC;QACD;;;;;;;WAOG;QACH,aAAa,EAAE;YACb,IAAI,EAAE,eAAe;YACrB,CAAC,EAAE,uCAAoB;YACvB,CAAC,EAAE,wCAAqB;YACxB,IAAI,EAAE,qBAAU,CAAC,eAAe;SACjC;KACF;CACO,CAAC"}
@@ -0,0 +1,140 @@
1
+ /**
2
+ * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
3
+ * Licensed under the GNU Affero General Public License (AGPL).
4
+ * See License-AGPL.txt in the project root for license information.
5
+ */
6
+
7
+ // @generated by protoc-gen-connect-web v0.2.1 with parameter "target=ts"
8
+ // @generated from file gitpod/v1/workspaces.proto (package gitpod.v1, syntax proto3)
9
+ /* eslint-disable */
10
+ /* @ts-nocheck */
11
+
12
+ import {CreateAndStartWorkspaceRequest, CreateAndStartWorkspaceResponse, GetActiveWorkspaceInstanceRequest, GetActiveWorkspaceInstanceResponse, GetOwnerTokenRequest, GetOwnerTokenResponse, GetWorkspaceInstanceOwnerTokenRequest, GetWorkspaceInstanceOwnerTokenResponse, GetWorkspaceRequest, GetWorkspaceResponse, ListenToImageBuildLogsRequest, ListenToImageBuildLogsResponse, ListenToWorkspaceInstanceRequest, ListenToWorkspaceInstanceResponse, ListWorkspacesRequest, ListWorkspacesResponse, StartWorkspaceRequest, StartWorkspaceResponse, StopWorkspaceRequest, StopWorkspaceResponse} from "./workspaces_pb.js";
13
+ import {MethodKind} from "@bufbuild/protobuf";
14
+
15
+ /**
16
+ * @generated from service gitpod.v1.WorkspacesService
17
+ */
18
+ export const WorkspacesService = {
19
+ typeName: "gitpod.v1.WorkspacesService",
20
+ methods: {
21
+ /**
22
+ * ListWorkspaces enumerates all workspaces belonging to the authenticated user.
23
+ *
24
+ * @generated from rpc gitpod.v1.WorkspacesService.ListWorkspaces
25
+ */
26
+ listWorkspaces: {
27
+ name: "ListWorkspaces",
28
+ I: ListWorkspacesRequest,
29
+ O: ListWorkspacesResponse,
30
+ kind: MethodKind.Unary,
31
+ },
32
+ /**
33
+ * GetWorkspace returns a single workspace.
34
+ *
35
+ * @generated from rpc gitpod.v1.WorkspacesService.GetWorkspace
36
+ */
37
+ getWorkspace: {
38
+ name: "GetWorkspace",
39
+ I: GetWorkspaceRequest,
40
+ O: GetWorkspaceResponse,
41
+ kind: MethodKind.Unary,
42
+ },
43
+ /**
44
+ * GetOwnerToken returns an owner token.
45
+ *
46
+ * @generated from rpc gitpod.v1.WorkspacesService.GetOwnerToken
47
+ */
48
+ getOwnerToken: {
49
+ name: "GetOwnerToken",
50
+ I: GetOwnerTokenRequest,
51
+ O: GetOwnerTokenResponse,
52
+ kind: MethodKind.Unary,
53
+ },
54
+ /**
55
+ * CreateAndStartWorkspace creates a new workspace and starts it.
56
+ *
57
+ * @generated from rpc gitpod.v1.WorkspacesService.CreateAndStartWorkspace
58
+ */
59
+ createAndStartWorkspace: {
60
+ name: "CreateAndStartWorkspace",
61
+ I: CreateAndStartWorkspaceRequest,
62
+ O: CreateAndStartWorkspaceResponse,
63
+ kind: MethodKind.Unary,
64
+ },
65
+ /**
66
+ * StartWorkspace starts an existing workspace.
67
+ *
68
+ * @generated from rpc gitpod.v1.WorkspacesService.StartWorkspace
69
+ */
70
+ startWorkspace: {
71
+ name: "StartWorkspace",
72
+ I: StartWorkspaceRequest,
73
+ O: StartWorkspaceResponse,
74
+ kind: MethodKind.Unary,
75
+ },
76
+ /**
77
+ * GetRunningWorkspaceInstance returns the currently active instance of a workspace.
78
+ * Errors:
79
+ * FAILED_PRECONDITION: if a workspace does not a currently active instance
80
+ *
81
+ *
82
+ * @generated from rpc gitpod.v1.WorkspacesService.GetActiveWorkspaceInstance
83
+ */
84
+ getActiveWorkspaceInstance: {
85
+ name: "GetActiveWorkspaceInstance",
86
+ I: GetActiveWorkspaceInstanceRequest,
87
+ O: GetActiveWorkspaceInstanceResponse,
88
+ kind: MethodKind.Unary,
89
+ },
90
+ /**
91
+ * GetWorkspaceInstanceOwnerToken returns the owner token of a workspace instance.
92
+ * Note: the owner token is not part of the workspace instance status so that we can scope its access on the
93
+ * API function level.
94
+ *
95
+ * @generated from rpc gitpod.v1.WorkspacesService.GetWorkspaceInstanceOwnerToken
96
+ */
97
+ getWorkspaceInstanceOwnerToken: {
98
+ name: "GetWorkspaceInstanceOwnerToken",
99
+ I: GetWorkspaceInstanceOwnerTokenRequest,
100
+ O: GetWorkspaceInstanceOwnerTokenResponse,
101
+ kind: MethodKind.Unary,
102
+ },
103
+ /**
104
+ * ListenToWorkspaceInstance listens to workspace instance updates.
105
+ *
106
+ * @generated from rpc gitpod.v1.WorkspacesService.ListenToWorkspaceInstance
107
+ */
108
+ listenToWorkspaceInstance: {
109
+ name: "ListenToWorkspaceInstance",
110
+ I: ListenToWorkspaceInstanceRequest,
111
+ O: ListenToWorkspaceInstanceResponse,
112
+ kind: MethodKind.ServerStreaming,
113
+ },
114
+ /**
115
+ * ListenToImageBuildLogs streams (currently or previously) running workspace image build logs
116
+ *
117
+ * @generated from rpc gitpod.v1.WorkspacesService.ListenToImageBuildLogs
118
+ */
119
+ listenToImageBuildLogs: {
120
+ name: "ListenToImageBuildLogs",
121
+ I: ListenToImageBuildLogsRequest,
122
+ O: ListenToImageBuildLogsResponse,
123
+ kind: MethodKind.ServerStreaming,
124
+ },
125
+ /**
126
+ * StopWorkspace stops a running workspace (instance).
127
+ * Errors:
128
+ * NOT_FOUND: the workspace_id is unkown
129
+ * FAILED_PRECONDITION: if there's no running instance
130
+ *
131
+ * @generated from rpc gitpod.v1.WorkspacesService.StopWorkspace
132
+ */
133
+ stopWorkspace: {
134
+ name: "StopWorkspace",
135
+ I: StopWorkspaceRequest,
136
+ O: StopWorkspaceResponse,
137
+ kind: MethodKind.ServerStreaming,
138
+ },
139
+ }
140
+ } as const;