@gitpod/public-api 0.1.5-mp-buf-breaking-demo-2.0 → 0.1.5-mp-papi-experimental-teams-service.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 (32) hide show
  1. package/lib/gitpod/experimental/v1/index.d.ts +9 -0
  2. package/lib/gitpod/experimental/v1/index.d.ts.map +1 -0
  3. package/lib/gitpod/experimental/v1/index.js +21 -0
  4. package/lib/gitpod/experimental/v1/index.js.map +1 -0
  5. package/lib/gitpod/experimental/v1/teams_connectweb.d.ts +27 -0
  6. package/lib/gitpod/experimental/v1/teams_connectweb.d.ts.map +1 -0
  7. package/lib/gitpod/experimental/v1/teams_connectweb.js +34 -0
  8. package/lib/gitpod/experimental/v1/teams_connectweb.js.map +1 -0
  9. package/lib/gitpod/experimental/v1/teams_pb.d.ts +130 -0
  10. package/lib/gitpod/experimental/v1/teams_pb.d.ts.map +1 -0
  11. package/lib/gitpod/experimental/v1/teams_pb.js +195 -0
  12. package/lib/gitpod/experimental/v1/teams_pb.js.map +1 -0
  13. package/lib/index.d.ts +7 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +10 -0
  16. package/lib/index.js.map +1 -0
  17. package/package.json +4 -3
  18. package/pkg-yarn.lock +1 -1
  19. package/provenance-bundle.jsonl +2 -2
  20. package/lib/gitpod/experimental/v1/pagination_pb.ts +0 -60
  21. package/lib/gitpod/experimental/v1/workspaces_connectweb.ts +0 -80
  22. package/lib/gitpod/experimental/v1/workspaces_pb.ts +0 -1219
  23. package/lib/gitpod/stable/v1/yolo_connectweb.d.ts +0 -25
  24. package/lib/gitpod/stable/v1/yolo_connectweb.d.ts.map +0 -1
  25. package/lib/gitpod/stable/v1/yolo_connectweb.js +0 -32
  26. package/lib/gitpod/stable/v1/yolo_connectweb.js.map +0 -1
  27. package/lib/gitpod/stable/v1/yolo_connectweb.ts +0 -31
  28. package/lib/gitpod/stable/v1/yolo_pb.d.ts +0 -57
  29. package/lib/gitpod/stable/v1/yolo_pb.d.ts.map +0 -1
  30. package/lib/gitpod/stable/v1/yolo_pb.js +0 -95
  31. package/lib/gitpod/stable/v1/yolo_pb.js.map +0 -1
  32. package/lib/gitpod/stable/v1/yolo_pb.ts +0 -120
