@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.
- package/lib/gitpod/v1/pagination_pb.d.ts +46 -0
- package/lib/gitpod/v1/pagination_pb.js +23 -0
- package/lib/gitpod/v1/prebuilds_connectweb.d.ts +65 -0
- package/lib/gitpod/v1/prebuilds_connectweb.d.ts.map +1 -0
- package/lib/gitpod/v1/prebuilds_connectweb.js +72 -0
- package/lib/gitpod/v1/prebuilds_connectweb.js.map +1 -0
- package/lib/gitpod/v1/prebuilds_connectweb.ts +71 -0
- package/lib/gitpod/v1/prebuilds_pb.d.ts +377 -0
- package/lib/gitpod/v1/prebuilds_pb.js +161 -0
- package/lib/gitpod/v1/workspaces_connectweb.d.ts +134 -0
- package/lib/gitpod/v1/workspaces_connectweb.d.ts.map +1 -0
- package/lib/gitpod/v1/workspaces_connectweb.js +141 -0
- package/lib/gitpod/v1/workspaces_connectweb.js.map +1 -0
- package/lib/gitpod/v1/workspaces_connectweb.ts +140 -0
- package/lib/gitpod/v1/workspaces_pb.d.ts +1072 -0
- package/lib/gitpod/v1/workspaces_pb.js +403 -0
- package/package.json +14 -7
- package/pkg-yarn.lock +5 -4
- package/provenance-bundle.jsonl +2 -2
- package/lib/gitpod/v1/pagination.pb.d.ts +0 -31
- package/lib/gitpod/v1/pagination.pb.d.ts.map +0 -1
- package/lib/gitpod/v1/pagination.pb.js +0 -53
- package/lib/gitpod/v1/pagination.pb.js.map +0 -1
- package/lib/gitpod/v1/pagination.pb.ts +0 -77
- package/lib/gitpod/v1/prebuilds.pb.d.ts +0 -289
- package/lib/gitpod/v1/prebuilds.pb.d.ts.map +0 -1
- package/lib/gitpod/v1/prebuilds.pb.js +0 -585
- package/lib/gitpod/v1/prebuilds.pb.js.map +0 -1
- package/lib/gitpod/v1/prebuilds.pb.ts +0 -782
- package/lib/gitpod/v1/workspaces.pb.d.ts +0 -665
- package/lib/gitpod/v1/workspaces.pb.d.ts.map +0 -1
- package/lib/gitpod/v1/workspaces.pb.js +0 -1571
- package/lib/gitpod/v1/workspaces.pb.js.map +0 -1
- package/lib/gitpod/v1/workspaces.pb.ts +0 -2031
- package/lib/google/protobuf/field_mask.pb.d.ts +0 -231
- package/lib/google/protobuf/field_mask.pb.d.ts.map +0 -1
- package/lib/google/protobuf/field_mask.pb.js +0 -54
- package/lib/google/protobuf/field_mask.pb.js.map +0 -1
- package/lib/google/protobuf/field_mask.pb.ts +0 -280
- package/lib/google/protobuf/timestamp.pb.d.ts +0 -131
- package/lib/google/protobuf/timestamp.pb.d.ts.map +0 -1
- package/lib/google/protobuf/timestamp.pb.js +0 -81
- package/lib/google/protobuf/timestamp.pb.js.map +0 -1
- package/lib/google/protobuf/timestamp.pb.ts +0 -211
|
@@ -0,0 +1,403 @@
|
|
|
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/workspaces.proto (package gitpod.v1, syntax proto3)
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
/* @ts-nocheck */
|
|
11
|
+
|
|
12
|
+
import {FieldMask, proto3, Timestamp} from "@bufbuild/protobuf";
|
|
13
|
+
import {Pagination} from "./pagination_pb.js";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Admission level describes who can access a workspace instance and its ports.
|
|
17
|
+
*
|
|
18
|
+
* @generated from enum gitpod.v1.AdmissionLevel
|
|
19
|
+
*/
|
|
20
|
+
export const AdmissionLevel = proto3.makeEnum(
|
|
21
|
+
"gitpod.v1.AdmissionLevel",
|
|
22
|
+
[
|
|
23
|
+
{no: 0, name: "ADMISSION_LEVEL_UNSPECIFIED", localName: "UNSPECIFIED"},
|
|
24
|
+
{no: 1, name: "ADMISSION_LEVEL_OWNER_ONLY", localName: "OWNER_ONLY"},
|
|
25
|
+
{no: 2, name: "ADMISSION_LEVEL_EVERYONE", localName: "EVERYONE"},
|
|
26
|
+
],
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @generated from message gitpod.v1.ListWorkspacesRequest
|
|
31
|
+
*/
|
|
32
|
+
export const ListWorkspacesRequest = proto3.makeMessageType(
|
|
33
|
+
"gitpod.v1.ListWorkspacesRequest",
|
|
34
|
+
() => [
|
|
35
|
+
{ no: 1, name: "pagination", kind: "message", T: Pagination },
|
|
36
|
+
{ no: 2, name: "field_mask", kind: "message", T: FieldMask },
|
|
37
|
+
],
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @generated from message gitpod.v1.ListWorkspacesResponse
|
|
42
|
+
*/
|
|
43
|
+
export const ListWorkspacesResponse = proto3.makeMessageType(
|
|
44
|
+
"gitpod.v1.ListWorkspacesResponse",
|
|
45
|
+
() => [
|
|
46
|
+
{ no: 1, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
47
|
+
{ no: 2, name: "result", kind: "message", T: ListWorkspacesResponse_WorkspaceAndInstance, repeated: true },
|
|
48
|
+
],
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @generated from message gitpod.v1.ListWorkspacesResponse.WorkspaceAndInstance
|
|
53
|
+
*/
|
|
54
|
+
export const ListWorkspacesResponse_WorkspaceAndInstance = proto3.makeMessageType(
|
|
55
|
+
"gitpod.v1.ListWorkspacesResponse.WorkspaceAndInstance",
|
|
56
|
+
() => [
|
|
57
|
+
{ no: 1, name: "result", kind: "message", T: Workspace },
|
|
58
|
+
{ no: 2, name: "last_active_instances", kind: "message", T: WorkspaceInstance },
|
|
59
|
+
],
|
|
60
|
+
{localName: "ListWorkspacesResponse_WorkspaceAndInstance"},
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @generated from message gitpod.v1.GetWorkspaceRequest
|
|
65
|
+
*/
|
|
66
|
+
export const GetWorkspaceRequest = proto3.makeMessageType(
|
|
67
|
+
"gitpod.v1.GetWorkspaceRequest",
|
|
68
|
+
() => [
|
|
69
|
+
{ no: 1, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
70
|
+
],
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @generated from message gitpod.v1.GetWorkspaceResponse
|
|
75
|
+
*/
|
|
76
|
+
export const GetWorkspaceResponse = proto3.makeMessageType(
|
|
77
|
+
"gitpod.v1.GetWorkspaceResponse",
|
|
78
|
+
() => [
|
|
79
|
+
{ no: 1, name: "result", kind: "message", T: Workspace },
|
|
80
|
+
],
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @generated from message gitpod.v1.GetOwnerTokenRequest
|
|
85
|
+
*/
|
|
86
|
+
export const GetOwnerTokenRequest = proto3.makeMessageType(
|
|
87
|
+
"gitpod.v1.GetOwnerTokenRequest",
|
|
88
|
+
() => [
|
|
89
|
+
{ no: 1, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
90
|
+
],
|
|
91
|
+
);
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @generated from message gitpod.v1.GetOwnerTokenResponse
|
|
95
|
+
*/
|
|
96
|
+
export const GetOwnerTokenResponse = proto3.makeMessageType(
|
|
97
|
+
"gitpod.v1.GetOwnerTokenResponse",
|
|
98
|
+
() => [
|
|
99
|
+
{ no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
100
|
+
],
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @generated from message gitpod.v1.CreateAndStartWorkspaceRequest
|
|
105
|
+
*/
|
|
106
|
+
export const CreateAndStartWorkspaceRequest = proto3.makeMessageType(
|
|
107
|
+
"gitpod.v1.CreateAndStartWorkspaceRequest",
|
|
108
|
+
() => [
|
|
109
|
+
{ no: 1, name: "idempotency_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
110
|
+
{ no: 2, name: "context_url", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "source" },
|
|
111
|
+
{ no: 3, name: "prebuild_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "source" },
|
|
112
|
+
{ no: 5, name: "start_spec", kind: "message", T: StartWorkspaceSpec },
|
|
113
|
+
],
|
|
114
|
+
);
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @generated from message gitpod.v1.CreateAndStartWorkspaceResponse
|
|
118
|
+
*/
|
|
119
|
+
export const CreateAndStartWorkspaceResponse = proto3.makeMessageType(
|
|
120
|
+
"gitpod.v1.CreateAndStartWorkspaceResponse",
|
|
121
|
+
() => [
|
|
122
|
+
{ no: 1, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
123
|
+
],
|
|
124
|
+
);
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* @generated from message gitpod.v1.StartWorkspaceRequest
|
|
128
|
+
*/
|
|
129
|
+
export const StartWorkspaceRequest = proto3.makeMessageType(
|
|
130
|
+
"gitpod.v1.StartWorkspaceRequest",
|
|
131
|
+
() => [
|
|
132
|
+
{ no: 1, name: "idempotency_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
133
|
+
{ no: 2, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
134
|
+
{ no: 3, name: "spec", kind: "message", T: StartWorkspaceSpec },
|
|
135
|
+
],
|
|
136
|
+
);
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @generated from message gitpod.v1.StartWorkspaceResponse
|
|
140
|
+
*/
|
|
141
|
+
export const StartWorkspaceResponse = proto3.makeMessageType(
|
|
142
|
+
"gitpod.v1.StartWorkspaceResponse",
|
|
143
|
+
() => [
|
|
144
|
+
{ no: 1, name: "instance_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
145
|
+
{ no: 2, name: "workspace_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
146
|
+
],
|
|
147
|
+
);
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @generated from message gitpod.v1.GetActiveWorkspaceInstanceRequest
|
|
151
|
+
*/
|
|
152
|
+
export const GetActiveWorkspaceInstanceRequest = proto3.makeMessageType(
|
|
153
|
+
"gitpod.v1.GetActiveWorkspaceInstanceRequest",
|
|
154
|
+
() => [
|
|
155
|
+
{ no: 1, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
156
|
+
],
|
|
157
|
+
);
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @generated from message gitpod.v1.GetActiveWorkspaceInstanceResponse
|
|
161
|
+
*/
|
|
162
|
+
export const GetActiveWorkspaceInstanceResponse = proto3.makeMessageType(
|
|
163
|
+
"gitpod.v1.GetActiveWorkspaceInstanceResponse",
|
|
164
|
+
() => [
|
|
165
|
+
{ no: 1, name: "instance", kind: "message", T: WorkspaceInstance },
|
|
166
|
+
],
|
|
167
|
+
);
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @generated from message gitpod.v1.GetWorkspaceInstanceOwnerTokenRequest
|
|
171
|
+
*/
|
|
172
|
+
export const GetWorkspaceInstanceOwnerTokenRequest = proto3.makeMessageType(
|
|
173
|
+
"gitpod.v1.GetWorkspaceInstanceOwnerTokenRequest",
|
|
174
|
+
() => [
|
|
175
|
+
{ no: 1, name: "instance_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
176
|
+
],
|
|
177
|
+
);
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @generated from message gitpod.v1.GetWorkspaceInstanceOwnerTokenResponse
|
|
181
|
+
*/
|
|
182
|
+
export const GetWorkspaceInstanceOwnerTokenResponse = proto3.makeMessageType(
|
|
183
|
+
"gitpod.v1.GetWorkspaceInstanceOwnerTokenResponse",
|
|
184
|
+
() => [
|
|
185
|
+
{ no: 1, name: "owner_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
186
|
+
],
|
|
187
|
+
);
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* @generated from message gitpod.v1.ListenToWorkspaceInstanceRequest
|
|
191
|
+
*/
|
|
192
|
+
export const ListenToWorkspaceInstanceRequest = proto3.makeMessageType(
|
|
193
|
+
"gitpod.v1.ListenToWorkspaceInstanceRequest",
|
|
194
|
+
() => [
|
|
195
|
+
{ no: 1, name: "instance_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
196
|
+
],
|
|
197
|
+
);
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* @generated from message gitpod.v1.ListenToWorkspaceInstanceResponse
|
|
201
|
+
*/
|
|
202
|
+
export const ListenToWorkspaceInstanceResponse = proto3.makeMessageType(
|
|
203
|
+
"gitpod.v1.ListenToWorkspaceInstanceResponse",
|
|
204
|
+
() => [
|
|
205
|
+
{ no: 1, name: "instance_status", kind: "message", T: WorkspaceInstanceStatus },
|
|
206
|
+
],
|
|
207
|
+
);
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* @generated from message gitpod.v1.ListenToImageBuildLogsRequest
|
|
211
|
+
*/
|
|
212
|
+
export const ListenToImageBuildLogsRequest = proto3.makeMessageType(
|
|
213
|
+
"gitpod.v1.ListenToImageBuildLogsRequest",
|
|
214
|
+
() => [
|
|
215
|
+
{ no: 1, name: "instance_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
216
|
+
],
|
|
217
|
+
);
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* @generated from message gitpod.v1.ListenToImageBuildLogsResponse
|
|
221
|
+
*/
|
|
222
|
+
export const ListenToImageBuildLogsResponse = proto3.makeMessageType(
|
|
223
|
+
"gitpod.v1.ListenToImageBuildLogsResponse",
|
|
224
|
+
() => [
|
|
225
|
+
{ no: 1, name: "line", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
226
|
+
],
|
|
227
|
+
);
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* @generated from message gitpod.v1.StopWorkspaceRequest
|
|
231
|
+
*/
|
|
232
|
+
export const StopWorkspaceRequest = proto3.makeMessageType(
|
|
233
|
+
"gitpod.v1.StopWorkspaceRequest",
|
|
234
|
+
() => [
|
|
235
|
+
{ no: 1, name: "idempotency_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
236
|
+
{ no: 2, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
237
|
+
],
|
|
238
|
+
);
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* @generated from message gitpod.v1.StopWorkspaceResponse
|
|
242
|
+
*/
|
|
243
|
+
export const StopWorkspaceResponse = proto3.makeMessageType(
|
|
244
|
+
"gitpod.v1.StopWorkspaceResponse",
|
|
245
|
+
[],
|
|
246
|
+
);
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Workspace describes a single workspace
|
|
250
|
+
*
|
|
251
|
+
* @generated from message gitpod.v1.Workspace
|
|
252
|
+
*/
|
|
253
|
+
export const Workspace = proto3.makeMessageType(
|
|
254
|
+
"gitpod.v1.Workspace",
|
|
255
|
+
() => [
|
|
256
|
+
{ no: 1, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
257
|
+
{ no: 2, name: "owner_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
258
|
+
{ no: 3, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
259
|
+
{ no: 4, name: "context", kind: "message", T: WorkspaceContext },
|
|
260
|
+
{ no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
261
|
+
],
|
|
262
|
+
);
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* WorkspaceContext describes the context a workspace was created from
|
|
266
|
+
*
|
|
267
|
+
* @generated from message gitpod.v1.WorkspaceContext
|
|
268
|
+
*/
|
|
269
|
+
export const WorkspaceContext = proto3.makeMessageType(
|
|
270
|
+
"gitpod.v1.WorkspaceContext",
|
|
271
|
+
() => [
|
|
272
|
+
{ no: 1, name: "context_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
273
|
+
{ no: 2, name: "git", kind: "message", T: WorkspaceContext_Git, oneof: "details" },
|
|
274
|
+
{ no: 3, name: "prebuild", kind: "message", T: WorkspaceContext_Prebuild, oneof: "details" },
|
|
275
|
+
{ no: 4, name: "snapshot", kind: "message", T: WorkspaceContext_Snapshot, oneof: "details" },
|
|
276
|
+
],
|
|
277
|
+
);
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Explicit Git context
|
|
281
|
+
*
|
|
282
|
+
* @generated from message gitpod.v1.WorkspaceContext.Git
|
|
283
|
+
*/
|
|
284
|
+
export const WorkspaceContext_Git = proto3.makeMessageType(
|
|
285
|
+
"gitpod.v1.WorkspaceContext.Git",
|
|
286
|
+
() => [
|
|
287
|
+
{ no: 1, name: "normalized_context_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
288
|
+
{ no: 2, name: "commit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
289
|
+
],
|
|
290
|
+
{localName: "WorkspaceContext_Git"},
|
|
291
|
+
);
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Workspace was created from a prebuild
|
|
295
|
+
*
|
|
296
|
+
* @generated from message gitpod.v1.WorkspaceContext.Prebuild
|
|
297
|
+
*/
|
|
298
|
+
export const WorkspaceContext_Prebuild = proto3.makeMessageType(
|
|
299
|
+
"gitpod.v1.WorkspaceContext.Prebuild",
|
|
300
|
+
() => [
|
|
301
|
+
{ no: 1, name: "original_context", kind: "message", T: WorkspaceContext_Git },
|
|
302
|
+
{ no: 2, name: "prebuild_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
303
|
+
],
|
|
304
|
+
{localName: "WorkspaceContext_Prebuild"},
|
|
305
|
+
);
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Snapshot context points to the snapshot which the workspace was created from
|
|
309
|
+
*
|
|
310
|
+
* @generated from message gitpod.v1.WorkspaceContext.Snapshot
|
|
311
|
+
*/
|
|
312
|
+
export const WorkspaceContext_Snapshot = proto3.makeMessageType(
|
|
313
|
+
"gitpod.v1.WorkspaceContext.Snapshot",
|
|
314
|
+
() => [
|
|
315
|
+
{ no: 1, name: "snapshot_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
316
|
+
],
|
|
317
|
+
{localName: "WorkspaceContext_Snapshot"},
|
|
318
|
+
);
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* WorkspaceInstance describes a single workspace instance
|
|
322
|
+
*
|
|
323
|
+
* @generated from message gitpod.v1.WorkspaceInstance
|
|
324
|
+
*/
|
|
325
|
+
export const WorkspaceInstance = proto3.makeMessageType(
|
|
326
|
+
"gitpod.v1.WorkspaceInstance",
|
|
327
|
+
() => [
|
|
328
|
+
{ no: 1, name: "instance_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
329
|
+
{ no: 2, name: "workspace_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
330
|
+
{ no: 3, name: "created_at", kind: "message", T: Timestamp },
|
|
331
|
+
{ no: 4, name: "status", kind: "message", T: WorkspaceInstanceStatus },
|
|
332
|
+
],
|
|
333
|
+
);
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* WorkspaceStatus describes a workspace status
|
|
337
|
+
*
|
|
338
|
+
* @generated from message gitpod.v1.WorkspaceInstanceStatus
|
|
339
|
+
*/
|
|
340
|
+
export const WorkspaceInstanceStatus = proto3.makeMessageType(
|
|
341
|
+
"gitpod.v1.WorkspaceInstanceStatus",
|
|
342
|
+
() => [
|
|
343
|
+
{ no: 1, name: "status_version", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
344
|
+
{ no: 2, name: "phase", kind: "enum", T: proto3.getEnumType(WorkspaceInstanceStatus_Phase) },
|
|
345
|
+
{ no: 3, name: "conditions", kind: "message", T: WorkspaceInstanceStatus_Conditions },
|
|
346
|
+
{ no: 4, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
347
|
+
{ no: 5, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
348
|
+
{ no: 6, name: "admission", kind: "enum", T: proto3.getEnumType(AdmissionLevel) },
|
|
349
|
+
],
|
|
350
|
+
);
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Phase is a simple, high-level summary of where the workspace instance is in its lifecycle.
|
|
354
|
+
* The phase is not intended to be a comprehensive rollup of observations of the workspace state,
|
|
355
|
+
* nor is it intended to be a comprehensive state machine.
|
|
356
|
+
* (based on https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase)
|
|
357
|
+
*
|
|
358
|
+
* @generated from enum gitpod.v1.WorkspaceInstanceStatus.Phase
|
|
359
|
+
*/
|
|
360
|
+
export const WorkspaceInstanceStatus_Phase = proto3.makeEnum(
|
|
361
|
+
"gitpod.v1.WorkspaceInstanceStatus.Phase",
|
|
362
|
+
[
|
|
363
|
+
{no: 0, name: "PHASE_UNSPECIFIED", localName: "UNSPECIFIED"},
|
|
364
|
+
{no: 1, name: "PHASE_PREPARING", localName: "PREPARING"},
|
|
365
|
+
{no: 2, name: "PHASE_IMAGEBUILD", localName: "IMAGEBUILD"},
|
|
366
|
+
{no: 3, name: "PHASE_PENDING", localName: "PENDING"},
|
|
367
|
+
{no: 4, name: "PHASE_CREATING", localName: "CREATING"},
|
|
368
|
+
{no: 5, name: "PHASE_INITIALIZING", localName: "INITIALIZING"},
|
|
369
|
+
{no: 6, name: "PHASE_RUNNING", localName: "RUNNING"},
|
|
370
|
+
{no: 7, name: "PHASE_INTERRUPTED", localName: "INTERRUPTED"},
|
|
371
|
+
{no: 8, name: "PHASE_STOPPING", localName: "STOPPING"},
|
|
372
|
+
{no: 9, name: "PHASE_STOPPED", localName: "STOPPED"},
|
|
373
|
+
],
|
|
374
|
+
);
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Conditions gives more detailed information as to the state of the workspace. Which condition actually
|
|
378
|
+
* has a value depends on the phase the workspace is in.
|
|
379
|
+
*
|
|
380
|
+
* @generated from message gitpod.v1.WorkspaceInstanceStatus.Conditions
|
|
381
|
+
*/
|
|
382
|
+
export const WorkspaceInstanceStatus_Conditions = proto3.makeMessageType(
|
|
383
|
+
"gitpod.v1.WorkspaceInstanceStatus.Conditions",
|
|
384
|
+
() => [
|
|
385
|
+
{ no: 1, name: "failed", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
386
|
+
{ no: 2, name: "timeout", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
387
|
+
{ no: 9, name: "first_user_activity", kind: "message", T: Timestamp },
|
|
388
|
+
{ no: 11, name: "stopped_by_request", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
389
|
+
],
|
|
390
|
+
{localName: "WorkspaceInstanceStatus_Conditions"},
|
|
391
|
+
);
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* StartWorkspaceSpec influences the workspace start
|
|
395
|
+
*
|
|
396
|
+
* future per-workspace-start fields, e.g. region
|
|
397
|
+
*
|
|
398
|
+
* @generated from message gitpod.v1.StartWorkspaceSpec
|
|
399
|
+
*/
|
|
400
|
+
export const StartWorkspaceSpec = proto3.makeMessageType(
|
|
401
|
+
"gitpod.v1.StartWorkspaceSpec",
|
|
402
|
+
[],
|
|
403
|
+
);
|
package/package.json
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"@gitpod/gitpod-protocol": "0.1.5",
|
|
4
|
+
"@grpc/grpc-js": "^1.3.7",
|
|
5
|
+
"google-protobuf": "^3.19.1",
|
|
6
|
+
"opentracing": "^0.14.4"
|
|
6
7
|
},
|
|
7
8
|
"devDependencies": {
|
|
9
|
+
"@bufbuild/connect-web": "^0.2.1",
|
|
10
|
+
"@bufbuild/protobuf": "^0.1.1",
|
|
11
|
+
"@bufbuild/protoc-gen-connect-web": "^0.2.1",
|
|
12
|
+
"@bufbuild/protoc-gen-es": "^0.1.1",
|
|
13
|
+
"@testdeck/mocha": "0.1.2",
|
|
14
|
+
"@types/chai": "^4.1.2",
|
|
15
|
+
"@types/google-protobuf": "^3.15.5",
|
|
16
|
+
"@types/node": "^16.11.0",
|
|
8
17
|
"grpc-tools": "^1.11.2",
|
|
18
|
+
"grpc_tools_node_protoc_ts": "^5.3.2",
|
|
9
19
|
"typescript": "~4.4.2",
|
|
10
20
|
"typescript-formatter": "^7.2.2"
|
|
11
21
|
},
|
|
@@ -16,14 +26,11 @@
|
|
|
16
26
|
],
|
|
17
27
|
"license": "UNLICENSED",
|
|
18
28
|
"name": "@gitpod/public-api",
|
|
19
|
-
"overrides": {
|
|
20
|
-
"long": "4.0.0"
|
|
21
|
-
},
|
|
22
29
|
"scripts": {
|
|
23
30
|
"build": "mkdir -p lib; tsc && cp -fR src/* lib",
|
|
24
31
|
"test": "mocha --opts mocha.opts './**/*.spec.ts' --exclude './node_modules/**'",
|
|
25
32
|
"test:brk": "yarn test --inspect-brk",
|
|
26
33
|
"watch": "leeway exec --package .:lib --transitive-dependencies --filter-type yarn --components --parallel -- tsc -w --preserveWatchOutput"
|
|
27
34
|
},
|
|
28
|
-
"version": "0.1.5-mp-
|
|
35
|
+
"version": "0.1.5-mp-dashboard-public-api-connect.7"
|
|
29
36
|
}
|
package/pkg-yarn.lock
CHANGED
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
"@gitpod/public-api@0.1.5":
|
|
6
6
|
version "0.1.5"
|
|
7
|
-
resolved "file:///tmp/cache/
|
|
7
|
+
resolved "file:///tmp/cache/f1d7fdf6eb2decad8b798c7c357f6402917f5546.tar.gz"
|
|
8
8
|
dependencies:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
"@gitpod/gitpod-protocol" "0.1.5"
|
|
10
|
+
"@grpc/grpc-js" "^1.3.7"
|
|
11
|
+
google-protobuf "^3.19.1"
|
|
12
|
+
opentracing "^0.14.4"
|
|
12
13
|
|