@gitpod/public-api 0.1.5-mp-server-ws-probe-remove.1 → 0.1.5-mp-grpc-web-prototype.1

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.pb.d.ts +31 -0
  2. package/lib/gitpod/v1/pagination.pb.d.ts.map +1 -0
  3. package/lib/gitpod/v1/pagination.pb.js +53 -0
  4. package/lib/gitpod/v1/pagination.pb.js.map +1 -0
  5. package/lib/gitpod/v1/pagination.pb.ts +77 -0
  6. package/lib/gitpod/v1/prebuilds.pb.d.ts +289 -0
  7. package/lib/gitpod/v1/prebuilds.pb.d.ts.map +1 -0
  8. package/lib/gitpod/v1/prebuilds.pb.js +585 -0
  9. package/lib/gitpod/v1/prebuilds.pb.js.map +1 -0
  10. package/lib/gitpod/v1/prebuilds.pb.ts +782 -0
  11. package/lib/gitpod/v1/workspaces.pb.d.ts +665 -0
  12. package/lib/gitpod/v1/workspaces.pb.d.ts.map +1 -0
  13. package/lib/gitpod/v1/workspaces.pb.js +1571 -0
  14. package/lib/gitpod/v1/workspaces.pb.js.map +1 -0
  15. package/lib/gitpod/v1/workspaces.pb.ts +2031 -0
  16. package/lib/google/protobuf/field_mask.pb.d.ts +231 -0
  17. package/lib/google/protobuf/field_mask.pb.d.ts.map +1 -0
  18. package/lib/google/protobuf/field_mask.pb.js +54 -0
  19. package/lib/google/protobuf/field_mask.pb.js.map +1 -0
  20. package/lib/google/protobuf/field_mask.pb.ts +280 -0
  21. package/lib/google/protobuf/timestamp.pb.d.ts +131 -0
  22. package/lib/google/protobuf/timestamp.pb.d.ts.map +1 -0
  23. package/lib/google/protobuf/timestamp.pb.js +81 -0
  24. package/lib/google/protobuf/timestamp.pb.js.map +1 -0
  25. package/lib/google/protobuf/timestamp.pb.ts +211 -0
  26. package/package.json +7 -10
  27. package/pkg-yarn.lock +4 -5
  28. package/provenance-bundle.jsonl +1 -1
  29. package/lib/gitpod/v1/pagination_grpc_pb.js +0 -7
  30. package/lib/gitpod/v1/pagination_pb.d.ts +0 -36
  31. package/lib/gitpod/v1/pagination_pb.js +0 -206
  32. package/lib/gitpod/v1/prebuilds_grpc_pb.d.ts +0 -95
  33. package/lib/gitpod/v1/prebuilds_grpc_pb.js +0 -161
  34. package/lib/gitpod/v1/prebuilds_pb.d.ts +0 -283
  35. package/lib/gitpod/v1/prebuilds_pb.js +0 -1997
  36. package/lib/gitpod/v1/workspaces_grpc_pb.d.ts +0 -197
  37. package/lib/gitpod/v1/workspaces_grpc_pb.js +0 -368
  38. package/lib/gitpod/v1/workspaces_pb.d.ts +0 -810
  39. package/lib/gitpod/v1/workspaces_pb.js +0 -5976