@@ -0,0 +1,9 @@
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
+ export * from "./pagination_pb";
7
+ export * from "./workspaces_pb";
8
+ export * from "./workspaces_connectweb";
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/gitpod/experimental/v1/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,21 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
8
+ if (k2 === undefined) k2 = k;
9
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ __exportStar(require("./pagination_pb"), exports);
19
+ __exportStar(require("./workspaces_pb"), exports);
20
+ __exportStar(require("./workspaces_connectweb"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/gitpod/experimental/v1/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;AAEH,kDAAgC;AAChC,kDAAgC;AAChC,0DAAwC"}
@@ -0,0 +1,27 @@
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 { CreateTeamRequest, CreateTeamResponse } from "./teams_pb.js";
7
+ import { MethodKind } from "@bufbuild/protobuf";
8
+ /**
9
+ * @generated from service gitpod.experimental.v1.TeamService
10
+ */
11
+ export declare const TeamService: {
12
+ readonly typeName: "gitpod.experimental.v1.TeamService";
13
+ readonly methods: {
14
+ /**
15
+ * CreateTeam creates a new Team.
16
+ *
17
+ * @generated from rpc gitpod.experimental.v1.TeamService.CreateTeam
18
+ */
19
+ readonly createTeam: {
20
+ readonly name: "CreateTeam";
21
+ readonly I: typeof CreateTeamRequest;
22
+ readonly O: typeof CreateTeamResponse;
23
+ readonly kind: MethodKind.Unary;
24
+ };
25
+ };
26
+ };
27
+ //# sourceMappingURL=teams_connectweb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teams_connectweb.d.ts","sourceRoot":"","sources":["../../../../src/gitpod/experimental/v1/teams_connectweb.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,OAAO,EAAC,iBAAiB,EAAE,kBAAkB,EAAC,MAAM,eAAe,CAAC;AACpE,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,WAAW;;;QAGpB;;;;WAIG;;;;;;;;CAQG,CAAC"}
@@ -0,0 +1,34 @@
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.TeamService = void 0;
9
+ // @generated by protoc-gen-connect-web v0.2.1 with parameter "target=ts"
10
+ // @generated from file gitpod/experimental/v1/teams.proto (package gitpod.experimental.v1, syntax proto3)
11
+ /* eslint-disable */
12
+ /* @ts-nocheck */
13
+ const teams_pb_js_1 = require("./teams_pb.js");
14
+ const protobuf_1 = require("@bufbuild/protobuf");
15
+ /**
16
+ * @generated from service gitpod.experimental.v1.TeamService
17
+ */
18
+ exports.TeamService = {
19
+ typeName: "gitpod.experimental.v1.TeamService",
20
+ methods: {
21
+ /**
22
+ * CreateTeam creates a new Team.
23
+ *
24
+ * @generated from rpc gitpod.experimental.v1.TeamService.CreateTeam
25
+ */
26
+ createTeam: {
27
+ name: "CreateTeam",
28
+ I: teams_pb_js_1.CreateTeamRequest,
29
+ O: teams_pb_js_1.CreateTeamResponse,
30
+ kind: protobuf_1.MethodKind.Unary,
31
+ },
32
+ }
33
+ };
34
+ //# sourceMappingURL=teams_connectweb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teams_connectweb.js","sourceRoot":"","sources":["../../../../src/gitpod/experimental/v1/teams_connectweb.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,yEAAyE;AACzE,0GAA0G;AAC1G,oBAAoB;AACpB,iBAAiB;AAEjB,+CAAoE;AACpE,iDAA8C;AAE9C;;GAEG;AACU,QAAA,WAAW,GAAG;IACzB,QAAQ,EAAE,oCAAoC;IAC9C,OAAO,EAAE;QACP;;;;WAIG;QACH,UAAU,EAAE;YACV,IAAI,EAAE,YAAY;YAClB,CAAC,EAAE,+BAAiB;YACpB,CAAC,EAAE,gCAAkB;YACrB,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
@@ -0,0 +1,130 @@
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 type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
+ import { Message } from "@bufbuild/protobuf";
8
+ /**
9
+ * @generated from enum gitpod.experimental.v1.TeamRole
10
+ */
11
+ export declare enum TeamRole {
12
+ /**
13
+ * TEAM_ROLE_UNKNOWN is the unkwnon state.
14
+ *
15
+ * @generated from enum value: TEAM_ROLE_UNSPECIFIED = 0;
16
+ */
17
+ UNSPECIFIED = 0,
18
+ /**
19
+ * TEAM_ROLE_OWNER is the owner of the team.
20
+ * A team can have multiple owners, but there must always be at least one owner.
21
+ *
22
+ * @generated from enum value: TEAM_ROLE_OWNER = 1;
23
+ */
24
+ OWNER = 1,
25
+ /**
26
+ * TEAM_ROLE_MEMBER is a regular member of a team.
27
+ *
28
+ * @generated from enum value: TEAM_ROLE_MEMBER = 2;
29
+ */
30
+ MEMBER = 2
31
+ }
32
+ /**
33
+ * @generated from message gitpod.experimental.v1.CreateTeamRequest
34
+ */
35
+ export declare class CreateTeamRequest extends Message<CreateTeamRequest> {
36
+ /**
37
+ * name is the team name
38
+ *
39
+ * @generated from field: string name = 1;
40
+ */
41
+ name: string;
42
+ constructor(data?: PartialMessage<CreateTeamRequest>);
43
+ static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
44
+ static readonly typeName = "gitpod.experimental.v1.CreateTeamRequest";
45
+ static readonly fields: FieldList;
46
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateTeamRequest;
47
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateTeamRequest;
48
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateTeamRequest;
49
+ static equals(a: CreateTeamRequest | PlainMessage<CreateTeamRequest> | undefined, b: CreateTeamRequest | PlainMessage<CreateTeamRequest> | undefined): boolean;
50
+ }
51
+ /**
52
+ * @generated from message gitpod.experimental.v1.CreateTeamResponse
53
+ */
54
+ export declare class CreateTeamResponse extends Message<CreateTeamResponse> {
55
+ /**
56
+ * @generated from field: gitpod.experimental.v1.Team team = 1;
57
+ */
58
+ team?: Team;
59
+ constructor(data?: PartialMessage<CreateTeamResponse>);
60
+ static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
61
+ static readonly typeName = "gitpod.experimental.v1.CreateTeamResponse";
62
+ static readonly fields: FieldList;
63
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateTeamResponse;
64
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateTeamResponse;
65
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateTeamResponse;
66
+ static equals(a: CreateTeamResponse | PlainMessage<CreateTeamResponse> | undefined, b: CreateTeamResponse | PlainMessage<CreateTeamResponse> | undefined): boolean;
67
+ }
68
+ /**
69
+ * @generated from message gitpod.experimental.v1.Team
70
+ */
71
+ export declare class Team extends Message<Team> {
72
+ /**
73
+ * id is a UUID of the Team
74
+ *
75
+ * @generated from field: string id = 1;
76
+ */
77
+ id: string;
78
+ /**
79
+ * name is the name of the Team
80
+ *
81
+ * @generated from field: string name = 2;
82
+ */
83
+ name: string;
84
+ /**
85
+ * slug is the short version of the Team name
86
+ *
87
+ * @generated from field: string slug = 3;
88
+ */
89
+ slug: string;
90
+ /**
91
+ * members are the team members of this Team
92
+ *
93
+ * @generated from field: repeated gitpod.experimental.v1.TeamMember members = 4;
94
+ */
95
+ members: TeamMember[];
96
+ constructor(data?: PartialMessage<Team>);
97
+ static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
98
+ static readonly typeName = "gitpod.experimental.v1.Team";
99
+ static readonly fields: FieldList;
100
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Team;
101
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Team;
102
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Team;
103
+ static equals(a: Team | PlainMessage<Team> | undefined, b: Team | PlainMessage<Team> | undefined): boolean;
104
+ }
105
+ /**
106
+ * @generated from message gitpod.experimental.v1.TeamMember
107
+ */
108
+ export declare class TeamMember extends Message<TeamMember> {
109
+ /**
110
+ * user_id is the identifier of the user
111
+ *
112
+ * @generated from field: string user_id = 1;
113
+ */
114
+ userId: string;
115
+ /**
116
+ * role is the role this member is assigned
117
+ *
118
+ * @generated from field: gitpod.experimental.v1.TeamRole role = 2;
119
+ */
120
+ role: TeamRole;
121
+ constructor(data?: PartialMessage<TeamMember>);
122
+ static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
123
+ static readonly typeName = "gitpod.experimental.v1.TeamMember";
124
+ static readonly fields: FieldList;
125
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TeamMember;
126
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TeamMember;
127
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TeamMember;
128
+ static equals(a: TeamMember | PlainMessage<TeamMember> | undefined, b: TeamMember | PlainMessage<TeamMember> | undefined): boolean;
129
+ }
130
+ //# sourceMappingURL=teams_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teams_pb.d.ts","sourceRoot":"","sources":["../../../../src/gitpod/experimental/v1/teams_pb.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,OAAO,KAAK,EAAC,iBAAiB,EAAE,SAAS,EAAE,eAAe,EAAE,SAAS,EAAE,cAAc,EAAE,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAC/H,OAAO,EAAC,OAAO,EAAS,MAAM,oBAAoB,CAAC;AAEnD;;GAEG;AACH,oBAAY,QAAQ;IAClB;;;;OAIG;IACH,WAAW,IAAI;IAEf;;;;;OAKG;IACH,KAAK,IAAI;IAET;;;;OAIG;IACH,MAAM,IAAI;CACX;AAQD;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IAAI,CAAC,GAAG,SAAS,EAAE,CAAC,EAAE,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC,GAAG,SAAS,GAAG,OAAO;CAG3G;AAED;;GAEG;AACH,qBAAa,UAAW,SAAQ,OAAO,CAAC,UAAU,CAAC;IACjD;;;;OAIG;IACH,MAAM,SAAM;IAEZ;;;;OAIG;IACH,IAAI,WAAwB;gBAEhB,IAAI,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC;IAK7C,MAAM,CAAC,QAAQ,CAAC,OAAO,6EAAU;IACjC,MAAM,CAAC,QAAQ,CAAC,QAAQ,uCAAuC;IAC/D,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAG9B;IAEH,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,UAAU;IAItF,MAAM,CAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU;IAIrF,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU;IAIzF,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC,GAAG,SAAS,EAAE,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC,GAAG,SAAS,GAAG,OAAO;CAGnI"}
@@ -0,0 +1,195 @@
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.TeamMember = exports.Team = exports.CreateTeamResponse = exports.CreateTeamRequest = exports.TeamRole = void 0;
9
+ const protobuf_1 = require("@bufbuild/protobuf");
10
+ /**
11
+ * @generated from enum gitpod.experimental.v1.TeamRole
12
+ */
13
+ var TeamRole;
14
+ (function (TeamRole) {
15
+ /**
16
+ * TEAM_ROLE_UNKNOWN is the unkwnon state.
17
+ *
18
+ * @generated from enum value: TEAM_ROLE_UNSPECIFIED = 0;
19
+ */
20
+ TeamRole[TeamRole["UNSPECIFIED"] = 0] = "UNSPECIFIED";
21
+ /**
22
+ * TEAM_ROLE_OWNER is the owner of the team.
23
+ * A team can have multiple owners, but there must always be at least one owner.
24
+ *
25
+ * @generated from enum value: TEAM_ROLE_OWNER = 1;
26
+ */
27
+ TeamRole[TeamRole["OWNER"] = 1] = "OWNER";
28
+ /**
29
+ * TEAM_ROLE_MEMBER is a regular member of a team.
30
+ *
31
+ * @generated from enum value: TEAM_ROLE_MEMBER = 2;
32
+ */
33
+ TeamRole[TeamRole["MEMBER"] = 2] = "MEMBER";
34
+ })(TeamRole = exports.TeamRole || (exports.TeamRole = {}));
35
+ // Retrieve enum metadata with: proto3.getEnumType(TeamRole)
36
+ protobuf_1.proto3.util.setEnumType(TeamRole, "gitpod.experimental.v1.TeamRole", [
37
+ { no: 0, name: "TEAM_ROLE_UNSPECIFIED" },
38
+ { no: 1, name: "TEAM_ROLE_OWNER" },
39
+ { no: 2, name: "TEAM_ROLE_MEMBER" },
40
+ ]);
41
+ /**
42
+ * @generated from message gitpod.experimental.v1.CreateTeamRequest
43
+ */
44
+ class CreateTeamRequest extends protobuf_1.Message {
45
+ constructor(data) {
46
+ super();
47
+ /**
48
+ * name is the team name
49
+ *
50
+ * @generated from field: string name = 1;
51
+ */
52
+ this.name = "";
53
+ protobuf_1.proto3.util.initPartial(data, this);
54
+ }
55
+ static fromBinary(bytes, options) {
56
+ return new CreateTeamRequest().fromBinary(bytes, options);
57
+ }
58
+ static fromJson(jsonValue, options) {
59
+ return new CreateTeamRequest().fromJson(jsonValue, options);
60
+ }
61
+ static fromJsonString(jsonString, options) {
62
+ return new CreateTeamRequest().fromJsonString(jsonString, options);
63
+ }
64
+ static equals(a, b) {
65
+ return protobuf_1.proto3.util.equals(CreateTeamRequest, a, b);
66
+ }
67
+ }
68
+ exports.CreateTeamRequest = CreateTeamRequest;
69
+ CreateTeamRequest.runtime = protobuf_1.proto3;
70
+ CreateTeamRequest.typeName = "gitpod.experimental.v1.CreateTeamRequest";
71
+ CreateTeamRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
72
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
73
+ ]);
74
+ /**
75
+ * @generated from message gitpod.experimental.v1.CreateTeamResponse
76
+ */
77
+ class CreateTeamResponse extends protobuf_1.Message {
78
+ constructor(data) {
79
+ super();
80
+ protobuf_1.proto3.util.initPartial(data, this);
81
+ }
82
+ static fromBinary(bytes, options) {
83
+ return new CreateTeamResponse().fromBinary(bytes, options);
84
+ }
85
+ static fromJson(jsonValue, options) {
86
+ return new CreateTeamResponse().fromJson(jsonValue, options);
87
+ }
88
+ static fromJsonString(jsonString, options) {
89
+ return new CreateTeamResponse().fromJsonString(jsonString, options);
90
+ }
91
+ static equals(a, b) {
92
+ return protobuf_1.proto3.util.equals(CreateTeamResponse, a, b);
93
+ }
94
+ }
95
+ exports.CreateTeamResponse = CreateTeamResponse;
96
+ CreateTeamResponse.runtime = protobuf_1.proto3;
97
+ CreateTeamResponse.typeName = "gitpod.experimental.v1.CreateTeamResponse";
98
+ CreateTeamResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
99
+ { no: 1, name: "team", kind: "message", T: Team },
100
+ ]);
101
+ /**
102
+ * @generated from message gitpod.experimental.v1.Team
103
+ */
104
+ class Team extends protobuf_1.Message {
105
+ constructor(data) {
106
+ super();
107
+ /**
108
+ * id is a UUID of the Team
109
+ *
110
+ * @generated from field: string id = 1;
111
+ */
112
+ this.id = "";
113
+ /**
114
+ * name is the name of the Team
115
+ *
116
+ * @generated from field: string name = 2;
117
+ */
118
+ this.name = "";
119
+ /**
120
+ * slug is the short version of the Team name
121
+ *
122
+ * @generated from field: string slug = 3;
123
+ */
124
+ this.slug = "";
125
+ /**
126
+ * members are the team members of this Team
127
+ *
128
+ * @generated from field: repeated gitpod.experimental.v1.TeamMember members = 4;
129
+ */
130
+ this.members = [];
131
+ protobuf_1.proto3.util.initPartial(data, this);
132
+ }
133
+ static fromBinary(bytes, options) {
134
+ return new Team().fromBinary(bytes, options);
135
+ }
136
+ static fromJson(jsonValue, options) {
137
+ return new Team().fromJson(jsonValue, options);
138
+ }
139
+ static fromJsonString(jsonString, options) {
140
+ return new Team().fromJsonString(jsonString, options);
141
+ }
142
+ static equals(a, b) {
143
+ return protobuf_1.proto3.util.equals(Team, a, b);
144
+ }
145
+ }
146
+ exports.Team = Team;
147
+ Team.runtime = protobuf_1.proto3;
148
+ Team.typeName = "gitpod.experimental.v1.Team";
149
+ Team.fields = protobuf_1.proto3.util.newFieldList(() => [
150
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
151
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
152
+ { no: 3, name: "slug", kind: "scalar", T: 9 /* ScalarType.STRING */ },
153
+ { no: 4, name: "members", kind: "message", T: TeamMember, repeated: true },
154
+ ]);
155
+ /**
156
+ * @generated from message gitpod.experimental.v1.TeamMember
157
+ */
158
+ class TeamMember extends protobuf_1.Message {
159
+ constructor(data) {
160
+ super();
161
+ /**
162
+ * user_id is the identifier of the user
163
+ *
164
+ * @generated from field: string user_id = 1;
165
+ */
166
+ this.userId = "";
167
+ /**
168
+ * role is the role this member is assigned
169
+ *
170
+ * @generated from field: gitpod.experimental.v1.TeamRole role = 2;
171
+ */
172
+ this.role = TeamRole.UNSPECIFIED;
173
+ protobuf_1.proto3.util.initPartial(data, this);
174
+ }
175
+ static fromBinary(bytes, options) {
176
+ return new TeamMember().fromBinary(bytes, options);
177
+ }
178
+ static fromJson(jsonValue, options) {
179
+ return new TeamMember().fromJson(jsonValue, options);
180
+ }
181
+ static fromJsonString(jsonString, options) {
182
+ return new TeamMember().fromJsonString(jsonString, options);
183
+ }
184
+ static equals(a, b) {
185
+ return protobuf_1.proto3.util.equals(TeamMember, a, b);
186
+ }
187
+ }
188
+ exports.TeamMember = TeamMember;
189
+ TeamMember.runtime = protobuf_1.proto3;
190
+ TeamMember.typeName = "gitpod.experimental.v1.TeamMember";
191
+ TeamMember.fields = protobuf_1.proto3.util.newFieldList(() => [
192
+ { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
193
+ { no: 2, name: "role", kind: "enum", T: protobuf_1.proto3.getEnumType(TeamRole) },
194
+ ]);
195
+ //# sourceMappingURL=teams_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teams_pb.js","sourceRoot":"","sources":["../../../../src/gitpod/experimental/v1/teams_pb.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAQH,iDAAmD;AAEnD;;GAEG;AACH,IAAY,QAsBX;AAtBD,WAAY,QAAQ;IAClB;;;;OAIG;IACH,qDAAe,CAAA;IAEf;;;;;OAKG;IACH,yCAAS,CAAA;IAET;;;;OAIG;IACH,2CAAU,CAAA;AACZ,CAAC,EAtBW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAsBnB;AACD,4DAA4D;AAC5D,iBAAM,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,iCAAiC,EAAE;IACnE,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE;IACxC,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE;IAClC,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE;CACpC,CAAC,CAAC;AAEH;;GAEG;AACH,MAAa,iBAAkB,SAAQ,kBAA0B;IAQ/D,YAAY,IAAwC;QAClD,KAAK,EAAE,CAAC;QARV;;;;WAIG;QACH,SAAI,GAAG,EAAE,CAAC;QAIR,iBAAM,CAAC,IAAI,CAAC,WAAW,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.ts ADDED
@@ -0,0 +1,7 @@
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
+ export * as experimental from "./gitpod/experimental/v1";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAC"}
package/lib/index.js ADDED
@@ -0,0 +1,10 @@
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.experimental = void 0;
9
+ exports.experimental = require("./gitpod/experimental/v1");
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,2DAAyD"}
package/package.json CHANGED
@@ -6,7 +6,6 @@
6
6
  "@bufbuild/protoc-gen-es": "^0.1.1"
7
7
  },
