@gitpod/public-api 0.1.5-mp-grpc-web-prototype.1 → 0.1.5-mp-remove-moment.0

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 (39) hide show
  1. package/lib/gitpod/v1/pagination_grpc_pb.js +7 -0
  2. package/lib/gitpod/v1/pagination_pb.d.ts +36 -0
  3. package/lib/gitpod/v1/pagination_pb.js +206 -0
  4. package/lib/gitpod/v1/prebuilds_grpc_pb.d.ts +95 -0
  5. package/lib/gitpod/v1/prebuilds_grpc_pb.js +161 -0
  6. package/lib/gitpod/v1/prebuilds_pb.d.ts +283 -0
  7. package/lib/gitpod/v1/prebuilds_pb.js +1997 -0
  8. package/lib/gitpod/v1/workspaces_grpc_pb.d.ts +197 -0
  9. package/lib/gitpod/v1/workspaces_grpc_pb.js +368 -0
  10. package/lib/gitpod/v1/workspaces_pb.d.ts +810 -0
  11. package/lib/gitpod/v1/workspaces_pb.js +5976 -0
  12. package/package.json +10 -7
  13. package/pkg-yarn.lock +5 -4
  14. package/provenance-bundle.jsonl +2 -2
  15. package/lib/gitpod/v1/pagination.pb.d.ts +0 -31
  16. package/lib/gitpod/v1/pagination.pb.d.ts.map +0 -1
  17. package/lib/gitpod/v1/pagination.pb.js +0 -53
  18. package/lib/gitpod/v1/pagination.pb.js.map +0 -1
  19. package/lib/gitpod/v1/pagination.pb.ts +0 -77
  20. package/lib/gitpod/v1/prebuilds.pb.d.ts +0 -289
  21. package/lib/gitpod/v1/prebuilds.pb.d.ts.map +0 -1
  22. package/lib/gitpod/v1/prebuilds.pb.js +0 -585
  23. package/lib/gitpod/v1/prebuilds.pb.js.map +0 -1
  24. package/lib/gitpod/v1/prebuilds.pb.ts +0 -782
  25. package/lib/gitpod/v1/workspaces.pb.d.ts +0 -665
  26. package/lib/gitpod/v1/workspaces.pb.d.ts.map +0 -1
  27. package/lib/gitpod/v1/workspaces.pb.js +0 -1571
  28. package/lib/gitpod/v1/workspaces.pb.js.map +0 -1
  29. package/lib/gitpod/v1/workspaces.pb.ts +0 -2031
  30. package/lib/google/protobuf/field_mask.pb.d.ts +0 -231
  31. package/lib/google/protobuf/field_mask.pb.d.ts.map +0 -1
  32. package/lib/google/protobuf/field_mask.pb.js +0 -54
  33. package/lib/google/protobuf/field_mask.pb.js.map +0 -1
  34. package/lib/google/protobuf/field_mask.pb.ts +0 -280
  35. package/lib/google/protobuf/timestamp.pb.d.ts +0 -131
  36. package/lib/google/protobuf/timestamp.pb.d.ts.map +0 -1
  37. package/lib/google/protobuf/timestamp.pb.js +0 -81
  38. package/lib/google/protobuf/timestamp.pb.js.map +0 -1
  39. package/lib/google/protobuf/timestamp.pb.ts +0 -211