@@ -0,0 +1,231 @@
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 * as _m0 from "protobufjs/minimal";
7
+ export declare const protobufPackage = "google.protobuf";
8
+ /**
9
+ * `FieldMask` represents a set of symbolic field paths, for example:
10
+ *
11
+ * paths: "f.a"
12
+ * paths: "f.b.d"
13
+ *
14
+ * Here `f` represents a field in some root message, `a` and `b`
15
+ * fields in the message found in `f`, and `d` a field found in the
16
+ * message in `f.b`.
17
+ *
18
+ * Field masks are used to specify a subset of fields that should be
19
+ * returned by a get operation or modified by an update operation.
20
+ * Field masks also have a custom JSON encoding (see below).
21
+ *
22
+ * # Field Masks in Projections
23
+ *
24
+ * When used in the context of a projection, a response message or
25
+ * sub-message is filtered by the API to only contain those fields as
26
+ * specified in the mask. For example, if the mask in the previous
27
+ * example is applied to a response message as follows:
28
+ *
29
+ * f {
30
+ * a : 22
31
+ * b {
32
+ * d : 1
33
+ * x : 2
34
+ * }
35
+ * y : 13
36
+ * }
37
+ * z: 8
38
+ *
39
+ * The result will not contain specific values for fields x,y and z
40
+ * (their value will be set to the default, and omitted in proto text
41
+ * output):
42
+ *
43
+ * f {
44
+ * a : 22
45
+ * b {
46
+ * d : 1
47
+ * }
48
+ * }
49
+ *
50
+ * A repeated field is not allowed except at the last position of a
51
+ * paths string.
52
+ *
53
+ * If a FieldMask object is not present in a get operation, the
54
+ * operation applies to all fields (as if a FieldMask of all fields
55
+ * had been specified).
56
+ *
57
+ * Note that a field mask does not necessarily apply to the
58
+ * top-level response message. In case of a REST get operation, the
59
+ * field mask applies directly to the response, but in case of a REST
60
+ * list operation, the mask instead applies to each individual message
61
+ * in the returned resource list. In case of a REST custom method,
62
+ * other definitions may be used. Where the mask applies will be
63
+ * clearly documented together with its declaration in the API. In
64
+ * any case, the effect on the returned resource/resources is required
65
+ * behavior for APIs.
66
+ *
67
+ * # Field Masks in Update Operations
68
+ *
69
+ * A field mask in update operations specifies which fields of the
70
+ * targeted resource are going to be updated. The API is required
71
+ * to only change the values of the fields as specified in the mask
72
+ * and leave the others untouched. If a resource is passed in to
73
+ * describe the updated values, the API ignores the values of all
74
+ * fields not covered by the mask.
75
+ *
76
+ * If a repeated field is specified for an update operation, new values will
77
+ * be appended to the existing repeated field in the target resource. Note that
78
+ * a repeated field is only allowed in the last position of a `paths` string.
79
+ *
80
+ * If a sub-message is specified in the last position of the field mask for an
81
+ * update operation, then new value will be merged into the existing sub-message
82
+ * in the target resource.
83
+ *
84
+ * For example, given the target message:
85
+ *
86
+ * f {
87
+ * b {
88
+ * d: 1
89
+ * x: 2
90
+ * }
91
+ * c: [1]
92
+ * }
93
+ *
94
+ * And an update message:
95
+ *
96
+ * f {
97
+ * b {
98
+ * d: 10
99
+ * }
100
+ * c: [2]
101
+ * }
102
+ *
103
+ * then if the field mask is:
104
+ *
105
+ * paths: ["f.b", "f.c"]
106
+ *
107
+ * then the result will be:
108
+ *
109
+ * f {
110
+ * b {
111
+ * d: 10
112
+ * x: 2
113
+ * }
114
+ * c: [1, 2]
115
+ * }
116
+ *
117
+ * An implementation may provide options to override this default behavior for
118
+ * repeated and message fields.
119
+ *
120
+ * In order to reset a field's value to the default, the field must
121
+ * be in the mask and set to the default value in the provided resource.
122
+ * Hence, in order to reset all fields of a resource, provide a default
123
+ * instance of the resource and set all fields in the mask, or do
124
+ * not provide a mask as described below.
125
+ *
126
+ * If a field mask is not present on update, the operation applies to
127
+ * all fields (as if a field mask of all fields has been specified).
128
+ * Note that in the presence of schema evolution, this may mean that
129
+ * fields the client does not know and has therefore not filled into
130
+ * the request will be reset to their default. If this is unwanted
131
+ * behavior, a specific service may require a client to always specify
132
+ * a field mask, producing an error if not.
133
+ *
134
+ * As with get operations, the location of the resource which
135
+ * describes the updated values in the request message depends on the
136
+ * operation kind. In any case, the effect of the field mask is
137
+ * required to be honored by the API.
138
+ *
139
+ * ## Considerations for HTTP REST
140
+ *
141
+ * The HTTP kind of an update operation which uses a field mask must
142
+ * be set to PATCH instead of PUT in order to satisfy HTTP semantics
143
+ * (PUT must only be used for full updates).
144
+ *
145
+ * # JSON Encoding of Field Masks
146
+ *
147
+ * In JSON, a field mask is encoded as a single string where paths are
148
+ * separated by a comma. Fields name in each path are converted
149
+ * to/from lower-camel naming conventions.
150
+ *
151
+ * As an example, consider the following message declarations:
152
+ *
153
+ * message Profile {
154
+ * User user = 1;
155
+ * Photo photo = 2;
156
+ * }
157
+ * message User {
158
+ * string display_name = 1;
159
+ * string address = 2;
160
+ * }
161
+ *
162
+ * In proto a field mask for `Profile` may look as such:
163
+ *
164
+ * mask {
165
+ * paths: "user.display_name"
166
+ * paths: "photo"
167
+ * }
168
+ *
169
+ * In JSON, the same mask is represented as below:
170
+ *
171
+ * {
172
+ * mask: "user.displayName,photo"
173
+ * }
174
+ *
175
+ * # Field Masks and Oneof Fields
176
+ *
177
+ * Field masks treat fields in oneofs just as regular fields. Consider the
178
+ * following message:
179
+ *
180
+ * message SampleMessage {
181
+ * oneof test_oneof {
182
+ * string name = 4;
183
+ * SubMessage sub_message = 9;
184
+ * }
185
+ * }
186
+ *
187
+ * The field mask can be:
188
+ *
189
+ * mask {
190
+ * paths: "name"
191
+ * }
192
+ *
193
+ * Or:
194
+ *
195
+ * mask {
196
+ * paths: "sub_message"
197
+ * }
198
+ *
199
+ * Note that oneof type names ("test_oneof" in this case) cannot be used in
200
+ * paths.
201
+ *
202
+ * ## Field Mask Verification
203
+ *
204
+ * The implementation of any API method which has a FieldMask type field in the
205
+ * request should verify the included field paths, and return an
206
+ * `INVALID_ARGUMENT` error if any path is unmappable.
207
+ */
208
+ export interface FieldMask {
209
+ /** The set of field mask paths. */
210
+ paths: string[];
211
+ }
212
+ export declare const FieldMask: {
213
+ encode(message: FieldMask, writer?: _m0.Writer): _m0.Writer;
214
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): FieldMask;
215
+ fromPartial(object: DeepPartial<FieldMask>): FieldMask;
216
+ wrap(paths: string[]): FieldMask;
217
+ unwrap(message: FieldMask): string[];
218
+ };
219
+ export interface DataLoaderOptions {
220
+ cache?: boolean;
221
+ }
222
+ export interface DataLoaders {
223
+ rpcDataLoaderOptions?: DataLoaderOptions;
224
+ getDataLoader<T>(identifier: string, constructorFn: () => T): T;
225
+ }
226
+ declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
227
+ 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 {} ? {
228
+ [K in keyof T]?: DeepPartial<T[K]>;
229
+ } : Partial<T>;
230
+ export {};
231
+ //# sourceMappingURL=field_mask.pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field_mask.pb.d.ts","sourceRoot":"","sources":["../../../src/google/protobuf/field_mask.pb.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAE1C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC,CAAC,CAAC"}
@@ -0,0 +1,54 @@
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.FieldMask = exports.protobufPackage = void 0;
9
+ /* eslint-disable */
10
+ const _m0 = require("protobufjs/minimal");
11
+ exports.protobufPackage = "google.protobuf";
12
+ function createBaseFieldMask() {
13
+ return { paths: [] };
14
+ }
15
+ exports.FieldMask = {
16
+ encode(message, writer = _m0.Writer.create()) {
17
+ for (const v of message.paths) {
18
+ writer.uint32(10).string(v);
19
+ }
20
+ return writer;
21
+ },
22
+ decode(input, length) {
23
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
24
+ let end = length === undefined ? reader.len : reader.pos + length;
25
+ const message = createBaseFieldMask();
26
+ while (reader.pos < end) {
27
+ const tag = reader.uint32();
28
+ switch (tag >>> 3) {
29
+ case 1:
30
+ message.paths.push(reader.string());
31
+ break;
32
+ default:
33
+ reader.skipType(tag & 7);
34
+ break;
35
+ }
36
+ }
37
+ return message;
38
+ },
39
+ fromPartial(object) {
40
+ var _a;
41
+ const message = createBaseFieldMask();
42
+ message.paths = ((_a = object.paths) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
43
+ return message;
44
+ },
45
+ wrap(paths) {
46
+ const result = createBaseFieldMask();
47
+ result.paths = paths;
48
+ return result;
49
+ },
50
+ unwrap(message) {
51
+ return message.paths;
52
+ },
53
+ };
54
+ //# sourceMappingURL=field_mask.pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field_mask.pb.js","sourceRoot":"","sources":["../../../src/google/protobuf/field_mask.pb.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,oBAAoB;AACpB,0CAA0C;AAE7B,QAAA,eAAe,GAAG,iBAAiB,CAAC;AA+MjD,SAAS,mB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,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAI,EAAE,CAAC;QAClD,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,IAAI,CAAC,KAAe;QAClB,MAAM,MAAM,GAAG,mBAAmB,EAAE,CAAC;QAErC,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC;QAErB,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,CAAC,OAAkB;QACvB,OAAO,OAAO,CAAC,KAAK,CAAC;IACvB,CAAC;CACF,CAAC"}
@@ -0,0 +1,280 @@
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
+ /* eslint-disable */
8
+ import * as _m0 from "protobufjs/minimal";
9
+
10
+ export const protobufPackage = "google.protobuf";
11
+
12
+ /**
13
+ * `FieldMask` represents a set of symbolic field paths, for example:
14
+ *
15
+ * paths: "f.a"
16
+ * paths: "f.b.d"
17
+ *
18
+ * Here `f` represents a field in some root message, `a` and `b`
19
+ * fields in the message found in `f`, and `d` a field found in the
20
+ * message in `f.b`.
21
+ *
22
+ * Field masks are used to specify a subset of fields that should be
23
+ * returned by a get operation or modified by an update operation.
24
+ * Field masks also have a custom JSON encoding (see below).
25
+ *
26
+ * # Field Masks in Projections
27
+ *
28
+ * When used in the context of a projection, a response message or
29
+ * sub-message is filtered by the API to only contain those fields as
30
+ * specified in the mask. For example, if the mask in the previous
31
+ * example is applied to a response message as follows:
32
+ *
33
+ * f {
34
+ * a : 22
35
+ * b {
36
+ * d : 1
37
+ * x : 2
38
+ * }
39
+ * y : 13
40
+ * }
41
+ * z: 8
42
+ *
43
+ * The result will not contain specific values for fields x,y and z
44
+ * (their value will be set to the default, and omitted in proto text
45
+ * output):
46
+ *
47
+ * f {
48
+ * a : 22
49
+ * b {
50
+ * d : 1
51
+ * }
52
+ * }
53
+ *
54
+ * A repeated field is not allowed except at the last position of a
55
+ * paths string.
56
+ *
57
+ * If a FieldMask object is not present in a get operation, the
58
+ * operation applies to all fields (as if a FieldMask of all fields
59
+ * had been specified).
60
+ *
61
+ * Note that a field mask does not necessarily apply to the
62
+ * top-level response message. In case of a REST get operation, the
63
+ * field mask applies directly to the response, but in case of a REST
64
+ * list operation, the mask instead applies to each individual message
65
+ * in the returned resource list. In case of a REST custom method,
66
+ * other definitions may be used. Where the mask applies will be
67
+ * clearly documented together with its declaration in the API. In
68
+ * any case, the effect on the returned resource/resources is required
69
+ * behavior for APIs.
70
+ *
71
+ * # Field Masks in Update Operations
72
+ *
73
+ * A field mask in update operations specifies which fields of the
74
+ * targeted resource are going to be updated. The API is required
75
+ * to only change the values of the fields as specified in the mask
76
+ * and leave the others untouched. If a resource is passed in to
77
+ * describe the updated values, the API ignores the values of all
78
+ * fields not covered by the mask.
79
+ *
80
+ * If a repeated field is specified for an update operation, new values will
81
+ * be appended to the existing repeated field in the target resource. Note that
82
+ * a repeated field is only allowed in the last position of a `paths` string.
83
+ *
84
+ * If a sub-message is specified in the last position of the field mask for an
85
+ * update operation, then new value will be merged into the existing sub-message
86
+ * in the target resource.
87
+ *
88
+ * For example, given the target message:
89
+ *
90
+ * f {
91
+ * b {
92
+ * d: 1
93
+ * x: 2
94
+ * }
95
+ * c: [1]
96
+ * }
97
+ *
98
+ * And an update message:
99
+ *
100
+ * f {
101
+ * b {
102
+ * d: 10
103
+ * }
104
+ * c: [2]
105
+ * }
106
+ *
107
+ * then if the field mask is:
108
+ *
109
+ * paths: ["f.b", "f.c"]
110
+ *
111
+ * then the result will be:
112
+ *
113
+ * f {
114
+ * b {
115
+ * d: 10
116
+ * x: 2
117
+ * }
118
+ * c: [1, 2]
119
+ * }
120
+ *
121
+ * An implementation may provide options to override this default behavior for
122
+ * repeated and message fields.
123
+ *
124
+ * In order to reset a field's value to the default, the field must
125
+ * be in the mask and set to the default value in the provided resource.
126
+ * Hence, in order to reset all fields of a resource, provide a default
127
+ * instance of the resource and set all fields in the mask, or do
128
+ * not provide a mask as described below.
129
+ *
130
+ * If a field mask is not present on update, the operation applies to
131
+ * all fields (as if a field mask of all fields has been specified).
132
+ * Note that in the presence of schema evolution, this may mean that
133
+ * fields the client does not know and has therefore not filled into
134
+ * the request will be reset to their default. If this is unwanted
135
+ * behavior, a specific service may require a client to always specify
136
+ * a field mask, producing an error if not.
137
+ *
138
+ * As with get operations, the location of the resource which
139
+ * describes the updated values in the request message depends on the
140
+ * operation kind. In any case, the effect of the field mask is
141
+ * required to be honored by the API.
142
+ *
143
+ * ## Considerations for HTTP REST
144
+ *
145
+ * The HTTP kind of an update operation which uses a field mask must
146
+ * be set to PATCH instead of PUT in order to satisfy HTTP semantics
147
+ * (PUT must only be used for full updates).
148
+ *
149
+ * # JSON Encoding of Field Masks
150
+ *
151
+ * In JSON, a field mask is encoded as a single string where paths are
152
+ * separated by a comma. Fields name in each path are converted
153
+ * to/from lower-camel naming conventions.
154
+ *
155
+ * As an example, consider the following message declarations:
156
+ *
157
+ * message Profile {
158
+ * User user = 1;
159
+ * Photo photo = 2;
160
+ * }
161
+ * message User {
162
+ * string display_name = 1;
163
+ * string address = 2;
164
+ * }
165
+ *
166
+ * In proto a field mask for `Profile` may look as such:
167
+ *
168
+ * mask {
169
+ * paths: "user.display_name"
170
+ * paths: "photo"
171
+ * }
172
+ *
173
+ * In JSON, the same mask is represented as below:
174
+ *
175
+ * {
176
+ * mask: "user.displayName,photo"
177
+ * }
178
+ *
179
+ * # Field Masks and Oneof Fields
180
+ *
181
+ * Field masks treat fields in oneofs just as regular fields. Consider the
182
+ * following message:
183
+ *
184
+ * message SampleMessage {
185
+ * oneof test_oneof {
186
+ * string name = 4;
187
+ * SubMessage sub_message = 9;
188
+ * }
189
+ * }
190
+ *
191
+ * The field mask can be:
192
+ *
193
+ * mask {
194
+ * paths: "name"
195
+ * }
196
+ *
197
+ * Or:
198
+ *
199
+ * mask {
200
+ * paths: "sub_message"
201
+ * }
202
+ *
203
+ * Note that oneof type names ("test_oneof" in this case) cannot be used in
204
+ * paths.
205
+ *
206
+ * ## Field Mask Verification
207
+ *
208
+ * The implementation of any API method which has a FieldMask type field in the
209
+ * request should verify the included field paths, and return an
210
+ * `INVALID_ARGUMENT` error if any path is unmappable.
211
+ */
212
+ export interface FieldMask {
213
+ /** The set of field mask paths. */
214
+ paths: string[];
215
+ }
216
+
217
+ function createBaseFieldMask(): FieldMask {
218
+ return { paths: [] };
219
+ }
220
+
221
+ export const FieldMask = {
222
+ encode(message: FieldMask, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
223
+ for (const v of message.paths) {
224
+ writer.uint32(10).string(v!);
225
+ }
226
+ return writer;
227
+ },
228
+
229
+ decode(input: _m0.Reader | Uint8Array, length?: number): FieldMask {
230
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
231
+ let end = length === undefined ? reader.len : reader.pos + length;
232
+ const message = createBaseFieldMask();
233
+ while (reader.pos < end) {
234
+ const tag = reader.uint32();
235
+ switch (tag >>> 3) {
236
+ case 1:
237
+ message.paths.push(reader.string());
238
+ break;
239
+ default:
240
+ reader.skipType(tag & 7);
241
+ break;
242
+ }
243
+ }
244
+ return message;
245
+ },
246
+
247
+ fromPartial(object: DeepPartial<FieldMask>): FieldMask {
248
+ const message = createBaseFieldMask();
249
+ message.paths = object.paths?.map((e) => e) || [];
250
+ return message;
251
+ },
252
+
253
+ wrap(paths: string[]): FieldMask {
254
+ const result = createBaseFieldMask();
255
+
256
+ result.paths = paths;
257
+
258
+ return result;
259
+ },
260
+
261
+ unwrap(message: FieldMask): string[] {
262
+ return message.paths;
263
+ },
264
+ };
265
+
266
+ export interface DataLoaderOptions {
267
+ cache?: boolean;
268
+ }
269
+
270
+ export interface DataLoaders {
271
+ rpcDataLoaderOptions?: DataLoaderOptions;
272
+ getDataLoader<T>(identifier: string, constructorFn: () => T): T;
273
+ }
274
+
275
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
276
+
277
+ export type DeepPartial<T> = T extends Builtin ? T
278
+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
279
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
280
+ : Partial<T>;
@@ -0,0 +1,131 @@
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 * as _m0 from "protobufjs/minimal";
7
+ export declare const protobufPackage = "google.protobuf";
8
+ /**
9
+ * A Timestamp represents a point in time independent of any time zone or local
10
+ * calendar, encoded as a count of seconds and fractions of seconds at
11
+ * nanosecond resolution. The count is relative to an epoch at UTC midnight on
12
+ * January 1, 1970, in the proleptic Gregorian calendar which extends the
13
+ * Gregorian calendar backwards to year one.
14
+ *
15
+ * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
16
+ * second table is needed for interpretation, using a [24-hour linear
17
+ * smear](https://developers.google.com/time/smear).
18
+ *
19
+ * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
20
+ * restricting to that range, we ensure that we can convert to and from [RFC
21
+ * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
22
+ *
23
+ * # Examples
24
+ *
25
+ * Example 1: Compute Timestamp from POSIX `time()`.
26
+ *
27
+ * Timestamp timestamp;
28
+ * timestamp.set_seconds(time(NULL));
29
+ * timestamp.set_nanos(0);
30
+ *
31
+ * Example 2: Compute Timestamp from POSIX `gettimeofday()`.
32
+ *
33
+ * struct timeval tv;
34
+ * gettimeofday(&tv, NULL);
35
+ *
36
+ * Timestamp timestamp;
37
+ * timestamp.set_seconds(tv.tv_sec);
38
+ * timestamp.set_nanos(tv.tv_usec * 1000);
39
+ *
40
+ * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
41
+ *
42
+ * FILETIME ft;
43
+ * GetSystemTimeAsFileTime(&ft);
44
+ * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
45
+ *
46
+ * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
47
+ * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
48
+ * Timestamp timestamp;
49
+ * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
50
+ * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
51
+ *
52
+ * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
53
+ *
54
+ * long millis = System.currentTimeMillis();
55
+ *
56
+ * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
57
+ * .setNanos((int) ((millis % 1000) * 1000000)).build();
58
+ *
59
+ * Example 5: Compute Timestamp from Java `Instant.now()`.
60
+ *
61
+ * Instant now = Instant.now();
62
+ *
63
+ * Timestamp timestamp =
64
+ * Timestamp.newBuilder().setSeconds(now.getEpochSecond())
65
+ * .setNanos(now.getNano()).build();
66
+ *
67
+ * Example 6: Compute Timestamp from current time in Python.
68
+ *
69
+ * timestamp = Timestamp()
70
+ * timestamp.GetCurrentTime()
71
+ *
72
+ * # JSON Mapping
73
+ *
74
+ * In JSON format, the Timestamp type is encoded as a string in the
75
+ * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
76
+ * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
77
+ * where {year} is always expressed using four digits while {month}, {day},
78
+ * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
79
+ * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
80
+ * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
81
+ * is required. A proto3 JSON serializer should always use UTC (as indicated by
82
+ * "Z") when printing the Timestamp type and a proto3 JSON parser should be
83
+ * able to accept both UTC and other timezones (as indicated by an offset).
84
+ *
85
+ * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
86
+ * 01:30 UTC on January 15, 2017.
87
+ *
88
+ * In JavaScript, one can convert a Date object to this format using the
89
+ * standard
90
+ * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
91
+ * method. In Python, a standard `datetime.datetime` object can be converted
92
+ * to this format using
93
+ * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
94
+ * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
95
+ * the Joda Time's [`ISODateTimeFormat.dateTime()`](
96
+ * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
97
+ * ) to obtain a formatter capable of generating timestamps in this format.
98
+ */
99
+ export interface Timestamp {
100
+ /**
101
+ * Represents seconds of UTC time since Unix epoch
102
+ * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
103
+ * 9999-12-31T23:59:59Z inclusive.
104
+ */
105
+ seconds: number;
106
+ /**
107
+ * Non-negative fractions of a second at nanosecond resolution. Negative
108
+ * second values with fractions must still have non-negative nanos values
109
+ * that count forward in time. Must be from 0 to 999,999,999
110
+ * inclusive.
111
+ */
112
+ nanos: number;
113
+ }
114
+ export declare const Timestamp: {
115
+ encode(message: Timestamp, writer?: _m0.Writer): _m0.Writer;
116
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Timestamp;
117
+ fromPartial(object: DeepPartial<Timestamp>): Timestamp;
118
+ };
119
+ export interface DataLoaderOptions {
120
+ cache?: boolean;
121
+ }
122
+ export interface DataLoaders {
123
+ rpcDataLoaderOptions?: DataLoaderOptions;
124
+ getDataLoader<T>(identifier: string, constructorFn: () => T): T;
125
+ }
126
+ declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
127
+ 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 {} ? {
128
+ [K in keyof T]?: DeepPartial<T[K]>;
129
+ } : Partial<T>;
130
+ export {};
131
+ //# sourceMappingURL=timestamp.pb.d.ts.map