8
8
  "devDependencies": {
9
- "@gitpod/gitpod-protocol": "0.1.5",
10
9
  "@testdeck/mocha": "0.1.2",
11
10
  "@types/chai": "^4.1.2",
12
11
  "@types/node": "^16.11.0",
@@ -18,12 +17,14 @@
18
17
  "provenance-bundle.jsonl"
19
18
  ],
20
19
  "license": "UNLICENSED",
20
+ "main": "./lib/index.js",
21
21
  "name": "@gitpod/public-api",
22
22
  "scripts": {
23
- "build": "mkdir -p lib; tsc && cp -fR src/* lib",
23
+ "build": "mkdir -p lib; tsc",
24
24
  "test": "mocha --opts mocha.opts './**/*.spec.ts' --exclude './node_modules/**'",
25
25
  "test:brk": "yarn test --inspect-brk",
26
26
  "watch": "leeway exec --package .:lib --transitive-dependencies --filter-type yarn --components --parallel -- tsc -w --preserveWatchOutput"
27
27
  },
28
- "version": "0.1.5-mp-buf-breaking-demo-2.0"
28
+ "types": "./lib/index.d.ts",
29
+ "version": "0.1.5-mp-papi-experimental-teams-service.0"
29
30
  }
package/pkg-yarn.lock CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  "@gitpod/public-api@0.1.5":
6
6
  version "0.1.5"
7
- resolved "file:///tmp/cache/8c4416f9cfa49a9295b6e2e3574962e0e50ff1da.tar.gz"
7
+ resolved "file:///tmp/cache/4adce7b144ba4b389df919b4c9ce1225d976cd14.tar.gz"
8
8
  dependencies:
9
9
  "@bufbuild/connect-web" "^0.2.1"
10
10
  "@bufbuild/protobuf" "^0.1.1"