@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,116 @@
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { AdminRole, ProjectRole, TenantRole } from "./common_pb";
3
+ import type { MethodPermission } from "./token_pb";
4
+ import type { Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file fits/api/v1/method.proto.
7
+ */
8
+ export declare const file_fits_api_v1_method: GenFile;
9
+ /**
10
+ * MethodServiceListRequest is the request payload for listing all public methods.
11
+ *
12
+ * @generated from message fits.api.v1.MethodServiceListRequest
13
+ */
14
+ export type MethodServiceListRequest = Message<"fits.api.v1.MethodServiceListRequest"> & {};
15
+ /**
16
+ * Describes the message fits.api.v1.MethodServiceListRequest.
17
+ * Use `create(MethodServiceListRequestSchema)` to create a new message.
18
+ */
19
+ export declare const MethodServiceListRequestSchema: GenMessage<MethodServiceListRequest>;
20
+ /**
21
+ * MethodServiceListResponse is the response payload for listing all public methods.
22
+ *
23
+ * @generated from message fits.api.v1.MethodServiceListResponse
24
+ */
25
+ export type MethodServiceListResponse = Message<"fits.api.v1.MethodServiceListResponse"> & {
26
+ /**
27
+ * Methods is a list of methods public callable
28
+ *
29
+ * @generated from field: repeated string methods = 1;
30
+ */
31
+ methods: string[];
32
+ };
33
+ /**
34
+ * Describes the message fits.api.v1.MethodServiceListResponse.
35
+ * Use `create(MethodServiceListResponseSchema)` to create a new message.
36
+ */
37
+ export declare const MethodServiceListResponseSchema: GenMessage<MethodServiceListResponse>;
38
+ /**
39
+ * MethodServiceTokenScopedListRequest is the request payload for listing all methods callable with the token present in the request.
40
+ *
41
+ * @generated from message fits.api.v1.MethodServiceTokenScopedListRequest
42
+ */
43
+ export type MethodServiceTokenScopedListRequest = Message<"fits.api.v1.MethodServiceTokenScopedListRequest"> & {};
44
+ /**
45
+ * Describes the message fits.api.v1.MethodServiceTokenScopedListRequest.
46
+ * Use `create(MethodServiceTokenScopedListRequestSchema)` to create a new message.
47
+ */
48
+ export declare const MethodServiceTokenScopedListRequestSchema: GenMessage<MethodServiceTokenScopedListRequest>;
49
+ /**
50
+ * MethodServiceTokenScopedListResponse is the response payload which contains all methods which are callable with the given token.
51
+ *
52
+ * @generated from message fits.api.v1.MethodServiceTokenScopedListResponse
53
+ */
54
+ export type MethodServiceTokenScopedListResponse = Message<"fits.api.v1.MethodServiceTokenScopedListResponse"> & {
55
+ /**
56
+ * Permissions contains a list of methods which can be called
57
+ *
58
+ * @generated from field: repeated fits.api.v1.MethodPermission permissions = 1;
59
+ */
60
+ permissions: MethodPermission[];
61
+ /**
62
+ * ProjectRoles associates a project ID with the corresponding role of the token owner
63
+ *
64
+ * @generated from field: map<string, fits.api.v1.ProjectRole> project_roles = 2;
65
+ */
66
+ projectRoles: {
67
+ [key: string]: ProjectRole;
68
+ };
69
+ /**
70
+ * TenantRoles associates a tenant ID with the corresponding role of the token owner
71
+ *
72
+ * @generated from field: map<string, fits.api.v1.TenantRole> tenant_roles = 3;
73
+ */
74
+ tenantRoles: {
75
+ [key: string]: TenantRole;
76
+ };
77
+ /**
78
+ * AdminRole defines the admin role of the token owner
79
+ *
80
+ * @generated from field: optional fits.api.v1.AdminRole admin_role = 4;
81
+ */
82
+ adminRole?: AdminRole | undefined;
83
+ };
84
+ /**
85
+ * Describes the message fits.api.v1.MethodServiceTokenScopedListResponse.
86
+ * Use `create(MethodServiceTokenScopedListResponseSchema)` to create a new message.
87
+ */
88
+ export declare const MethodServiceTokenScopedListResponseSchema: GenMessage<MethodServiceTokenScopedListResponse>;
89
+ /**
90
+ * MethodService provides method discovery operations.
91
+ * Methods are functions in services.
92
+ *
93
+ * @generated from service fits.api.v1.MethodService
94
+ */
95
+ export declare const MethodService: GenService<{
96
+ /**
97
+ * Returns the list of all public visible methods.
98
+ *
99
+ * @generated from rpc fits.api.v1.MethodService.List
100
+ */
101
+ list: {
102
+ methodKind: "unary";
103
+ input: typeof MethodServiceListRequestSchema;
104
+ output: typeof MethodServiceListResponseSchema;
105
+ };
106
+ /**
107
+ * TokenScopedList returns all methods callable with the token present in the request.
108
+ *
109
+ * @generated from rpc fits.api.v1.MethodService.TokenScopedList
110
+ */
111
+ tokenScopedList: {
112
+ methodKind: "unary";
113
+ input: typeof MethodServiceTokenScopedListRequestSchema;
114
+ output: typeof MethodServiceTokenScopedListResponseSchema;
115
+ };
116
+ }>;
@@ -0,0 +1,38 @@
1
+ // @generated by protoc-gen-es v2.14.1 with parameter "target=ts"
2
+ // @generated from file fits/api/v1/method.proto (package fits.api.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
+ import { file_buf_validate_validate } from "../../../buf/validate/validate_pb";
6
+ import { file_fits_api_v1_common } from "./common_pb";
7
+ import { file_fits_api_v1_token } from "./token_pb";
8
+ /**
9
+ * Describes the file fits/api/v1/method.proto.
10
+ */
11
+ export const file_fits_api_v1_method = /*@__PURE__*/ fileDesc("ChhmaXRzL2FwaS92MS9tZXRob2QucHJvdG8SC2ZpdHMuYXBpLnYxIhoKGE1ldGhvZFNlcnZpY2VMaXN0UmVxdWVzdCIsChlNZXRob2RTZXJ2aWNlTGlzdFJlc3BvbnNlEg8KB21ldGhvZHMYASADKAkiJQojTWV0aG9kU2VydmljZVRva2VuU2NvcGVkTGlzdFJlcXVlc3Qi9gMKJE1ldGhvZFNlcnZpY2VUb2tlblNjb3BlZExpc3RSZXNwb25zZRIyCgtwZXJtaXNzaW9ucxgBIAMoCzIdLmZpdHMuYXBpLnYxLk1ldGhvZFBlcm1pc3Npb24SWgoNcHJvamVjdF9yb2xlcxgCIAMoCzJDLmZpdHMuYXBpLnYxLk1ldGhvZFNlcnZpY2VUb2tlblNjb3BlZExpc3RSZXNwb25zZS5Qcm9qZWN0Um9sZXNFbnRyeRJYCgx0ZW5hbnRfcm9sZXMYAyADKAsyQi5maXRzLmFwaS52MS5NZXRob2RTZXJ2aWNlVG9rZW5TY29wZWRMaXN0UmVzcG9uc2UuVGVuYW50Um9sZXNFbnRyeRI5CgphZG1pbl9yb2xlGAQgASgOMhYuZml0cy5hcGkudjEuQWRtaW5Sb2xlQgi6SAWCAQIQAUgAiAEBGk0KEVByb2plY3RSb2xlc0VudHJ5EgsKA2tleRgBIAEoCRInCgV2YWx1ZRgCIAEoDjIYLmZpdHMuYXBpLnYxLlByb2plY3RSb2xlOgI4ARpLChBUZW5hbnRSb2xlc0VudHJ5EgsKA2tleRgBIAEoCRImCgV2YWx1ZRgCIAEoDjIXLmZpdHMuYXBpLnYxLlRlbmFudFJvbGU6AjgBQg0KC19hZG1pbl9yb2xlMvMBCg1NZXRob2RTZXJ2aWNlEl8KBExpc3QSJS5maXRzLmFwaS52MS5NZXRob2RTZXJ2aWNlTGlzdFJlcXVlc3QaJi5maXRzLmFwaS52MS5NZXRob2RTZXJ2aWNlTGlzdFJlc3BvbnNlIgjY8xgB4PMYAhKAAQoPVG9rZW5TY29wZWRMaXN0EjAuZml0cy5hcGkudjEuTWV0aG9kU2VydmljZVRva2VuU2NvcGVkTGlzdFJlcXVlc3QaMS5maXRzLmFwaS52MS5NZXRob2RTZXJ2aWNlVG9rZW5TY29wZWRMaXN0UmVzcG9uc2UiCNjzGALg8xgCQpcBCg9jb20uZml0cy5hcGkudjFCC01ldGhvZFByb3RvUAFaKWdpdGh1Yi5jb20vZmktdHMvYXBpL2dvL2ZpdHMvYXBpL3YxO2FwaXYxogIDRkFYqgILRml0cy5BcGkuVjHKAgtGaXRzXEFwaVxWMeICF0ZpdHNcQXBpXFYxXEdQQk1ldGFkYXRh6gINRml0czo6QXBpOjpWMWIGcHJvdG8z", [file_buf_validate_validate, file_fits_api_v1_common, file_fits_api_v1_token]);
12
+ /**
13
+ * Describes the message fits.api.v1.MethodServiceListRequest.
14
+ * Use `create(MethodServiceListRequestSchema)` to create a new message.
15
+ */
16
+ export const MethodServiceListRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_method, 0);
17
+ /**
18
+ * Describes the message fits.api.v1.MethodServiceListResponse.
19
+ * Use `create(MethodServiceListResponseSchema)` to create a new message.
20
+ */
21
+ export const MethodServiceListResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_method, 1);
22
+ /**
23
+ * Describes the message fits.api.v1.MethodServiceTokenScopedListRequest.
24
+ * Use `create(MethodServiceTokenScopedListRequestSchema)` to create a new message.
25
+ */
26
+ export const MethodServiceTokenScopedListRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_method, 2);
27
+ /**
28
+ * Describes the message fits.api.v1.MethodServiceTokenScopedListResponse.
29
+ * Use `create(MethodServiceTokenScopedListResponseSchema)` to create a new message.
30
+ */
31
+ export const MethodServiceTokenScopedListResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_method, 3);
32
+ /**
33
+ * MethodService provides method discovery operations.
34
+ * Methods are functions in services.
35
+ *
36
+ * @generated from service fits.api.v1.MethodService
37
+ */
38
+ export const MethodService = /*@__PURE__*/ serviceDesc(file_fits_api_v1_method, 0);
@@ -0,0 +1,142 @@
1
+ // @generated by protoc-gen-es v2.14.1 with parameter "target=ts"
2
+ // @generated from file fits/api/v1/method.proto (package fits.api.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import { file_buf_validate_validate } from "../../../buf/validate/validate_pb";
8
+ import type { AdminRole, ProjectRole, TenantRole } from "./common_pb";
9
+ import { file_fits_api_v1_common } from "./common_pb";
10
+ import type { MethodPermission } from "./token_pb";
11
+ import { file_fits_api_v1_token } from "./token_pb";
12
+ import type { Message } from "@bufbuild/protobuf";
13
+
14
+ /**
15
+ * Describes the file fits/api/v1/method.proto.
16
+ */
17
+ export const file_fits_api_v1_method: GenFile = /*@__PURE__*/
18
+ fileDesc("ChhmaXRzL2FwaS92MS9tZXRob2QucHJvdG8SC2ZpdHMuYXBpLnYxIhoKGE1ldGhvZFNlcnZpY2VMaXN0UmVxdWVzdCIsChlNZXRob2RTZXJ2aWNlTGlzdFJlc3BvbnNlEg8KB21ldGhvZHMYASADKAkiJQojTWV0aG9kU2VydmljZVRva2VuU2NvcGVkTGlzdFJlcXVlc3Qi9gMKJE1ldGhvZFNlcnZpY2VUb2tlblNjb3BlZExpc3RSZXNwb25zZRIyCgtwZXJtaXNzaW9ucxgBIAMoCzIdLmZpdHMuYXBpLnYxLk1ldGhvZFBlcm1pc3Npb24SWgoNcHJvamVjdF9yb2xlcxgCIAMoCzJDLmZpdHMuYXBpLnYxLk1ldGhvZFNlcnZpY2VUb2tlblNjb3BlZExpc3RSZXNwb25zZS5Qcm9qZWN0Um9sZXNFbnRyeRJYCgx0ZW5hbnRfcm9sZXMYAyADKAsyQi5maXRzLmFwaS52MS5NZXRob2RTZXJ2aWNlVG9rZW5TY29wZWRMaXN0UmVzcG9uc2UuVGVuYW50Um9sZXNFbnRyeRI5CgphZG1pbl9yb2xlGAQgASgOMhYuZml0cy5hcGkudjEuQWRtaW5Sb2xlQgi6SAWCAQIQAUgAiAEBGk0KEVByb2plY3RSb2xlc0VudHJ5EgsKA2tleRgBIAEoCRInCgV2YWx1ZRgCIAEoDjIYLmZpdHMuYXBpLnYxLlByb2plY3RSb2xlOgI4ARpLChBUZW5hbnRSb2xlc0VudHJ5EgsKA2tleRgBIAEoCRImCgV2YWx1ZRgCIAEoDjIXLmZpdHMuYXBpLnYxLlRlbmFudFJvbGU6AjgBQg0KC19hZG1pbl9yb2xlMvMBCg1NZXRob2RTZXJ2aWNlEl8KBExpc3QSJS5maXRzLmFwaS52MS5NZXRob2RTZXJ2aWNlTGlzdFJlcXVlc3QaJi5maXRzLmFwaS52MS5NZXRob2RTZXJ2aWNlTGlzdFJlc3BvbnNlIgjY8xgB4PMYAhKAAQoPVG9rZW5TY29wZWRMaXN0EjAuZml0cy5hcGkudjEuTWV0aG9kU2VydmljZVRva2VuU2NvcGVkTGlzdFJlcXVlc3QaMS5maXRzLmFwaS52MS5NZXRob2RTZXJ2aWNlVG9rZW5TY29wZWRMaXN0UmVzcG9uc2UiCNjzGALg8xgCQpcBCg9jb20uZml0cy5hcGkudjFCC01ldGhvZFByb3RvUAFaKWdpdGh1Yi5jb20vZmktdHMvYXBpL2dvL2ZpdHMvYXBpL3YxO2FwaXYxogIDRkFYqgILRml0cy5BcGkuVjHKAgtGaXRzXEFwaVxWMeICF0ZpdHNcQXBpXFYxXEdQQk1ldGFkYXRh6gINRml0czo6QXBpOjpWMWIGcHJvdG8z", [file_buf_validate_validate, file_fits_api_v1_common, file_fits_api_v1_token]);
19
+
20
+ /**
21
+ * MethodServiceListRequest is the request payload for listing all public methods.
22
+ *
23
+ * @generated from message fits.api.v1.MethodServiceListRequest
24
+ */
25
+ export type MethodServiceListRequest = Message<"fits.api.v1.MethodServiceListRequest"> & {
26
+ };
27
+
28
+ /**
29
+ * Describes the message fits.api.v1.MethodServiceListRequest.
30
+ * Use `create(MethodServiceListRequestSchema)` to create a new message.
31
+ */
32
+ export const MethodServiceListRequestSchema: GenMessage<MethodServiceListRequest> = /*@__PURE__*/
33
+ messageDesc(file_fits_api_v1_method, 0);
34
+
35
+ /**
36
+ * MethodServiceListResponse is the response payload for listing all public methods.
37
+ *
38
+ * @generated from message fits.api.v1.MethodServiceListResponse
39
+ */
40
+ export type MethodServiceListResponse = Message<"fits.api.v1.MethodServiceListResponse"> & {
41
+ /**
42
+ * Methods is a list of methods public callable
43
+ *
44
+ * @generated from field: repeated string methods = 1;
45
+ */
46
+ methods: string[];
47
+ };
48
+
49
+ /**
50
+ * Describes the message fits.api.v1.MethodServiceListResponse.
51
+ * Use `create(MethodServiceListResponseSchema)` to create a new message.
52
+ */
53
+ export const MethodServiceListResponseSchema: GenMessage<MethodServiceListResponse> = /*@__PURE__*/
54
+ messageDesc(file_fits_api_v1_method, 1);
55
+
56
+ /**
57
+ * MethodServiceTokenScopedListRequest is the request payload for listing all methods callable with the token present in the request.
58
+ *
59
+ * @generated from message fits.api.v1.MethodServiceTokenScopedListRequest
60
+ */
61
+ export type MethodServiceTokenScopedListRequest = Message<"fits.api.v1.MethodServiceTokenScopedListRequest"> & {
62
+ };
63
+
64
+ /**
65
+ * Describes the message fits.api.v1.MethodServiceTokenScopedListRequest.
66
+ * Use `create(MethodServiceTokenScopedListRequestSchema)` to create a new message.
67
+ */
68
+ export const MethodServiceTokenScopedListRequestSchema: GenMessage<MethodServiceTokenScopedListRequest> = /*@__PURE__*/
69
+ messageDesc(file_fits_api_v1_method, 2);
70
+
71
+ /**
72
+ * MethodServiceTokenScopedListResponse is the response payload which contains all methods which are callable with the given token.
73
+ *
74
+ * @generated from message fits.api.v1.MethodServiceTokenScopedListResponse
75
+ */
76
+ export type MethodServiceTokenScopedListResponse = Message<"fits.api.v1.MethodServiceTokenScopedListResponse"> & {
77
+ /**
78
+ * Permissions contains a list of methods which can be called
79
+ *
80
+ * @generated from field: repeated fits.api.v1.MethodPermission permissions = 1;
81
+ */
82
+ permissions: MethodPermission[];
83
+
84
+ /**
85
+ * ProjectRoles associates a project ID with the corresponding role of the token owner
86
+ *
87
+ * @generated from field: map<string, fits.api.v1.ProjectRole> project_roles = 2;
88
+ */
89
+ projectRoles: { [key: string]: ProjectRole };
90
+
91
+ /**
92
+ * TenantRoles associates a tenant ID with the corresponding role of the token owner
93
+ *
94
+ * @generated from field: map<string, fits.api.v1.TenantRole> tenant_roles = 3;
95
+ */
96
+ tenantRoles: { [key: string]: TenantRole };
97
+
98
+ /**
99
+ * AdminRole defines the admin role of the token owner
100
+ *
101
+ * @generated from field: optional fits.api.v1.AdminRole admin_role = 4;
102
+ */
103
+ adminRole?: AdminRole | undefined;
104
+ };
105
+
106
+ /**
107
+ * Describes the message fits.api.v1.MethodServiceTokenScopedListResponse.
108
+ * Use `create(MethodServiceTokenScopedListResponseSchema)` to create a new message.
109
+ */
110
+ export const MethodServiceTokenScopedListResponseSchema: GenMessage<MethodServiceTokenScopedListResponse> = /*@__PURE__*/
111
+ messageDesc(file_fits_api_v1_method, 3);
112
+
113
+ /**
114
+ * MethodService provides method discovery operations.
115
+ * Methods are functions in services.
116
+ *
117
+ * @generated from service fits.api.v1.MethodService
118
+ */
119
+ export const MethodService: GenService<{
120
+ /**
121
+ * Returns the list of all public visible methods.
122
+ *
123
+ * @generated from rpc fits.api.v1.MethodService.List
124
+ */
125
+ list: {
126
+ methodKind: "unary";
127
+ input: typeof MethodServiceListRequestSchema;
128
+ output: typeof MethodServiceListResponseSchema;
129
+ },
130
+ /**
131
+ * TokenScopedList returns all methods callable with the token present in the request.
132
+ *
133
+ * @generated from rpc fits.api.v1.MethodService.TokenScopedList
134
+ */
135
+ tokenScopedList: {
136
+ methodKind: "unary";
137
+ input: typeof MethodServiceTokenScopedListRequestSchema;
138
+ output: typeof MethodServiceTokenScopedListResponseSchema;
139
+ },
140
+ }> = /*@__PURE__*/
141
+ serviceDesc(file_fits_api_v1_method, 0);
142
+
@@ -0,0 +1,251 @@
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Labels, Meta } from "./common_pb";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file fits/api/v1/partition.proto.
6
+ */
7
+ export declare const file_fits_api_v1_partition: GenFile;
8
+ /**
9
+ * Partition is a failure domain with machines and switches
10
+ *
11
+ * @generated from message fits.api.v1.Partition
12
+ */
13
+ export type Partition = Message<"fits.api.v1.Partition"> & {
14
+ /**
15
+ * ID of this partition
16
+ *
17
+ * @generated from field: string id = 1;
18
+ */
19
+ id: string;
20
+ /**
21
+ * Meta for this ip
22
+ *
23
+ * @generated from field: fits.api.v1.Meta meta = 2;
24
+ */
25
+ meta?: Meta | undefined;
26
+ /**
27
+ * Description of this partition
28
+ *
29
+ * @generated from field: string description = 3;
30
+ */
31
+ description: string;
32
+ /**
33
+ * PartitionBootConfiguration defines how metal-hammer boots
34
+ *
35
+ * @generated from field: fits.api.v1.PartitionBootConfiguration boot_configuration = 4;
36
+ */
37
+ bootConfiguration?: PartitionBootConfiguration | undefined;
38
+ /**
39
+ * DNSServers for this partition
40
+ *
41
+ * @generated from field: repeated fits.api.v1.DNSServer dns_servers = 5;
42
+ */
43
+ dnsServers: DNSServer[];
44
+ /**
45
+ * NTPServers for this partition
46
+ *
47
+ * @generated from field: repeated fits.api.v1.NTPServer ntp_servers = 6;
48
+ */
49
+ ntpServers: NTPServer[];
50
+ /**
51
+ * ManagementServiceAddresses defines where the management is reachable
52
+ * should be in the form <ip|host>:<port>
53
+ *
54
+ * @generated from field: repeated string mgmt_service_addresses = 7;
55
+ */
56
+ mgmtServiceAddresses: string[];
57
+ };
58
+ /**
59
+ * Describes the message fits.api.v1.Partition.
60
+ * Use `create(PartitionSchema)` to create a new message.
61
+ */
62
+ export declare const PartitionSchema: GenMessage<Partition>;
63
+ /**
64
+ * PartitionQuery is used to search partitions
65
+ *
66
+ * @generated from message fits.api.v1.PartitionQuery
67
+ */
68
+ export type PartitionQuery = Message<"fits.api.v1.PartitionQuery"> & {
69
+ /**
70
+ * ID of the partition to get
71
+ *
72
+ * @generated from field: optional string id = 1;
73
+ */
74
+ id?: string | undefined;
75
+ /**
76
+ * Labels lists only partitions containing the given labels
77
+ *
78
+ * @generated from field: optional fits.api.v1.Labels labels = 2;
79
+ */
80
+ labels?: Labels | undefined;
81
+ };
82
+ /**
83
+ * Describes the message fits.api.v1.PartitionQuery.
84
+ * Use `create(PartitionQuerySchema)` to create a new message.
85
+ */
86
+ export declare const PartitionQuerySchema: GenMessage<PartitionQuery>;
87
+ /**
88
+ * PartitionBootConfiguration defines how metal-hammer boots
89
+ *
90
+ * @generated from message fits.api.v1.PartitionBootConfiguration
91
+ */
92
+ export type PartitionBootConfiguration = Message<"fits.api.v1.PartitionBootConfiguration"> & {
93
+ /**
94
+ * ImageURL the url to download the initrd for the boot image
95
+ *
96
+ * @generated from field: string image_url = 1;
97
+ */
98
+ imageUrl: string;
99
+ /**
100
+ * KernelURL the url to download the kernel for the boot image
101
+ *
102
+ * @generated from field: string kernel_url = 2;
103
+ */
104
+ kernelUrl: string;
105
+ /**
106
+ * Commandline the cmdline to the kernel for the boot image
107
+ *
108
+ * @generated from field: string commandline = 3;
109
+ */
110
+ commandline: string;
111
+ };
112
+ /**
113
+ * Describes the message fits.api.v1.PartitionBootConfiguration.
114
+ * Use `create(PartitionBootConfigurationSchema)` to create a new message.
115
+ */
116
+ export declare const PartitionBootConfigurationSchema: GenMessage<PartitionBootConfiguration>;
117
+ /**
118
+ * DNSServer
119
+ *
120
+ * @generated from message fits.api.v1.DNSServer
121
+ */
122
+ export type DNSServer = Message<"fits.api.v1.DNSServer"> & {
123
+ /**
124
+ * IP address of this dns server
125
+ *
126
+ * @generated from field: string ip = 1;
127
+ */
128
+ ip: string;
129
+ };
130
+ /**
131
+ * Describes the message fits.api.v1.DNSServer.
132
+ * Use `create(DNSServerSchema)` to create a new message.
133
+ */
134
+ export declare const DNSServerSchema: GenMessage<DNSServer>;
135
+ /**
136
+ * NTPServer
137
+ *
138
+ * @generated from message fits.api.v1.NTPServer
139
+ */
140
+ export type NTPServer = Message<"fits.api.v1.NTPServer"> & {
141
+ /**
142
+ * Address either as ip or hostname
143
+ *
144
+ * @generated from field: string address = 1;
145
+ */
146
+ address: string;
147
+ };
148
+ /**
149
+ * Describes the message fits.api.v1.NTPServer.
150
+ * Use `create(NTPServerSchema)` to create a new message.
151
+ */
152
+ export declare const NTPServerSchema: GenMessage<NTPServer>;
153
+ /**
154
+ * PartitionServiceGetRequest is the request payload for a partition get request
155
+ *
156
+ * @generated from message fits.api.v1.PartitionServiceGetRequest
157
+ */
158
+ export type PartitionServiceGetRequest = Message<"fits.api.v1.PartitionServiceGetRequest"> & {
159
+ /**
160
+ * ID of the partition to get
161
+ *
162
+ * @generated from field: string id = 1;
163
+ */
164
+ id: string;
165
+ };
166
+ /**
167
+ * Describes the message fits.api.v1.PartitionServiceGetRequest.
168
+ * Use `create(PartitionServiceGetRequestSchema)` to create a new message.
169
+ */
170
+ export declare const PartitionServiceGetRequestSchema: GenMessage<PartitionServiceGetRequest>;
171
+ /**
172
+ * PartitionServiceListRequest is the request payload for a partition list request
173
+ *
174
+ * @generated from message fits.api.v1.PartitionServiceListRequest
175
+ */
176
+ export type PartitionServiceListRequest = Message<"fits.api.v1.PartitionServiceListRequest"> & {
177
+ /**
178
+ * Query for partitions
179
+ *
180
+ * @generated from field: fits.api.v1.PartitionQuery query = 1;
181
+ */
182
+ query?: PartitionQuery | undefined;
183
+ };
184
+ /**
185
+ * Describes the message fits.api.v1.PartitionServiceListRequest.
186
+ * Use `create(PartitionServiceListRequestSchema)` to create a new message.
187
+ */
188
+ export declare const PartitionServiceListRequestSchema: GenMessage<PartitionServiceListRequest>;
189
+ /**
190
+ * PartitionServiceGetResponse is the response payload for a partition get request
191
+ *
192
+ * @generated from message fits.api.v1.PartitionServiceGetResponse
193
+ */
194
+ export type PartitionServiceGetResponse = Message<"fits.api.v1.PartitionServiceGetResponse"> & {
195
+ /**
196
+ * Ip the partition
197
+ *
198
+ * @generated from field: fits.api.v1.Partition partition = 1;
199
+ */
200
+ partition?: Partition | undefined;
201
+ };
202
+ /**
203
+ * Describes the message fits.api.v1.PartitionServiceGetResponse.
204
+ * Use `create(PartitionServiceGetResponseSchema)` to create a new message.
205
+ */
206
+ export declare const PartitionServiceGetResponseSchema: GenMessage<PartitionServiceGetResponse>;
207
+ /**
208
+ * PartitionServiceListResponse is the response payload for a partition list request
209
+ *
210
+ * @generated from message fits.api.v1.PartitionServiceListResponse
211
+ */
212
+ export type PartitionServiceListResponse = Message<"fits.api.v1.PartitionServiceListResponse"> & {
213
+ /**
214
+ * Ips the partitions
215
+ *
216
+ * @generated from field: repeated fits.api.v1.Partition partitions = 1;
217
+ */
218
+ partitions: Partition[];
219
+ };
220
+ /**
221
+ * Describes the message fits.api.v1.PartitionServiceListResponse.
222
+ * Use `create(PartitionServiceListResponseSchema)` to create a new message.
223
+ */
224
+ export declare const PartitionServiceListResponseSchema: GenMessage<PartitionServiceListResponse>;
225
+ /**
226
+ * PartitionService provides partition management operations.
227
+ *
228
+ * @generated from service fits.api.v1.PartitionService
229
+ */
230
+ export declare const PartitionService: GenService<{
231
+ /**
232
+ * Returns the partition with the specified ID.
233
+ *
234
+ * @generated from rpc fits.api.v1.PartitionService.Get
235
+ */
236
+ get: {
237
+ methodKind: "unary";
238
+ input: typeof PartitionServiceGetRequestSchema;
239
+ output: typeof PartitionServiceGetResponseSchema;
240
+ };
241
+ /**
242
+ * Returns the list of all partitions.
243
+ *
244
+ * @generated from rpc fits.api.v1.PartitionService.List
245
+ */
246
+ list: {
247
+ methodKind: "unary";
248
+ input: typeof PartitionServiceListRequestSchema;
249
+ output: typeof PartitionServiceListResponseSchema;
250
+ };
251
+ }>;
@@ -0,0 +1,62 @@
1
+ // @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
2
+ // @generated from file fits/api/v1/partition.proto (package fits.api.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
+ import { file_buf_validate_validate } from "../../../buf/validate/validate_pb";
6
+ import { file_fits_api_v1_common } from "./common_pb";
7
+ import { file_fits_api_v1_predefined_rules } from "./predefined_rules_pb";
8
+ /**
9
+ * Describes the file fits/api/v1/partition.proto.
10
+ */
11
+ export const file_fits_api_v1_partition = /*@__PURE__*/ fileDesc("ChtmaXRzL2FwaS92MS9wYXJ0aXRpb24ucHJvdG8SC2ZpdHMuYXBpLnYxIsgCCglQYXJ0aXRpb24SFwoCaWQYASABKAlCC7pICHIG0LOusQIBEh8KBG1ldGEYAiABKAsyES5maXRzLmFwaS52MS5NZXRhEiAKC2Rlc2NyaXB0aW9uGAMgASgJQgu6SAhyBsizrrECARJDChJib290X2NvbmZpZ3VyYXRpb24YBCABKAsyJy5maXRzLmFwaS52MS5QYXJ0aXRpb25Cb290Q29uZmlndXJhdGlvbhI1CgtkbnNfc2VydmVycxgFIAMoCzIWLmZpdHMuYXBpLnYxLkROU1NlcnZlckIIukgFkgECEAMSNQoLbnRwX3NlcnZlcnMYBiADKAsyFi5maXRzLmFwaS52MS5OVFBTZXJ2ZXJCCLpIBZIBAhAKEiwKFm1nbXRfc2VydmljZV9hZGRyZXNzZXMYByADKAlCDLpICZIBBsiks7ECASJqCg5QYXJ0aXRpb25RdWVyeRIcCgJpZBgBIAEoCUILukgIcgbQs66xAgFIAIgBARIoCgZsYWJlbHMYAiABKAsyEy5maXRzLmFwaS52MS5MYWJlbHNIAYgBAUIFCgNfaWRCCQoHX2xhYmVscyJyChpQYXJ0aXRpb25Cb290Q29uZmlndXJhdGlvbhIeCglpbWFnZV91cmwYASABKAlCC7pICHIG4LOusQIBEh8KCmtlcm5lbF91cmwYAiABKAlCC7pICHIG4LOusQIBEhMKC2NvbW1hbmRsaW5lGAMgASgJIiAKCUROU1NlcnZlchITCgJpcBgBIAEoCUIHukgEcgJwASIpCglOVFBTZXJ2ZXISHAoHYWRkcmVzcxgBIAEoCUILukgIcgbos66xAgEiNQoaUGFydGl0aW9uU2VydmljZUdldFJlcXVlc3QSFwoCaWQYASABKAlCC7pICHIG0LOusQIBIkkKG1BhcnRpdGlvblNlcnZpY2VMaXN0UmVxdWVzdBIqCgVxdWVyeRgBIAEoCzIbLmZpdHMuYXBpLnYxLlBhcnRpdGlvblF1ZXJ5IkgKG1BhcnRpdGlvblNlcnZpY2VHZXRSZXNwb25zZRIpCglwYXJ0aXRpb24YASABKAsyFi5maXRzLmFwaS52MS5QYXJ0aXRpb24iSgocUGFydGl0aW9uU2VydmljZUxpc3RSZXNwb25zZRIqCgpwYXJ0aXRpb25zGAEgAygLMhYuZml0cy5hcGkudjEuUGFydGl0aW9uMt0BChBQYXJ0aXRpb25TZXJ2aWNlEmIKA0dldBInLmZpdHMuYXBpLnYxLlBhcnRpdGlvblNlcnZpY2VHZXRSZXF1ZXN0GiguZml0cy5hcGkudjEuUGFydGl0aW9uU2VydmljZUdldFJlc3BvbnNlIgjY8xgC4PMYAhJlCgRMaXN0EiguZml0cy5hcGkudjEuUGFydGl0aW9uU2VydmljZUxpc3RSZXF1ZXN0GikuZml0cy5hcGkudjEuUGFydGl0aW9uU2VydmljZUxpc3RSZXNwb25zZSII2PMYAuDzGAJCmgEKD2NvbS5maXRzLmFwaS52MUIOUGFydGl0aW9uUHJvdG9QAVopZ2l0aHViLmNvbS9maS10cy9hcGkvZ28vZml0cy9hcGkvdjE7YXBpdjGiAgNGQViqAgtGaXRzLkFwaS5WMcoCC0ZpdHNcQXBpXFYx4gIXRml0c1xBcGlcVjFcR1BCTWV0YWRhdGHqAg1GaXRzOjpBcGk6OlYxYgZwcm90bzM", [file_buf_validate_validate, file_fits_api_v1_common, file_fits_api_v1_predefined_rules]);
12
+ /**
13
+ * Describes the message fits.api.v1.Partition.
14
+ * Use `create(PartitionSchema)` to create a new message.
15
+ */
16
+ export const PartitionSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_partition, 0);
17
+ /**
18
+ * Describes the message fits.api.v1.PartitionQuery.
19
+ * Use `create(PartitionQuerySchema)` to create a new message.
20
+ */
21
+ export const PartitionQuerySchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_partition, 1);
22
+ /**
23
+ * Describes the message fits.api.v1.PartitionBootConfiguration.
24
+ * Use `create(PartitionBootConfigurationSchema)` to create a new message.
25
+ */
26
+ export const PartitionBootConfigurationSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_partition, 2);
27
+ /**
28
+ * Describes the message fits.api.v1.DNSServer.
29
+ * Use `create(DNSServerSchema)` to create a new message.
30
+ */
31
+ export const DNSServerSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_partition, 3);
32
+ /**
33
+ * Describes the message fits.api.v1.NTPServer.
34
+ * Use `create(NTPServerSchema)` to create a new message.
35
+ */
36
+ export const NTPServerSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_partition, 4);
37
+ /**
38
+ * Describes the message fits.api.v1.PartitionServiceGetRequest.
39
+ * Use `create(PartitionServiceGetRequestSchema)` to create a new message.
40
+ */
41
+ export const PartitionServiceGetRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_partition, 5);
42
+ /**
43
+ * Describes the message fits.api.v1.PartitionServiceListRequest.
44
+ * Use `create(PartitionServiceListRequestSchema)` to create a new message.
45
+ */
46
+ export const PartitionServiceListRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_partition, 6);
47
+ /**
48
+ * Describes the message fits.api.v1.PartitionServiceGetResponse.
49
+ * Use `create(PartitionServiceGetResponseSchema)` to create a new message.
50
+ */
51
+ export const PartitionServiceGetResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_partition, 7);
52
+ /**
53
+ * Describes the message fits.api.v1.PartitionServiceListResponse.
54
+ * Use `create(PartitionServiceListResponseSchema)` to create a new message.
55
+ */
56
+ export const PartitionServiceListResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_partition, 8);
57
+ /**
58
+ * PartitionService provides partition management operations.
59
+ *
60
+ * @generated from service fits.api.v1.PartitionService
61
+ */
62
+ export const PartitionService = /*@__PURE__*/ serviceDesc(file_fits_api_v1_partition, 0);