@gitpod/public-api 0.1.5-tar-sh-active-users.27 → 0.1.5-tar-sh-active-users-new.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. package/lib/gitpod/v1/pagination_pb.d.ts +27 -30
  2. package/lib/gitpod/v1/pagination_pb.d.ts.map +1 -0
  3. package/lib/gitpod/v1/pagination_pb.js +43 -199
  4. package/lib/gitpod/v1/pagination_pb.js.map +1 -0
  5. package/lib/gitpod/v1/pagination_pb.ts +60 -0
  6. package/lib/gitpod/v1/prebuilds_connectweb.d.ts +65 -0
  7. package/lib/gitpod/v1/prebuilds_connectweb.d.ts.map +1 -0
  8. package/lib/gitpod/v1/prebuilds_connectweb.js +72 -0
  9. package/lib/gitpod/v1/prebuilds_connectweb.js.map +1 -0
  10. package/lib/gitpod/v1/prebuilds_connectweb.ts +71 -0
  11. package/lib/gitpod/v1/prebuilds_pb.d.ts +263 -265
  12. package/lib/gitpod/v1/prebuilds_pb.d.ts.map +1 -0
  13. package/lib/gitpod/v1/prebuilds_pb.js +398 -1960
  14. package/lib/gitpod/v1/prebuilds_pb.js.map +1 -0
  15. package/lib/gitpod/v1/prebuilds_pb.ts +540 -0
  16. package/lib/gitpod/v1/workspaces_connectweb.d.ts +134 -0
  17. package/lib/gitpod/v1/workspaces_connectweb.d.ts.map +1 -0
  18. package/lib/gitpod/v1/workspaces_connectweb.js +141 -0
  19. package/lib/gitpod/v1/workspaces_connectweb.js.map +1 -0
  20. package/lib/gitpod/v1/workspaces_connectweb.ts +140 -0
  21. package/lib/gitpod/v1/workspaces_pb.d.ts +819 -804
  22. package/lib/gitpod/v1/workspaces_pb.d.ts.map +1 -0
  23. package/lib/gitpod/v1/workspaces_pb.js +1148 -5941
  24. package/lib/gitpod/v1/workspaces_pb.js.map +1 -0
  25. package/lib/gitpod/v1/workspaces_pb.ts +1509 -0
  26. package/package.json +7 -10
  27. package/pkg-yarn.lock +5 -5
  28. package/provenance-bundle.jsonl +2 -2
  29. package/lib/gitpod/v1/pagination_grpc_pb.js +0 -7
  30. package/lib/gitpod/v1/prebuilds_grpc_pb.d.ts +0 -95
  31. package/lib/gitpod/v1/prebuilds_grpc_pb.js +0 -161
  32. package/lib/gitpod/v1/workspaces_grpc_pb.d.ts +0 -197
  33. package/lib/gitpod/v1/workspaces_grpc_pb.js +0 -368
@@ -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;