@fi-ts/api 0.0.1-alpha.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 (40) hide show
  1. package/buf/validate/validate_pb.d.ts +4766 -0
  2. package/buf/validate/validate_pb.js +356 -0
  3. package/buf/validate/validate_pb.ts +4967 -0
  4. package/fits/api/v1/common_pb.d.ts +372 -0
  5. package/fits/api/v1/common_pb.js +276 -0
  6. package/fits/api/v1/common_pb.ts +447 -0
  7. package/fits/api/v1/health_pb.d.ts +190 -0
  8. package/fits/api/v1/health_pb.js +100 -0
  9. package/fits/api/v1/health_pb.ts +229 -0
  10. package/fits/api/v1/ip_pb.d.ts +549 -0
  11. package/fits/api/v1/ip_pb.js +137 -0
  12. package/fits/api/v1/ip_pb.ts +643 -0
  13. package/fits/api/v1/method_pb.d.ts +116 -0
  14. package/fits/api/v1/method_pb.js +38 -0
  15. package/fits/api/v1/method_pb.ts +142 -0
  16. package/fits/api/v1/partition_pb.d.ts +251 -0
  17. package/fits/api/v1/partition_pb.js +62 -0
  18. package/fits/api/v1/partition_pb.ts +300 -0
  19. package/fits/api/v1/predefined_rules_pb.d.ts +90 -0
  20. package/fits/api/v1/predefined_rules_pb.js +93 -0
  21. package/fits/api/v1/predefined_rules_pb.ts +127 -0
  22. package/fits/api/v1/project_pb.d.ts +366 -0
  23. package/fits/api/v1/project_pb.js +73 -0
  24. package/fits/api/v1/project_pb.ts +430 -0
  25. package/fits/api/v1/tenant_pb.d.ts +370 -0
  26. package/fits/api/v1/tenant_pb.js +73 -0
  27. package/fits/api/v1/tenant_pb.ts +435 -0
  28. package/fits/api/v1/token_pb.d.ts +522 -0
  29. package/fits/api/v1/token_pb.js +118 -0
  30. package/fits/api/v1/token_pb.ts +600 -0
  31. package/fits/api/v1/user_pb.d.ts +108 -0
  32. package/fits/api/v1/user_pb.js +34 -0
  33. package/fits/api/v1/user_pb.ts +139 -0
  34. package/fits/api/v1/version_pb.d.ts +88 -0
  35. package/fits/api/v1/version_pb.js +32 -0
  36. package/fits/api/v1/version_pb.ts +114 -0
  37. package/fits/api/v1/vpn_pb.d.ts +55 -0
  38. package/fits/api/v1/vpn_pb.js +14 -0
  39. package/fits/api/v1/vpn_pb.ts +72 -0
  40. package/package.json +25 -0