@@ -1,665 +0,0 @@
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 { CallContext, CallOptions } from "nice-grpc-common";
7
- import * as _m0 from "protobufjs/minimal";
8
- import { Pagination } from "./pagination.pb";
9
- export declare const protobufPackage = "gitpod.v1";
10
- /** Admission level describes who can access a workspace instance and its ports. */
11
- export declare enum AdmissionLevel {
12
- ADMISSION_LEVEL_UNSPECIFIED = "ADMISSION_LEVEL_UNSPECIFIED",
13
- /** ADMISSION_LEVEL_OWNER_ONLY - ADMISSION_LEVEL_OWNER_ONLY means the workspace can only be accessed using the owner token */
14
- ADMISSION_LEVEL_OWNER_ONLY = "ADMISSION_LEVEL_OWNER_ONLY",
15
- /** ADMISSION_LEVEL_EVERYONE - ADMISSION_LEVEL_EVERYONE means the workspace (including ports) can be accessed by everyone. */
16
- ADMISSION_LEVEL_EVERYONE = "ADMISSION_LEVEL_EVERYONE",
17
- UNRECOGNIZED = "UNRECOGNIZED"
18
- }
19
- export declare function admissionLevelFromJSON(object: any): AdmissionLevel;
20
- export declare function admissionLevelToNumber(object: AdmissionLevel): number;
21
- export interface ListWorkspacesRequest {
22
- pagination: Pagination | undefined;
23
- fieldMask: string[] | undefined;
24
- }
25
- export interface ListWorkspacesResponse {
26
- nextPageToken: string;
27
- result: ListWorkspacesResponse_WorkspaceAndInstance[];
28
- }
29
- export interface ListWorkspacesResponse_WorkspaceAndInstance {
30
- result: Workspace | undefined;
31
- lastActiveInstances: WorkspaceInstance | undefined;
32
- }
33
- export interface GetWorkspaceRequest {
34
- workspaceId: string;
35
- }
36
- export interface GetWorkspaceResponse {
37
- result: Workspace | undefined;
38
- }
39
- export interface GetOwnerTokenRequest {
40
- workspaceId: string;
41
- }
42
- export interface GetOwnerTokenResponse {
43
- token: string;
44
- }
45
- export interface CreateAndStartWorkspaceRequest {
46
- idempotencyToken: string;
47
- contextUrl: string | undefined;
48
- prebuildId: string | undefined;
49
- startSpec: StartWorkspaceSpec | undefined;
50
- }
51
- export interface CreateAndStartWorkspaceResponse {
52
- workspaceId: string;
53
- }
54
- export interface StartWorkspaceRequest {
55
- idempotencyToken: string;
56
- workspaceId: string;
57
- spec: StartWorkspaceSpec | undefined;
58
- }
59
- export interface StartWorkspaceResponse {
60
- instanceId: string;
61
- workspaceUrl: string;
62
- }
63
- export interface GetActiveWorkspaceInstanceRequest {
64
- workspaceId: string;
65
- }
66
- export interface GetActiveWorkspaceInstanceResponse {
67
- instance: WorkspaceInstance | undefined;
68
- }
69
- export interface GetWorkspaceInstanceOwnerTokenRequest {
70
- instanceId: string;
71
- }
72
- export interface GetWorkspaceInstanceOwnerTokenResponse {
73
- ownerToken: string;
74
- }
75
- export interface ListenToWorkspaceInstanceRequest {
76
- instanceId: string;
77
- }
78
- export interface ListenToWorkspaceInstanceResponse {
79
- instanceStatus: WorkspaceInstanceStatus | undefined;
80
- }
81
- export interface ListenToImageBuildLogsRequest {
82
- instanceId: string;
83
- }
84
- export interface ListenToImageBuildLogsResponse {
85
- line: string;
86
- }
87
- export interface StopWorkspaceRequest {
88
- idempotencyToken: string;
89
- workspaceId: string;
90
- }
91
- export interface StopWorkspaceResponse {
92
- }
93
- /** Workspace describes a single workspace */
94
- export interface Workspace {
95
- /** workspace_id is the ID of the workspace */
96
- workspaceId: string;
97
- /** owner_id is the ID of the user who created this workspace */
98
- ownerId: string;
99
- /** project_id is the ID of the project which this workspace belongs to */
100
- projectId: string;
101
- /** context reports the original context the workspace was created from */
102
- context: WorkspaceContext | undefined;
103
- /** description is a human readable description of the workspace */
104
- description: string;
105
- }
106
- /** WorkspaceContext describes the context a workspace was created from */
107
- export interface WorkspaceContext {
108
- /**
109
- * All workspace context originates from a URL - this is the context URL
110
- * which led to the creation of a workspace.
111
- */
112
- contextUrl: string;
113
- git: WorkspaceContext_Git | undefined;
114
- prebuild: WorkspaceContext_Prebuild | undefined;
115
- snapshot: WorkspaceContext_Snapshot | undefined;
116
- }
117
- /** Explicit Git context */
118
- export interface WorkspaceContext_Git {
119
- normalizedContextUrl: string;
120
- commit: string;
121
- }
122
- /** Workspace was created from a prebuild */
123
- export interface WorkspaceContext_Prebuild {
124
- /**
125
- * original_context is the Git context which lead to the selection
126
- * of a prebuild.
127
- */
128
- originalContext: WorkspaceContext_Git | undefined;
129
- /** prebuild_id is the ID of the prebuild which was used to create this workspace */
130
- prebuildId: string;
131
- }
132
- /** Snapshot context points to the snapshot which the workspace was created from */
133
- export interface WorkspaceContext_Snapshot {
134
- snapshotId: string;
135
- }
136
- /** WorkspaceInstance describes a single workspace instance */
137
- export interface WorkspaceInstance {
138
- /** Instance ID is the unique identifier of the workspace instance */
139
- instanceId: string;
140
- /** Worksapce ID is the unique identifier of the workspace this instance belongs to */
141
- workspaceId: string;
142
- createdAt: Date | undefined;
143
- status: WorkspaceInstanceStatus | undefined;
144
- }
145
- /** WorkspaceStatus describes a workspace status */
146
- export interface WorkspaceInstanceStatus {
147
- /**
148
- * version of the status update. Workspace instances themselves are unversioned,
149
- * but their statuus has different versions.
150
- * The value of this field has no semantic meaning (e.g. don't interpret it as
151
- * as a timestemp), but it can be used to impose a partial order.
152
- * If a.status_version < b.status_version then a was the status before b.
153
- */
154
- statusVersion: number;
155
- /** the phase of a workspace is a simple, high-level summary of where the workspace instance is in its lifecycle */
156
- phase: WorkspaceInstanceStatus_Phase;
157
- /** conditions detail the current state of the workspace instance */
158
- conditions: WorkspaceInstanceStatus_Conditions | undefined;
159
- /** message is an optional human-readable message detailing the current phase */
160
- message: string;
161
- /** URL contains the endpoint at which the workspace instance is available */
162
- url: string;
163
- /** Admission describes who can access a workspace instance and its ports. */
164
- admission: AdmissionLevel;
165
- }
166
- /**
167
- * Phase is a simple, high-level summary of where the workspace instance is in its lifecycle.
168
- * The phase is not intended to be a comprehensive rollup of observations of the workspace state,
169
- * nor is it intended to be a comprehensive state machine.
170
- * (based on https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase)
171
- */
172
- export declare enum WorkspaceInstanceStatus_Phase {
173
- /**
174
- * PHASE_UNSPECIFIED - Unknown indicates an issue within the workspace manager in that it cannot determine the actual phase of
175
- * a workspace. This phase is usually accompanied by an error.
176
- */
177
- PHASE_UNSPECIFIED = "PHASE_UNSPECIFIED",
178
- /**
179
- * PHASE_PREPARING - Preparing means that we haven't actually started the workspace instance just yet, but rather
180
- * are still preparing for launch.
181
- */
182
- PHASE_PREPARING = "PHASE_PREPARING",
183
- /** PHASE_IMAGEBUILD - ImageBuild indicates that there's an image build running for this workspace. */
184
- PHASE_IMAGEBUILD = "PHASE_IMAGEBUILD",
185
- /**
186
- * PHASE_PENDING - Pending means the workspace does not yet consume resources in the cluster, but rather is looking for
187
- * some space within the cluster. If for example the cluster needs to scale up to accomodate the
188
- * workspace, the workspace will be in Pending state until that happened.
189
- */
190
- PHASE_PENDING = "PHASE_PENDING",
191
- /**
192
- * PHASE_CREATING - Creating means the workspace is currently being created. That includes downloading the images required
193
- * to run the workspace over the network. The time spent in this phase varies widely and depends on the current
194
- * network speed, image size and cache states.
195
- */
196
- PHASE_CREATING = "PHASE_CREATING",
197
- /**
198
- * PHASE_INITIALIZING - Initializing is the phase in which the workspace is executing the appropriate workspace initializer (e.g. Git
199
- * clone or backup download). After this phase one can expect the workspace to either be Running or Failed.
200
- */
201
- PHASE_INITIALIZING = "PHASE_INITIALIZING",
202
- /**
203
- * PHASE_RUNNING - Running means the workspace is able to actively perform work, either by serving a user through Theia,
204
- * or as a headless workspace.
205
- */
206
- PHASE_RUNNING = "PHASE_RUNNING",
207
- /**
208
- * PHASE_INTERRUPTED - Interrupted is an exceptional state where the container should be running but is temporarily unavailable.
209
- * When in this state, we expect it to become running or stopping anytime soon.
210
- */
211
- PHASE_INTERRUPTED = "PHASE_INTERRUPTED",
212
- /** PHASE_STOPPING - Stopping means that the workspace is currently shutting down. It could go to stopped every moment. */
213
- PHASE_STOPPING = "PHASE_STOPPING",
214
- /** PHASE_STOPPED - Stopped means the workspace ended regularly because it was shut down. */
215
- PHASE_STOPPED = "PHASE_STOPPED",
216
- UNRECOGNIZED = "UNRECOGNIZED"
217
- }
218
- export declare function workspaceInstanceStatus_PhaseFromJSON(object: any): WorkspaceInstanceStatus_Phase;
219
- export declare function workspaceInstanceStatus_PhaseToNumber(object: WorkspaceInstanceStatus_Phase): number;
220
- /**
221
- * Conditions gives more detailed information as to the state of the workspace. Which condition actually
222
- * has a value depends on the phase the workspace is in.
223
- */
224
- export interface WorkspaceInstanceStatus_Conditions {
225
- /**
226
- * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
227
- * This field is filled exclusively when caused by system errors.
228
- */
229
- failed: string;
230
- /** timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out. */
231
- timeout: string;
232
- /** first_user_activity is the time when MarkActive was first called on the workspace */
233
- firstUserActivity: Date | undefined;
234
- /** stopped_by_request is true if the workspace was stopped using a StopWorkspace call */
235
- stoppedByRequest?: boolean | undefined;
236
- }
237
- /** StartWorkspaceSpec influences the workspace start */
238
- export interface StartWorkspaceSpec {
239
- }
240
- export declare const ListWorkspacesRequest: {
241
- encode(message: ListWorkspacesRequest, writer?: _m0.Writer): _m0.Writer;
242
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ListWorkspacesRequest;
243
- fromPartial(object: DeepPartial<ListWorkspacesRequest>): ListWorkspacesRequest;
244
- };
245
- export declare const ListWorkspacesResponse: {
246
- encode(message: ListWorkspacesResponse, writer?: _m0.Writer): _m0.Writer;
247
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ListWorkspacesResponse;
248
- fromPartial(object: DeepPartial<ListWorkspacesResponse>): ListWorkspacesResponse;
249
- };
250
- export declare const ListWorkspacesResponse_WorkspaceAndInstance: {
251
- encode(message: ListWorkspacesResponse_WorkspaceAndInstance, writer?: _m0.Writer): _m0.Writer;
252
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ListWorkspacesResponse_WorkspaceAndInstance;
253
- fromPartial(object: DeepPartial<ListWorkspacesResponse_WorkspaceAndInstance>): ListWorkspacesResponse_WorkspaceAndInstance;
254
- };
255
- export declare const GetWorkspaceRequest: {
256
- encode(message: GetWorkspaceRequest, writer?: _m0.Writer): _m0.Writer;
257
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetWorkspaceRequest;
258
- fromPartial(object: DeepPartial<GetWorkspaceRequest>): GetWorkspaceRequest;
259
- };
260
- export declare const GetWorkspaceResponse: {
261
- encode(message: GetWorkspaceResponse, writer?: _m0.Writer): _m0.Writer;
262
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetWorkspaceResponse;
263
- fromPartial(object: DeepPartial<GetWorkspaceResponse>): GetWorkspaceResponse;
264
- };
265
- export declare const GetOwnerTokenRequest: {
266
- encode(message: GetOwnerTokenRequest, writer?: _m0.Writer): _m0.Writer;
267
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetOwnerTokenRequest;
268
- fromPartial(object: DeepPartial<GetOwnerTokenRequest>): GetOwnerTokenRequest;
269
- };
270
- export declare const GetOwnerTokenResponse: {
271
- encode(message: GetOwnerTokenResponse, writer?: _m0.Writer): _m0.Writer;
272
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetOwnerTokenResponse;
273
- fromPartial(object: DeepPartial<GetOwnerTokenResponse>): GetOwnerTokenResponse;
274
- };
275
- export declare const CreateAndStartWorkspaceRequest: {
276
- encode(message: CreateAndStartWorkspaceRequest, writer?: _m0.Writer): _m0.Writer;
277
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): CreateAndStartWorkspaceRequest;
278
- fromPartial(object: DeepPartial<CreateAndStartWorkspaceRequest>): CreateAndStartWorkspaceRequest;
279
- };
280
- export declare const CreateAndStartWorkspaceResponse: {
281
- encode(message: CreateAndStartWorkspaceResponse, writer?: _m0.Writer): _m0.Writer;
282
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): CreateAndStartWorkspaceResponse;
283
- fromPartial(object: DeepPartial<CreateAndStartWorkspaceResponse>): CreateAndStartWorkspaceResponse;
284
- };
285
- export declare const StartWorkspaceRequest: {
286
- encode(message: StartWorkspaceRequest, writer?: _m0.Writer): _m0.Writer;
287
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): StartWorkspaceRequest;
288
- fromPartial(object: DeepPartial<StartWorkspaceRequest>): StartWorkspaceRequest;
289
- };
290
- export declare const StartWorkspaceResponse: {
291
- encode(message: StartWorkspaceResponse, writer?: _m0.Writer): _m0.Writer;
292
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): StartWorkspaceResponse;
293
- fromPartial(object: DeepPartial<StartWorkspaceResponse>): StartWorkspaceResponse;
294
- };
295
- export declare const GetActiveWorkspaceInstanceRequest: {
296
- encode(message: GetActiveWorkspaceInstanceRequest, writer?: _m0.Writer): _m0.Writer;
297
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetActiveWorkspaceInstanceRequest;
298
- fromPartial(object: DeepPartial<GetActiveWorkspaceInstanceRequest>): GetActiveWorkspaceInstanceRequest;
299
- };
300
- export declare const GetActiveWorkspaceInstanceResponse: {
301
- encode(message: GetActiveWorkspaceInstanceResponse, writer?: _m0.Writer): _m0.Writer;
302
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetActiveWorkspaceInstanceResponse;
303
- fromPartial(object: DeepPartial<GetActiveWorkspaceInstanceResponse>): GetActiveWorkspaceInstanceResponse;
304
- };
305
- export declare const GetWorkspaceInstanceOwnerTokenRequest: {
306
- encode(message: GetWorkspaceInstanceOwnerTokenRequest, writer?: _m0.Writer): _m0.Writer;
307
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetWorkspaceInstanceOwnerTokenRequest;
308
- fromPartial(object: DeepPartial<GetWorkspaceInstanceOwnerTokenRequest>): GetWorkspaceInstanceOwnerTokenRequest;
309
- };
310
- export declare const GetWorkspaceInstanceOwnerTokenResponse: {
311
- encode(message: GetWorkspaceInstanceOwnerTokenResponse, writer?: _m0.Writer): _m0.Writer;
312
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetWorkspaceInstanceOwnerTokenResponse;
313
- fromPartial(object: DeepPartial<GetWorkspaceInstanceOwnerTokenResponse>): GetWorkspaceInstanceOwnerTokenResponse;
314
- };
315
- export declare const ListenToWorkspaceInstanceRequest: {
316
- encode(message: ListenToWorkspaceInstanceRequest, writer?: _m0.Writer): _m0.Writer;
317
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ListenToWorkspaceInstanceRequest;
318
- fromPartial(object: DeepPartial<ListenToWorkspaceInstanceRequest>): ListenToWorkspaceInstanceRequest;
319
- };
320
- export declare const ListenToWorkspaceInstanceResponse: {
321
- encode(message: ListenToWorkspaceInstanceResponse, writer?: _m0.Writer): _m0.Writer;
322
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ListenToWorkspaceInstanceResponse;
323
- fromPartial(object: DeepPartial<ListenToWorkspaceInstanceResponse>): ListenToWorkspaceInstanceResponse;
324
- };
325
- export declare const ListenToImageBuildLogsRequest: {
326
- encode(message: ListenToImageBuildLogsRequest, writer?: _m0.Writer): _m0.Writer;
327
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ListenToImageBuildLogsRequest;
328
- fromPartial(object: DeepPartial<ListenToImageBuildLogsRequest>): ListenToImageBuildLogsRequest;
329
- };
330
- export declare const ListenToImageBuildLogsResponse: {
331
- encode(message: ListenToImageBuildLogsResponse, writer?: _m0.Writer): _m0.Writer;
332
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ListenToImageBuildLogsResponse;
333
- fromPartial(object: DeepPartial<ListenToImageBuildLogsResponse>): ListenToImageBuildLogsResponse;
334
- };
335
- export declare const StopWorkspaceRequest: {
336
- encode(message: StopWorkspaceRequest, writer?: _m0.Writer): _m0.Writer;
337
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): StopWorkspaceRequest;
338
- fromPartial(object: DeepPartial<StopWorkspaceRequest>): StopWorkspaceRequest;
339
- };
340
- export declare const StopWorkspaceResponse: {
341
- encode(_: StopWorkspaceResponse, writer?: _m0.Writer): _m0.Writer;
342
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): StopWorkspaceResponse;
343
- fromPartial(_: DeepPartial<StopWorkspaceResponse>): StopWorkspaceResponse;
344
- };
345
- export declare const Workspace: {
346
- encode(message: Workspace, writer?: _m0.Writer): _m0.Writer;
347
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Workspace;
348
- fromPartial(object: DeepPartial<Workspace>): Workspace;
349
- };
350
- export declare const WorkspaceContext: {
351
- encode(message: WorkspaceContext, writer?: _m0.Writer): _m0.Writer;
352
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): WorkspaceContext;
353
- fromPartial(object: DeepPartial<WorkspaceContext>): WorkspaceContext;
354
- };
355
- export declare const WorkspaceContext_Git: {
356
- encode(message: WorkspaceContext_Git, writer?: _m0.Writer): _m0.Writer;
357
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): WorkspaceContext_Git;
358
- fromPartial(object: DeepPartial<WorkspaceContext_Git>): WorkspaceContext_Git;
359
- };
360
- export declare const WorkspaceContext_Prebuild: {
361
- encode(message: WorkspaceContext_Prebuild, writer?: _m0.Writer): _m0.Writer;
362
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): WorkspaceContext_Prebuild;
363
- fromPartial(object: DeepPartial<WorkspaceContext_Prebuild>): WorkspaceContext_Prebuild;
364
- };
365
- export declare const WorkspaceContext_Snapshot: {
366
- encode(message: WorkspaceContext_Snapshot, writer?: _m0.Writer): _m0.Writer;
367
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): WorkspaceContext_Snapshot;
368
- fromPartial(object: DeepPartial<WorkspaceContext_Snapshot>): WorkspaceContext_Snapshot;
369
- };
370
- export declare const WorkspaceInstance: {
371
- encode(message: WorkspaceInstance, writer?: _m0.Writer): _m0.Writer;
372
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): WorkspaceInstance;
373
- fromPartial(object: DeepPartial<WorkspaceInstance>): WorkspaceInstance;
374
- };
375
- export declare const WorkspaceInstanceStatus: {
376
- encode(message: WorkspaceInstanceStatus, writer?: _m0.Writer): _m0.Writer;
377
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): WorkspaceInstanceStatus;
378
- fromPartial(object: DeepPartial<WorkspaceInstanceStatus>): WorkspaceInstanceStatus;
379
- };
380
- export declare const WorkspaceInstanceStatus_Conditions: {
381
- encode(message: WorkspaceInstanceStatus_Conditions, writer?: _m0.Writer): _m0.Writer;
382
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): WorkspaceInstanceStatus_Conditions;
383
- fromPartial(object: DeepPartial<WorkspaceInstanceStatus_Conditions>): WorkspaceInstanceStatus_Conditions;
384
- };
385
- export declare const StartWorkspaceSpec: {
386
- encode(_: StartWorkspaceSpec, writer?: _m0.Writer): _m0.Writer;
387
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): StartWorkspaceSpec;
388
- fromPartial(_: DeepPartial<StartWorkspaceSpec>): StartWorkspaceSpec;
389
- };
390
- export declare type WorkspacesServiceDefinition = typeof WorkspacesServiceDefinition;
391
- export declare const WorkspacesServiceDefinition: {
392
- readonly name: "WorkspacesService";
393
- readonly fullName: "gitpod.v1.WorkspacesService";
394
- readonly methods: {
395
- /** ListWorkspaces enumerates all workspaces belonging to the authenticated user. */
396
- readonly listWorkspaces: {
397
- readonly name: "ListWorkspaces";
398
- readonly requestType: {
399
- encode(message: ListWorkspacesRequest, writer?: _m0.Writer): _m0.Writer;
400
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ListWorkspacesRequest;
401
- fromPartial(object: DeepPartial<ListWorkspacesRequest>): ListWorkspacesRequest;
402
- };
403
- readonly requestStream: false;
404
- readonly responseType: {
405
- encode(message: ListWorkspacesResponse, writer?: _m0.Writer): _m0.Writer;
406
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ListWorkspacesResponse;
407
- fromPartial(object: DeepPartial<ListWorkspacesResponse>): ListWorkspacesResponse;
408
- };
409
- readonly responseStream: false;
410
- readonly options: {};
411
- };
412
- /** GetWorkspace returns a single workspace. */
413
- readonly getWorkspace: {
414
- readonly name: "GetWorkspace";
415
- readonly requestType: {
416
- encode(message: GetWorkspaceRequest, writer?: _m0.Writer): _m0.Writer;
417
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetWorkspaceRequest;
418
- fromPartial(object: DeepPartial<GetWorkspaceRequest>): GetWorkspaceRequest;
419
- };
420
- readonly requestStream: false;
421
- readonly responseType: {
422
- encode(message: GetWorkspaceResponse, writer?: _m0.Writer): _m0.Writer;
423
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetWorkspaceResponse;
424
- fromPartial(object: DeepPartial<GetWorkspaceResponse>): GetWorkspaceResponse;
425
- };
426
- readonly responseStream: false;
427
- readonly options: {};
428
- };
429
- /** GetOwnerToken returns an owner token. */
430
- readonly getOwnerToken: {
431
- readonly name: "GetOwnerToken";
432
- readonly requestType: {
433
- encode(message: GetOwnerTokenRequest, writer?: _m0.Writer): _m0.Writer;
434
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetOwnerTokenRequest;
435
- fromPartial(object: DeepPartial<GetOwnerTokenRequest>): GetOwnerTokenRequest;
436
- };
437
- readonly requestStream: false;
438
- readonly responseType: {
439
- encode(message: GetOwnerTokenResponse, writer?: _m0.Writer): _m0.Writer;
440
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetOwnerTokenResponse;
441
- fromPartial(object: DeepPartial<GetOwnerTokenResponse>): GetOwnerTokenResponse;
442
- };
443
- readonly responseStream: false;
444
- readonly options: {};
445
- };
446
- /** CreateAndStartWorkspace creates a new workspace and starts it. */
447
- readonly createAndStartWorkspace: {
448
- readonly name: "CreateAndStartWorkspace";
449
- readonly requestType: {
450
- encode(message: CreateAndStartWorkspaceRequest, writer?: _m0.Writer): _m0.Writer;
451
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): CreateAndStartWorkspaceRequest;
452
- fromPartial(object: DeepPartial<CreateAndStartWorkspaceRequest>): CreateAndStartWorkspaceRequest;
453
- };
454
- readonly requestStream: false;
455
- readonly responseType: {
456
- encode(message: CreateAndStartWorkspaceResponse, writer?: _m0.Writer): _m0.Writer;
457
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): CreateAndStartWorkspaceResponse;
458
- fromPartial(object: DeepPartial<CreateAndStartWorkspaceResponse>): CreateAndStartWorkspaceResponse;
459
- };
460
- readonly responseStream: false;
461
- readonly options: {};
462
- };
463
- /** StartWorkspace starts an existing workspace. */
464
- readonly startWorkspace: {
465
- readonly name: "StartWorkspace";
466
- readonly requestType: {
467
- encode(message: StartWorkspaceRequest, writer?: _m0.Writer): _m0.Writer;
468
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): StartWorkspaceRequest;
469
- fromPartial(object: DeepPartial<StartWorkspaceRequest>): StartWorkspaceRequest;
470
- };
471
- readonly requestStream: false;
472
- readonly responseType: {
473
- encode(message: StartWorkspaceResponse, writer?: _m0.Writer): _m0.Writer;
474
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): StartWorkspaceResponse;
475
- fromPartial(object: DeepPartial<StartWorkspaceResponse>): StartWorkspaceResponse;
476
- };
477
- readonly responseStream: false;
478
- readonly options: {};
479
- };
480
- /**
481
- * GetRunningWorkspaceInstance returns the currently active instance of a workspace.
482
- * Errors:
483
- * FAILED_PRECONDITION: if a workspace does not a currently active instance
484
- */
485
- readonly getActiveWorkspaceInstance: {
486
- readonly name: "GetActiveWorkspaceInstance";
487
- readonly requestType: {
488
- encode(message: GetActiveWorkspaceInstanceRequest, writer?: _m0.Writer): _m0.Writer;
489
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetActiveWorkspaceInstanceRequest;
490
- fromPartial(object: DeepPartial<GetActiveWorkspaceInstanceRequest>): GetActiveWorkspaceInstanceRequest;
491
- };
492
- readonly requestStream: false;
493
- readonly responseType: {
494
- encode(message: GetActiveWorkspaceInstanceResponse, writer?: _m0.Writer): _m0.Writer;
495
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetActiveWorkspaceInstanceResponse;
496
- fromPartial(object: DeepPartial<GetActiveWorkspaceInstanceResponse>): GetActiveWorkspaceInstanceResponse;
497
- };
498
- readonly responseStream: false;
499
- readonly options: {};
500
- };
501
- /**
502
- * GetWorkspaceInstanceOwnerToken returns the owner token of a workspace instance.
503
- * Note: the owner token is not part of the workspace instance status so that we can scope its access on the
504
- * API function level.
505
- */
506
- readonly getWorkspaceInstanceOwnerToken: {
507
- readonly name: "GetWorkspaceInstanceOwnerToken";
508
- readonly requestType: {
509
- encode(message: GetWorkspaceInstanceOwnerTokenRequest, writer?: _m0.Writer): _m0.Writer;
510
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetWorkspaceInstanceOwnerTokenRequest;
511
- fromPartial(object: DeepPartial<GetWorkspaceInstanceOwnerTokenRequest>): GetWorkspaceInstanceOwnerTokenRequest;
512
- };
513
- readonly requestStream: false;
514
- readonly responseType: {
515
- encode(message: GetWorkspaceInstanceOwnerTokenResponse, writer?: _m0.Writer): _m0.Writer;
516
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetWorkspaceInstanceOwnerTokenResponse;
517
- fromPartial(object: DeepPartial<GetWorkspaceInstanceOwnerTokenResponse>): GetWorkspaceInstanceOwnerTokenResponse;
518
- };
519
- readonly responseStream: false;
520
- readonly options: {};
521
- };
522
- /** ListenToWorkspaceInstance listens to workspace instance updates. */
523
- readonly listenToWorkspaceInstance: {
524
- readonly name: "ListenToWorkspaceInstance";
525
- readonly requestType: {
526
- encode(message: ListenToWorkspaceInstanceRequest, writer?: _m0.Writer): _m0.Writer;
527
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ListenToWorkspaceInstanceRequest;
528
- fromPartial(object: DeepPartial<ListenToWorkspaceInstanceRequest>): ListenToWorkspaceInstanceRequest;
529
- };
530
- readonly requestStream: false;
531
- readonly responseType: {
532
- encode(message: ListenToWorkspaceInstanceResponse, writer?: _m0.Writer): _m0.Writer;
533
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ListenToWorkspaceInstanceResponse;
534
- fromPartial(object: DeepPartial<ListenToWorkspaceInstanceResponse>): ListenToWorkspaceInstanceResponse;
535
- };
536
- readonly responseStream: true;
537
- readonly options: {};
538
- };
539
- /** ListenToImageBuildLogs streams (currently or previously) running workspace image build logs */
540
- readonly listenToImageBuildLogs: {
541
- readonly name: "ListenToImageBuildLogs";
542
- readonly requestType: {
543
- encode(message: ListenToImageBuildLogsRequest, writer?: _m0.Writer): _m0.Writer;
544
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ListenToImageBuildLogsRequest;
545
- fromPartial(object: DeepPartial<ListenToImageBuildLogsRequest>): ListenToImageBuildLogsRequest;
546
- };
547
- readonly requestStream: false;
548
- readonly responseType: {
549
- encode(message: ListenToImageBuildLogsResponse, writer?: _m0.Writer): _m0.Writer;
550
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ListenToImageBuildLogsResponse;
551
- fromPartial(object: DeepPartial<ListenToImageBuildLogsResponse>): ListenToImageBuildLogsResponse;
552
- };
553
- readonly responseStream: true;
554
- readonly options: {};
555
- };
556
- /**
557
- * StopWorkspace stops a running workspace (instance).
558
- * Errors:
559
- * NOT_FOUND: the workspace_id is unkown
560
- * FAILED_PRECONDITION: if there's no running instance
561
- */
562
- readonly stopWorkspace: {
563
- readonly name: "StopWorkspace";
564
- readonly requestType: {
565
- encode(message: StopWorkspaceRequest, writer?: _m0.Writer): _m0.Writer;
566
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): StopWorkspaceRequest;
567
- fromPartial(object: DeepPartial<StopWorkspaceRequest>): StopWorkspaceRequest;
568
- };
569
- readonly requestStream: false;
570
- readonly responseType: {
571
- encode(_: StopWorkspaceResponse, writer?: _m0.Writer): _m0.Writer;
572
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): StopWorkspaceResponse;
573
- fromPartial(_: DeepPartial<StopWorkspaceResponse>): StopWorkspaceResponse;
574
- };
575
- readonly responseStream: true;
576
- readonly options: {};
577
- };
578
- };
579
- };
580
- export interface WorkspacesServiceServiceImplementation<CallContextExt = {}> {
581
- /** ListWorkspaces enumerates all workspaces belonging to the authenticated user. */
582
- listWorkspaces(request: ListWorkspacesRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ListWorkspacesResponse>>;
583
- /** GetWorkspace returns a single workspace. */
584
- getWorkspace(request: GetWorkspaceRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetWorkspaceResponse>>;
585
- /** GetOwnerToken returns an owner token. */
586
- getOwnerToken(request: GetOwnerTokenRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetOwnerTokenResponse>>;
587
- /** CreateAndStartWorkspace creates a new workspace and starts it. */
588
- createAndStartWorkspace(request: CreateAndStartWorkspaceRequest, context: CallContext & CallContextExt): Promise<DeepPartial<CreateAndStartWorkspaceResponse>>;
589
- /** StartWorkspace starts an existing workspace. */
590
- startWorkspace(request: StartWorkspaceRequest, context: CallContext & CallContextExt): Promise<DeepPartial<StartWorkspaceResponse>>;
591
- /**
592
- * GetRunningWorkspaceInstance returns the currently active instance of a workspace.
593
- * Errors:
594
- * FAILED_PRECONDITION: if a workspace does not a currently active instance
595
- */
596
- getActiveWorkspaceInstance(request: GetActiveWorkspaceInstanceRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetActiveWorkspaceInstanceResponse>>;
597
- /**
598
- * GetWorkspaceInstanceOwnerToken returns the owner token of a workspace instance.
599
- * Note: the owner token is not part of the workspace instance status so that we can scope its access on the
600
- * API function level.
601
- */
602
- getWorkspaceInstanceOwnerToken(request: GetWorkspaceInstanceOwnerTokenRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetWorkspaceInstanceOwnerTokenResponse>>;
603
- /** ListenToWorkspaceInstance listens to workspace instance updates. */
604
- listenToWorkspaceInstance(request: ListenToWorkspaceInstanceRequest, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<ListenToWorkspaceInstanceResponse>>;
605
- /** ListenToImageBuildLogs streams (currently or previously) running workspace image build logs */
606
- listenToImageBuildLogs(request: ListenToImageBuildLogsRequest, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<ListenToImageBuildLogsResponse>>;
607
- /**
608
- * StopWorkspace stops a running workspace (instance).
609
- * Errors:
610
- * NOT_FOUND: the workspace_id is unkown
611
- * FAILED_PRECONDITION: if there's no running instance
612
- */
613
- stopWorkspace(request: StopWorkspaceRequest, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<StopWorkspaceResponse>>;
614
- }
615
- export interface WorkspacesServiceClient<CallOptionsExt = {}> {
616
- /** ListWorkspaces enumerates all workspaces belonging to the authenticated user. */
617
- listWorkspaces(request: DeepPartial<ListWorkspacesRequest>, options?: CallOptions & CallOptionsExt): Promise<ListWorkspacesResponse>;
618
- /** GetWorkspace returns a single workspace. */
619
- getWorkspace(request: DeepPartial<GetWorkspaceRequest>, options?: CallOptions & CallOptionsExt): Promise<GetWorkspaceResponse>;
620
- /** GetOwnerToken returns an owner token. */
621
- getOwnerToken(request: DeepPartial<GetOwnerTokenRequest>, options?: CallOptions & CallOptionsExt): Promise<GetOwnerTokenResponse>;
622
- /** CreateAndStartWorkspace creates a new workspace and starts it. */
623
- createAndStartWorkspace(request: DeepPartial<CreateAndStartWorkspaceRequest>, options?: CallOptions & CallOptionsExt): Promise<CreateAndStartWorkspaceResponse>;
624
- /** StartWorkspace starts an existing workspace. */
625
- startWorkspace(request: DeepPartial<StartWorkspaceRequest>, options?: CallOptions & CallOptionsExt): Promise<StartWorkspaceResponse>;
626
- /**
627
- * GetRunningWorkspaceInstance returns the currently active instance of a workspace.
628
- * Errors:
629
- * FAILED_PRECONDITION: if a workspace does not a currently active instance
630
- */
631
- getActiveWorkspaceInstance(request: DeepPartial<GetActiveWorkspaceInstanceRequest>, options?: CallOptions & CallOptionsExt): Promise<GetActiveWorkspaceInstanceResponse>;
632
- /**
633
- * GetWorkspaceInstanceOwnerToken returns the owner token of a workspace instance.
634
- * Note: the owner token is not part of the workspace instance status so that we can scope its access on the
635
- * API function level.
636
- */
637
- getWorkspaceInstanceOwnerToken(request: DeepPartial<GetWorkspaceInstanceOwnerTokenRequest>, options?: CallOptions & CallOptionsExt): Promise<GetWorkspaceInstanceOwnerTokenResponse>;
638
- /** ListenToWorkspaceInstance listens to workspace instance updates. */
639
- listenToWorkspaceInstance(request: DeepPartial<ListenToWorkspaceInstanceRequest>, options?: CallOptions & CallOptionsExt): AsyncIterable<ListenToWorkspaceInstanceResponse>;
640
- /** ListenToImageBuildLogs streams (currently or previously) running workspace image build logs */
641
- listenToImageBuildLogs(request: DeepPartial<ListenToImageBuildLogsRequest>, options?: CallOptions & CallOptionsExt): AsyncIterable<ListenToImageBuildLogsResponse>;
642
- /**
643
- * StopWorkspace stops a running workspace (instance).
644
- * Errors:
645
- * NOT_FOUND: the workspace_id is unkown
646
- * FAILED_PRECONDITION: if there's no running instance
647
- */
648
- stopWorkspace(request: DeepPartial<StopWorkspaceRequest>, options?: CallOptions & CallOptionsExt): AsyncIterable<StopWorkspaceResponse>;
649
- }
650
- export interface DataLoaderOptions {
651
- cache?: boolean;
652
- }
653
- export interface DataLoaders {
654
- rpcDataLoaderOptions?: DataLoaderOptions;
655
- getDataLoader<T>(identifier: string, constructorFn: () => T): T;
656
- }
657
- declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
658
- export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
659
- [K in keyof T]?: DeepPartial<T[K]>;
660
- } : Partial<T>;
661
- export declare type ServerStreamingMethodResult<Response> = {
662
- [Symbol.asyncIterator](): AsyncIterator<Response, void>;
663
- };
664
- export {};
665
- //# sourceMappingURL=workspaces.pb.d.ts.map