@@ -0,0 +1,447 @@
1
+ // @generated by protoc-gen-es v2.14.1 with parameter "target=ts"
2
+ // @generated from file fits/api/v1/common.proto (package fits.api.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenEnum, GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
+ import { enumDesc, extDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import { file_buf_validate_validate } from "../../../buf/validate/validate_pb";
8
+ import { file_fits_api_v1_predefined_rules } from "./predefined_rules_pb";
9
+ import type { EnumValueOptions, MethodOptions, Timestamp } from "@bufbuild/protobuf/wkt";
10
+ import { file_google_protobuf_descriptor, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
11
+ import type { Message } from "@bufbuild/protobuf";
12
+
13
+ /**
14
+ * Describes the file fits/api/v1/common.proto.
15
+ */
16
+ export const file_fits_api_v1_common: GenFile = /*@__PURE__*/
17
+ fileDesc("ChhmaXRzL2FwaS92MS9jb21tb24ucHJvdG8SC2ZpdHMuYXBpLnYxIkIKBlBhZ2luZxIRCgRwYWdlGAEgASgESACIAQESEgoFY291bnQYAiABKARIAYgBAUIHCgVfcGFnZUIICgZfY291bnQiiAEKBkxhYmVscxJPCgZsYWJlbHMYASADKAsyHy5maXRzLmFwaS52MS5MYWJlbHMuTGFiZWxzRW50cnlCHrpIG5oBGLiVuLECASIHcgUQARiAAioHcgUQABiAAhotCgtMYWJlbHNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIq8BCgRNZXRhEigKBmxhYmVscxgBIAEoCzITLmZpdHMuYXBpLnYxLkxhYmVsc0gAiAEBEi4KCmNyZWF0ZWRf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uQXBpLlYxygILRml0c1xBcGlcVjHiAhdGaXRzXEFwaVxWMVxHUEJNZXRhZGF0YeoCDUZpdHM6OkFwaTo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_fits_api_v1_predefined_rules, file_google_protobuf_descriptor, file_google_protobuf_timestamp]);
18
+
19
+ /**
20
+ * Paging defines paging for methods with a lot of results
21
+ *
22
+ * @generated from message fits.api.v1.Paging
23
+ */
24
+ export type Paging = Message<"fits.api.v1.Paging"> & {
25
+ /**
26
+ * Page is used for pagination, if unset only the first page is returned,
27
+ * the list response contains then the page number for the next page.
28
+ *
29
+ * @generated from field: optional uint64 page = 1;
30
+ */
31
+ page?: bigint | undefined;
32
+
33
+ /**
34
+ * Count is the number of results returned per page, if not given server side defaults apply
35
+ *
36
+ * @generated from field: optional uint64 count = 2;
37
+ */
38
+ count?: bigint | undefined;
39
+ };
40
+
41
+ /**
42
+ * Describes the message fits.api.v1.Paging.
43
+ * Use `create(PagingSchema)` to create a new message.
44
+ */
45
+ export const PagingSchema: GenMessage<Paging> = /*@__PURE__*/
46
+ messageDesc(file_fits_api_v1_common, 0);
47
+
48
+ /**
49
+ * Labels define additional information to a entity
50
+ *
51
+ * @generated from message fits.api.v1.Labels
52
+ */
53
+ export type Labels = Message<"fits.api.v1.Labels"> & {
54
+ /**
55
+ * Labels consists labels
56
+ *
57
+ * @generated from field: map<string, string> labels = 1;
58
+ */
59
+ labels: { [key: string]: string };
60
+ };
61
+
62
+ /**
63
+ * Describes the message fits.api.v1.Labels.
64
+ * Use `create(LabelsSchema)` to create a new message.
65
+ */
66
+ export const LabelsSchema: GenMessage<Labels> = /*@__PURE__*/
67
+ messageDesc(file_fits_api_v1_common, 1);
68
+
69
+ /**
70
+ * Meta of a message
71
+ *
72
+ * @generated from message fits.api.v1.Meta
73
+ */
74
+ export type Meta = Message<"fits.api.v1.Meta"> & {
75
+ /**
76
+ * Tags on this entity
77
+ *
78
+ * @generated from field: optional fits.api.v1.Labels labels = 1;
79
+ */
80
+ labels?: Labels | undefined;
81
+
82
+ /**
83
+ * CreatedAt is the date when this entity was created
84
+ *
85
+ * @generated from field: google.protobuf.Timestamp created_at = 2;
86
+ */
87
+ createdAt?: Timestamp | undefined;
88
+
89
+ /**
90
+ * UpdatedAt is the date when this entity was updated
91
+ * must be part of the update request to ensure optimistic locking
92
+ *
93
+ * @generated from field: google.protobuf.Timestamp updated_at = 3;
94
+ */
95
+ updatedAt?: Timestamp | undefined;
96
+
97
+ /**
98
+ * Generation identifies how often this entity was modified since creation.
99
+ *
100
+ * @generated from field: uint64 generation = 4;
101
+ */
102
+ generation: bigint;
103
+ };
104
+
105
+ /**
106
+ * Describes the message fits.api.v1.Meta.
107
+ * Use `create(MetaSchema)` to create a new message.
108
+ */
109
+ export const MetaSchema: GenMessage<Meta> = /*@__PURE__*/
110
+ messageDesc(file_fits_api_v1_common, 2);
111
+
112
+ /**
113
+ * UpdateLabels is a message to update labels
114
+ *
115
+ * @generated from message fits.api.v1.UpdateLabels
116
+ */
117
+ export type UpdateLabels = Message<"fits.api.v1.UpdateLabels"> & {
118
+ /**
119
+ * Update labels. New ones will be added, existing ones overwritten
120
+ *
121
+ * @generated from field: fits.api.v1.Labels update = 1;
122
+ */
123
+ update?: Labels | undefined;
124
+
125
+ /**
126
+ * Remove labels by key
127
+ *
128
+ * @generated from field: repeated string remove = 2;
129
+ */
130
+ remove: string[];
131
+ };
132
+
133
+ /**
134
+ * Describes the message fits.api.v1.UpdateLabels.
135
+ * Use `create(UpdateLabelsSchema)` to create a new message.
136
+ */
137
+ export const UpdateLabelsSchema: GenMessage<UpdateLabels> = /*@__PURE__*/
138
+ messageDesc(file_fits_api_v1_common, 3);
139
+
140
+ /**
141
+ * UpdateMeta must be provided with every UpdateRequest to define how optimistic locking should be handled
142
+ *
143
+ * @generated from message fits.api.v1.UpdateMeta
144
+ */
145
+ export type UpdateMeta = Message<"fits.api.v1.UpdateMeta"> & {
146
+ /**
147
+ * UpdatedAt is the date when this entity was updated
148
+ * must be part of the update request to ensure optimistic locking
149
+ *
150
+ * @generated from field: google.protobuf.Timestamp updated_at = 1;
151
+ */
152
+ updatedAt?: Timestamp | undefined;
153
+
154
+ /**
155
+ * LockingStrategy to be used for this update request
156
+ *
157
+ * @generated from field: fits.api.v1.OptimisticLockingStrategy locking_strategy = 2;
158
+ */
159
+ lockingStrategy: OptimisticLockingStrategy;
160
+ };
161
+
162
+ /**
163
+ * Describes the message fits.api.v1.UpdateMeta.
164
+ * Use `create(UpdateMetaSchema)` to create a new message.
165
+ */
166
+ export const UpdateMetaSchema: GenMessage<UpdateMeta> = /*@__PURE__*/
167
+ messageDesc(file_fits_api_v1_common, 4);
168
+
169
+ /**
170
+ * TenantRole specifies what role a logged in user needs to call this tenant scoped service
171
+ *
172
+ * @generated from enum fits.api.v1.TenantRole
173
+ */
174
+ export enum TenantRole {
175
+ /**
176
+ * TENANT_ROLE_UNSPECIFIED is not specified
177
+ *
178
+ * @generated from enum value: TENANT_ROLE_UNSPECIFIED = 0;
179
+ */
180
+ UNSPECIFIED = 0,
181
+
182
+ /**
183
+ * TENANT_ROLE_OWNER the logged in user needs at least owner role to call this method
184
+ *
185
+ * @generated from enum value: TENANT_ROLE_OWNER = 1;
186
+ */
187
+ OWNER = 1,
188
+
189
+ /**
190
+ * TENANT_ROLE_EDITOR the logged in user needs at least editor role to call this method
191
+ *
192
+ * @generated from enum value: TENANT_ROLE_EDITOR = 2;
193
+ */
194
+ EDITOR = 2,
195
+
196
+ /**
197
+ * TENANT_ROLE_VIEWER the logged in user needs at least viewer role to call this method
198
+ *
199
+ * @generated from enum value: TENANT_ROLE_VIEWER = 3;
200
+ */
201
+ VIEWER = 3,
202
+
203
+ /**
204
+ * TENANT_ROLE_GUEST the logged in user needs at least guest role to call this method
205
+ * The guest role is assumed by users who are invited to a tenant's project without them
206
+ * having a direct membership within the tenant.
207
+ *
208
+ * @generated from enum value: TENANT_ROLE_GUEST = 4;
209
+ */
210
+ GUEST = 4,
211
+ }
212
+
213
+ /**
214
+ * Describes the enum fits.api.v1.TenantRole.
215
+ */
216
+ export const TenantRoleSchema: GenEnum<TenantRole> = /*@__PURE__*/
217
+ enumDesc(file_fits_api_v1_common, 0);
218
+
219
+ /**
220
+ * ProjectRole specifies what role a logged in user needs to call this project scoped service
221
+ *
222
+ * @generated from enum fits.api.v1.ProjectRole
223
+ */
224
+ export enum ProjectRole {
225
+ /**
226
+ * PROJECT_ROLE_UNSPECIFIED is not specified
227
+ *
228
+ * @generated from enum value: PROJECT_ROLE_UNSPECIFIED = 0;
229
+ */
230
+ UNSPECIFIED = 0,
231
+
232
+ /**
233
+ * PROJECT_ROLE_OWNER the logged in user needs at least owner role to call this method
234
+ *
235
+ * @generated from enum value: PROJECT_ROLE_OWNER = 1;
236
+ */
237
+ OWNER = 1,
238
+
239
+ /**
240
+ * PROJECT_ROLE_EDITOR the logged in user needs at least editor role to call this method
241
+ *
242
+ * @generated from enum value: PROJECT_ROLE_EDITOR = 2;
243
+ */
244
+ EDITOR = 2,
245
+
246
+ /**
247
+ * PROJECT_ROLE_VIEWER the logged in user needs at least viewer role to call this method
248
+ *
249
+ * @generated from enum value: PROJECT_ROLE_VIEWER = 3;
250
+ */
251
+ VIEWER = 3,
252
+ }
253
+
254
+ /**
255
+ * Describes the enum fits.api.v1.ProjectRole.
256
+ */
257
+ export const ProjectRoleSchema: GenEnum<ProjectRole> = /*@__PURE__*/
258
+ enumDesc(file_fits_api_v1_common, 1);
259
+
260
+ /**
261
+ * AdminRole specifies what role a logged in user needs to call this admin service
262
+ *
263
+ * @generated from enum fits.api.v1.AdminRole
264
+ */
265
+ export enum AdminRole {
266
+ /**
267
+ * ADMIN_ROLE_UNSPECIFIED is not specified
268
+ *
269
+ * @generated from enum value: ADMIN_ROLE_UNSPECIFIED = 0;
270
+ */
271
+ UNSPECIFIED = 0,
272
+
273
+ /**
274
+ * ADMIN_ROLE_EDITOR the logged in user needs at least editor role to call this method
275
+ *
276
+ * @generated from enum value: ADMIN_ROLE_EDITOR = 1;
277
+ */
278
+ EDITOR = 1,
279
+
280
+ /**
281
+ * ADMIN_ROLE_VIEWER the logged in user needs at least viewer role to call this method
282
+ *
283
+ * @generated from enum value: ADMIN_ROLE_VIEWER = 2;
284
+ */
285
+ VIEWER = 2,
286
+ }
287
+
288
+ /**
289
+ * Describes the enum fits.api.v1.AdminRole.
290
+ */
291
+ export const AdminRoleSchema: GenEnum<AdminRole> = /*@__PURE__*/
292
+ enumDesc(file_fits_api_v1_common, 2);
293
+
294
+ /**
295
+ * Visibility of a method
296
+ *
297
+ * @generated from enum fits.api.v1.Visibility
298
+ */
299
+ export enum Visibility {
300
+ /**
301
+ * VISIBILITY_UNSPECIFIED is not defined
302
+ *
303
+ * @generated from enum value: VISIBILITY_UNSPECIFIED = 0;
304
+ */
305
+ UNSPECIFIED = 0,
306
+
307
+ /**
308
+ * VISIBILITY_PUBLIC specifies that this service is accessible without authentication
309
+ *
310
+ * @generated from enum value: VISIBILITY_PUBLIC = 1;
311
+ */
312
+ PUBLIC = 1,
313
+
314
+ /**
315
+ * VISIBILITY_SELF enable call this endpoint from the authenticated user only
316
+ *
317
+ * @generated from enum value: VISIBILITY_SELF = 2;
318
+ */
319
+ SELF = 2,
320
+ }
321
+
322
+ /**
323
+ * Describes the enum fits.api.v1.Visibility.
324
+ */
325
+ export const VisibilitySchema: GenEnum<Visibility> = /*@__PURE__*/
326
+ enumDesc(file_fits_api_v1_common, 3);
327
+
328
+ /**
329
+ * Auditing option specified per service method
330
+ * by default all service methods are included
331
+ * add the auditing option if you want to exclude a method in auditing
332
+ *
333
+ * @generated from enum fits.api.v1.Auditing
334
+ */
335
+ export enum Auditing {
336
+ /**
337
+ * AUDITING_UNSPECIFIED is not specified
338
+ *
339
+ * @generated from enum value: AUDITING_UNSPECIFIED = 0;
340
+ */
341
+ UNSPECIFIED = 0,
342
+
343
+ /**
344
+ * AUDITING_INCLUDED if a method is annotated with this, all calls are audited
345
+ *
346
+ * @generated from enum value: AUDITING_INCLUDED = 1;
347
+ */
348
+ INCLUDED = 1,
349
+
350
+ /**
351
+ * AUDITING_EXCLUDED if a method is annotated with this, no calls are audited
352
+ *
353
+ * @generated from enum value: AUDITING_EXCLUDED = 2;
354
+ */
355
+ EXCLUDED = 2,
356
+ }
357
+
358
+ /**
359
+ * Describes the enum fits.api.v1.Auditing.
360
+ */
361
+ export const AuditingSchema: GenEnum<Auditing> = /*@__PURE__*/
362
+ enumDesc(file_fits_api_v1_common, 4);
363
+
364
+ /**
365
+ * OptimisticLockingStrategy defines how optimistic locking should be handled.
366
+ * It defaults to client side, which requires the UpdatedAt timestamp to be provided
367
+ *
368
+ * @generated from enum fits.api.v1.OptimisticLockingStrategy
369
+ */
370
+ export enum OptimisticLockingStrategy {
371
+ /**
372
+ * OPTIMISTIC_LOCKING_STRATEGY_UNSPECIFIED same as client side
373
+ *
374
+ * @generated from enum value: OPTIMISTIC_LOCKING_STRATEGY_UNSPECIFIED = 0;
375
+ */
376
+ UNSPECIFIED = 0,
377
+
378
+ /**
379
+ * OPTIMISTIC_LOCKING_STRATEGY_CLIENT requires UpdatedAt to be specified
380
+ *
381
+ * @generated from enum value: OPTIMISTIC_LOCKING_STRATEGY_CLIENT = 1;
382
+ */
383
+ CLIENT = 1,
384
+
385
+ /**
386
+ * OPTIMISTIC_LOCKING_STRATEGY_SERVER allows to omit UpdatedAt
387
+ * and fetches the most recent entity before updating with the given values with the update request
388
+ *
389
+ * @generated from enum value: OPTIMISTIC_LOCKING_STRATEGY_SERVER = 2;
390
+ */
391
+ SERVER = 2,
392
+ }
393
+
394
+ /**
395
+ * Describes the enum fits.api.v1.OptimisticLockingStrategy.
396
+ */
397
+ export const OptimisticLockingStrategySchema: GenEnum<OptimisticLockingStrategy> = /*@__PURE__*/
398
+ enumDesc(file_fits_api_v1_common, 5);
399
+
400
+ /**
401
+ * TenantRoles are used to define which tenant role a logged in user must provide to call this method
402
+ *
403
+ * @generated from extension: repeated fits.api.v1.TenantRole tenant_roles = 51000;
404
+ */
405
+ export const tenant_roles: GenExtension<MethodOptions, TenantRole[]> = /*@__PURE__*/
406
+ extDesc(file_fits_api_v1_common, 0);
407
+
408
+ /**
409
+ * ProjectRoles are used to define which project role a logged in user must provide to call this method
410
+ *
411
+ * @generated from extension: repeated fits.api.v1.ProjectRole project_roles = 51001;
412
+ */
413
+ export const project_roles: GenExtension<MethodOptions, ProjectRole[]> = /*@__PURE__*/
414
+ extDesc(file_fits_api_v1_common, 1);
415
+
416
+ /**
417
+ * AdminRoles are used to define which admin role a logged in user must provide to call this method
418
+ *
419
+ * @generated from extension: repeated fits.api.v1.AdminRole admin_roles = 51002;
420
+ */
421
+ export const admin_roles: GenExtension<MethodOptions, AdminRole[]> = /*@__PURE__*/
422
+ extDesc(file_fits_api_v1_common, 2);
423
+
424
+ /**
425
+ * Visibility defines the visibility of this method, this is used to have public or self visible methods
426
+ *
427
+ * @generated from extension: fits.api.v1.Visibility visibility = 51003;
428
+ */
429
+ export const visibility: GenExtension<MethodOptions, Visibility> = /*@__PURE__*/
430
+ extDesc(file_fits_api_v1_common, 3);
431
+
432
+ /**
433
+ * Auditing defines if calls to this method should be audited or not
434
+ *
435
+ * @generated from extension: fits.api.v1.Auditing auditing = 51004;
436
+ */
437
+ export const auditing: GenExtension<MethodOptions, Auditing> = /*@__PURE__*/
438
+ extDesc(file_fits_api_v1_common, 4);
439
+
440
+ /**
441
+ * StringValue which can be set to a enum
442
+ *
443
+ * @generated from extension: string enum_string_value = 52000;
444
+ */
445
+ export const enum_string_value: GenExtension<EnumValueOptions, string> = /*@__PURE__*/
446
+ extDesc(file_fits_api_v1_common, 5);
447
+
@@ -0,0 +1,190 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file fits/api/v1/health.proto.
5
+ */
6
+ export declare const file_fits_api_v1_health: GenFile;
7
+ /**
8
+ * Health reports the health status of all services.
9
+ *
10
+ * @generated from message fits.api.v1.Health
11
+ */
12
+ export type Health = Message<"fits.api.v1.Health"> & {
13
+ /**
14
+ * Services contains the health of all individual services
15
+ *
16
+ * @generated from field: repeated fits.api.v1.HealthStatus services = 1;
17
+ */
18
+ services: HealthStatus[];
19
+ };
20
+ /**
21
+ * Describes the message fits.api.v1.Health.
22
+ * Use `create(HealthSchema)` to create a new message.
23
+ */
24
+ export declare const HealthSchema: GenMessage<Health>;
25
+ /**
26
+ * HealthStatus represents the health status of one service.
27
+ *
28
+ * @generated from message fits.api.v1.HealthStatus
29
+ */
30
+ export type HealthStatus = Message<"fits.api.v1.HealthStatus"> & {
31
+ /**
32
+ * Name is the name of the service
33
+ *
34
+ * @generated from field: fits.api.v1.Service name = 1;
35
+ */
36
+ name: Service;
37
+ /**
38
+ * Status is the status of this service
39
+ *
40
+ * @generated from field: fits.api.v1.ServiceStatus status = 2;
41
+ */
42
+ status: ServiceStatus;
43
+ /**
44
+ * Message describes the reason for the unhealthy status if possible
45
+ *
46
+ * @generated from field: string message = 3;
47
+ */
48
+ message: string;
49
+ /**
50
+ * Partitions describes the health of the service by partition
51
+ *
52
+ * @generated from field: map<string, fits.api.v1.PartitionHealth> partitions = 4;
53
+ */
54
+ partitions: {
55
+ [key: string]: PartitionHealth;
56
+ };
57
+ };
58
+ /**
59
+ * Describes the message fits.api.v1.HealthStatus.
60
+ * Use `create(HealthStatusSchema)` to create a new message.
61
+ */
62
+ export declare const HealthStatusSchema: GenMessage<HealthStatus>;
63
+ /**
64
+ * PartitionHealth represents the status of a specific service in this partition.
65
+ *
66
+ * @generated from message fits.api.v1.PartitionHealth
67
+ */
68
+ export type PartitionHealth = Message<"fits.api.v1.PartitionHealth"> & {
69
+ /**
70
+ * Status is the health status of the service in this partition
71
+ *
72
+ * @generated from field: fits.api.v1.ServiceStatus status = 1;
73
+ */
74
+ status: ServiceStatus;
75
+ /**
76
+ * Message describes the reason for the unhealthy status if possible
77
+ *
78
+ * @generated from field: string message = 2;
79
+ */
80
+ message: string;
81
+ };
82
+ /**
83
+ * Describes the message fits.api.v1.PartitionHealth.
84
+ * Use `create(PartitionHealthSchema)` to create a new message.
85
+ */
86
+ export declare const PartitionHealthSchema: GenMessage<PartitionHealth>;
87
+ /**
88
+ * HealthServiceGetRequest is the request payload for getting the health of the system.
89
+ *
90
+ * @generated from message fits.api.v1.HealthServiceGetRequest
91
+ */
92
+ export type HealthServiceGetRequest = Message<"fits.api.v1.HealthServiceGetRequest"> & {};
93
+ /**
94
+ * Describes the message fits.api.v1.HealthServiceGetRequest.
95
+ * Use `create(HealthServiceGetRequestSchema)` to create a new message.
96
+ */
97
+ export declare const HealthServiceGetRequestSchema: GenMessage<HealthServiceGetRequest>;
98
+ /**
99
+ * HealthServiceGetResponse is the response payload for getting the health of the system.
100
+ *
101
+ * @generated from message fits.api.v1.HealthServiceGetResponse
102
+ */
103
+ export type HealthServiceGetResponse = Message<"fits.api.v1.HealthServiceGetResponse"> & {
104
+ /**
105
+ * Health contains the overall health of the system
106
+ *
107
+ * @generated from field: fits.api.v1.Health health = 1;
108
+ */
109
+ health?: Health | undefined;
110
+ };
111
+ /**
112
+ * Describes the message fits.api.v1.HealthServiceGetResponse.
113
+ * Use `create(HealthServiceGetResponseSchema)` to create a new message.
114
+ */
115
+ export declare const HealthServiceGetResponseSchema: GenMessage<HealthServiceGetResponse>;
116
+ /**
117
+ * ServiceStatus defines the status of a service.
118
+ *
119
+ * @generated from enum fits.api.v1.ServiceStatus
120
+ */
121
+ export declare enum ServiceStatus {
122
+ /**
123
+ * SERVICE_STATUS_UNSPECIFIED service status is not known or unspecified
124
+ *
125
+ * @generated from enum value: SERVICE_STATUS_UNSPECIFIED = 0;
126
+ */
127
+ UNSPECIFIED = 0,
128
+ /**
129
+ * SERVICE_STATUS_DEGRADED the service is in degraded status, not the whole functionality is available
130
+ *
131
+ * @generated from enum value: SERVICE_STATUS_DEGRADED = 1;
132
+ */
133
+ DEGRADED = 1,
134
+ /**
135
+ * SERVICE_STATUS_UNHEALTHY the service is in unhealthy status, serious impact is expected
136
+ *
137
+ * @generated from enum value: SERVICE_STATUS_UNHEALTHY = 2;
138
+ */
139
+ UNHEALTHY = 2,
140
+ /**
141
+ * SERVICE_STATUS_HEALTHY the service is in healthy status, for example fully functional
142
+ *
143
+ * @generated from enum value: SERVICE_STATUS_HEALTHY = 3;
144
+ */
145
+ HEALTHY = 3
146
+ }
147
+ /**
148
+ * Describes the enum fits.api.v1.ServiceStatus.
149
+ */
150
+ export declare const ServiceStatusSchema: GenEnum<ServiceStatus>;
151
+ /**
152
+ * Service defines the service for which the healthiness is reported.
153
+ *
154
+ * @generated from enum fits.api.v1.Service
155
+ */
156
+ export declare enum Service {
157
+ /**
158
+ * SERVICE_UNSPECIFIED is a unknown service
159
+ *
160
+ * @generated from enum value: SERVICE_UNSPECIFIED = 0;
161
+ */
162
+ UNSPECIFIED = 0,
163
+ /**
164
+ * SERVICE_K8S the kubernetes service
165
+ *
166
+ * @generated from enum value: SERVICE_K8S = 1;
167
+ */
168
+ K8S = 1
169
+ }
170
+ /**
171
+ * Describes the enum fits.api.v1.Service.
172
+ */
173
+ export declare const ServiceSchema: GenEnum<Service>;
174
+ /**
175
+ * HealthService provides health status monitoring operations.
176
+ *
177
+ * @generated from service fits.api.v1.HealthService
178
+ */
179
+ export declare const HealthService: GenService<{
180
+ /**
181
+ * Returns the health status of the platform.
182
+ *
183
+ * @generated from rpc fits.api.v1.HealthService.Get
184
+ */
185
+ get: {
186
+ methodKind: "unary";
187
+ input: typeof HealthServiceGetRequestSchema;
188
+ output: typeof HealthServiceGetResponseSchema;
189
+ };
190
+ }>;