@metal-stack/api 0.0.40-beta.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 (103) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +111 -0
  3. package/js/Makefile +16 -0
  4. package/js/buf/validate/validate_pb.d.ts +4597 -0
  5. package/js/buf/validate/validate_pb.js +351 -0
  6. package/js/buf/validate/validate_pb.ts +4938 -0
  7. package/js/metalstack/admin/v2/filesystem_pb.d.ts +207 -0
  8. package/js/metalstack/admin/v2/filesystem_pb.js +48 -0
  9. package/js/metalstack/admin/v2/filesystem_pb.ts +248 -0
  10. package/js/metalstack/admin/v2/image_pb.d.ts +242 -0
  11. package/js/metalstack/admin/v2/image_pb.js +59 -0
  12. package/js/metalstack/admin/v2/image_pb.ts +288 -0
  13. package/js/metalstack/admin/v2/ip_pb.d.ts +60 -0
  14. package/js/metalstack/admin/v2/ip_pb.js +26 -0
  15. package/js/metalstack/admin/v2/ip_pb.ts +78 -0
  16. package/js/metalstack/admin/v2/machine_pb.d.ts +113 -0
  17. package/js/metalstack/admin/v2/machine_pb.js +38 -0
  18. package/js/metalstack/admin/v2/machine_pb.ts +140 -0
  19. package/js/metalstack/admin/v2/network_pb.d.ts +407 -0
  20. package/js/metalstack/admin/v2/network_pb.js +68 -0
  21. package/js/metalstack/admin/v2/network_pb.ts +478 -0
  22. package/js/metalstack/admin/v2/partition_pb.d.ts +341 -0
  23. package/js/metalstack/admin/v2/partition_pb.js +58 -0
  24. package/js/metalstack/admin/v2/partition_pb.ts +402 -0
  25. package/js/metalstack/admin/v2/project_pb.d.ts +67 -0
  26. package/js/metalstack/admin/v2/project_pb.js +27 -0
  27. package/js/metalstack/admin/v2/project_pb.ts +87 -0
  28. package/js/metalstack/admin/v2/size_pb.d.ts +183 -0
  29. package/js/metalstack/admin/v2/size_pb.js +48 -0
  30. package/js/metalstack/admin/v2/size_pb.ts +220 -0
  31. package/js/metalstack/admin/v2/switch_pb.d.ts +377 -0
  32. package/js/metalstack/admin/v2/switch_pb.js +79 -0
  33. package/js/metalstack/admin/v2/switch_pb.ts +435 -0
  34. package/js/metalstack/admin/v2/tenant_pb.d.ts +149 -0
  35. package/js/metalstack/admin/v2/tenant_pb.js +38 -0
  36. package/js/metalstack/admin/v2/tenant_pb.ts +182 -0
  37. package/js/metalstack/admin/v2/token_pb.d.ts +164 -0
  38. package/js/metalstack/admin/v2/token_pb.js +47 -0
  39. package/js/metalstack/admin/v2/token_pb.ts +199 -0
  40. package/js/metalstack/admin/v2/vpn_pb.ts +184 -0
  41. package/js/metalstack/api/v2/common_pb.d.ts +407 -0
  42. package/js/metalstack/api/v2/common_pb.js +311 -0
  43. package/js/metalstack/api/v2/common_pb.ts +488 -0
  44. package/js/metalstack/api/v2/filesystem_pb.d.ts +704 -0
  45. package/js/metalstack/api/v2/filesystem_pb.js +259 -0
  46. package/js/metalstack/api/v2/filesystem_pb.ts +819 -0
  47. package/js/metalstack/api/v2/health_pb.d.ts +220 -0
  48. package/js/metalstack/api/v2/health_pb.js +130 -0
  49. package/js/metalstack/api/v2/health_pb.ts +264 -0
  50. package/js/metalstack/api/v2/image_pb.d.ts +368 -0
  51. package/js/metalstack/api/v2/image_pb.js +129 -0
  52. package/js/metalstack/api/v2/image_pb.ts +436 -0
  53. package/js/metalstack/api/v2/ip_pb.d.ts +555 -0
  54. package/js/metalstack/api/v2/ip_pb.js +137 -0
  55. package/js/metalstack/api/v2/ip_pb.ts +650 -0
  56. package/js/metalstack/api/v2/machine_pb.d.ts +1831 -0
  57. package/js/metalstack/api/v2/machine_pb.js +459 -0
  58. package/js/metalstack/api/v2/machine_pb.ts +2155 -0
  59. package/js/metalstack/api/v2/method_pb.d.ts +122 -0
  60. package/js/metalstack/api/v2/method_pb.js +38 -0
  61. package/js/metalstack/api/v2/method_pb.ts +149 -0
  62. package/js/metalstack/api/v2/network_pb.d.ts +820 -0
  63. package/js/metalstack/api/v2/network_pb.js +244 -0
  64. package/js/metalstack/api/v2/network_pb.ts +954 -0
  65. package/js/metalstack/api/v2/partition_pb.d.ts +251 -0
  66. package/js/metalstack/api/v2/partition_pb.js +62 -0
  67. package/js/metalstack/api/v2/partition_pb.ts +300 -0
  68. package/js/metalstack/api/v2/predefined_rules_pb.d.ts +54 -0
  69. package/js/metalstack/api/v2/predefined_rules_pb.js +57 -0
  70. package/js/metalstack/api/v2/predefined_rules_pb.ts +79 -0
  71. package/js/metalstack/api/v2/project_pb.d.ts +862 -0
  72. package/js/metalstack/api/v2/project_pb.js +163 -0
  73. package/js/metalstack/api/v2/project_pb.ts +1001 -0
  74. package/js/metalstack/api/v2/size_pb.d.ts +261 -0
  75. package/js/metalstack/api/v2/size_pb.js +94 -0
  76. package/js/metalstack/api/v2/size_pb.ts +312 -0
  77. package/js/metalstack/api/v2/switch_pb.d.ts +508 -0
  78. package/js/metalstack/api/v2/switch_pb.js +207 -0
  79. package/js/metalstack/api/v2/switch_pb.ts +653 -0
  80. package/js/metalstack/api/v2/tenant_pb.d.ts +864 -0
  81. package/js/metalstack/api/v2/tenant_pb.js +163 -0
  82. package/js/metalstack/api/v2/tenant_pb.ts +1004 -0
  83. package/js/metalstack/api/v2/token_pb.d.ts +540 -0
  84. package/js/metalstack/api/v2/token_pb.js +118 -0
  85. package/js/metalstack/api/v2/token_pb.ts +621 -0
  86. package/js/metalstack/api/v2/user_pb.d.ts +108 -0
  87. package/js/metalstack/api/v2/user_pb.js +34 -0
  88. package/js/metalstack/api/v2/user_pb.ts +139 -0
  89. package/js/metalstack/api/v2/version_pb.d.ts +88 -0
  90. package/js/metalstack/api/v2/version_pb.js +30 -0
  91. package/js/metalstack/api/v2/version_pb.ts +112 -0
  92. package/js/metalstack/api/v2/vpn_pb.ts +72 -0
  93. package/js/metalstack/infra/v2/bmc_pb.d.ts +45 -0
  94. package/js/metalstack/infra/v2/bmc_pb.js +25 -0
  95. package/js/metalstack/infra/v2/bmc_pb.ts +104 -0
  96. package/js/metalstack/infra/v2/event_pb.d.ts +181 -0
  97. package/js/metalstack/infra/v2/event_pb.js +116 -0
  98. package/js/metalstack/infra/v2/event_pb.ts +218 -0
  99. package/js/metalstack/infra/v2/switch_pb.d.ts +223 -0
  100. package/js/metalstack/infra/v2/switch_pb.js +54 -0
  101. package/js/metalstack/infra/v2/switch_pb.ts +228 -0
  102. package/js/tsconfig.json +70 -0
  103. package/package.json +21 -0
@@ -0,0 +1,122 @@
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { AdminRole, InfraRole, ProjectRole, TenantRole } from "./common_pb";
3
+ import type { MethodPermission } from "./token_pb";
4
+ import type { Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file metalstack/api/v2/method.proto.
7
+ */
8
+ export declare const file_metalstack_api_v2_method: GenFile;
9
+ /**
10
+ * MethodServiceListRequest is the request payload to list all public methods
11
+ *
12
+ * @generated from message metalstack.api.v2.MethodServiceListRequest
13
+ */
14
+ export type MethodServiceListRequest = Message<"metalstack.api.v2.MethodServiceListRequest"> & {};
15
+ /**
16
+ * Describes the message metalstack.api.v2.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 with all public visible methods
22
+ *
23
+ * @generated from message metalstack.api.v2.MethodServiceListResponse
24
+ */
25
+ export type MethodServiceListResponse = Message<"metalstack.api.v2.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 metalstack.api.v2.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 to list all methods callable with the token present in the request
40
+ *
41
+ * @generated from message metalstack.api.v2.MethodServiceTokenScopedListRequest
42
+ */
43
+ export type MethodServiceTokenScopedListRequest = Message<"metalstack.api.v2.MethodServiceTokenScopedListRequest"> & {};
44
+ /**
45
+ * Describes the message metalstack.api.v2.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 metalstack.api.v2.MethodServiceTokenScopedListResponse
53
+ */
54
+ export type MethodServiceTokenScopedListResponse = Message<"metalstack.api.v2.MethodServiceTokenScopedListResponse"> & {
55
+ /**
56
+ * Permissions a list of methods which can be called
57
+ *
58
+ * @generated from field: repeated metalstack.api.v2.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, metalstack.api.v2.ProjectRole> project_roles = 3;
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, metalstack.api.v2.TenantRole> tenant_roles = 4;
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 metalstack.api.v2.AdminRole admin_role = 5;
81
+ */
82
+ adminRole?: AdminRole;
83
+ /**
84
+ * InfraRole defines the infrastructure role of the token owner
85
+ *
86
+ * @generated from field: optional metalstack.api.v2.InfraRole infra_role = 6;
87
+ */
88
+ infraRole?: InfraRole;
89
+ };
90
+ /**
91
+ * Describes the message metalstack.api.v2.MethodServiceTokenScopedListResponse.
92
+ * Use `create(MethodServiceTokenScopedListResponseSchema)` to create a new message.
93
+ */
94
+ export declare const MethodServiceTokenScopedListResponseSchema: GenMessage<MethodServiceTokenScopedListResponse>;
95
+ /**
96
+ * MethodService serves method related functions
97
+ * methods are functions in services
98
+ *
99
+ * @generated from service metalstack.api.v2.MethodService
100
+ */
101
+ export declare const MethodService: GenService<{
102
+ /**
103
+ * List all public visible methods
104
+ *
105
+ * @generated from rpc metalstack.api.v2.MethodService.List
106
+ */
107
+ list: {
108
+ methodKind: "unary";
109
+ input: typeof MethodServiceListRequestSchema;
110
+ output: typeof MethodServiceListResponseSchema;
111
+ };
112
+ /**
113
+ * TokenScopedList all methods callable with the token present in the request
114
+ *
115
+ * @generated from rpc metalstack.api.v2.MethodService.TokenScopedList
116
+ */
117
+ tokenScopedList: {
118
+ methodKind: "unary";
119
+ input: typeof MethodServiceTokenScopedListRequestSchema;
120
+ output: typeof MethodServiceTokenScopedListResponseSchema;
121
+ };
122
+ }>;
@@ -0,0 +1,38 @@
1
+ // @generated by protoc-gen-es v2.10.2 with parameter "target=ts"
2
+ // @generated from file metalstack/api/v2/method.proto (package metalstack.api.v2, 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_metalstack_api_v2_common } from "./common_pb";
7
+ import { file_metalstack_api_v2_token } from "./token_pb";
8
+ /**
9
+ * Describes the file metalstack/api/v2/method.proto.
10
+ */
11
+ export const file_metalstack_api_v2_method = /*@__PURE__*/ fileDesc("Ch5tZXRhbHN0YWNrL2FwaS92Mi9tZXRob2QucHJvdG8SEW1ldGFsc3RhY2suYXBpLnYyIhoKGE1ldGhvZFNlcnZpY2VMaXN0UmVxdWVzdCIsChlNZXRob2RTZXJ2aWNlTGlzdFJlc3BvbnNlEg8KB21ldGhvZHMYASADKAkiJQojTWV0aG9kU2VydmljZVRva2VuU2NvcGVkTGlzdFJlcXVlc3Qi6gQKJE1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ZExpc3RSZXF1ZXN0GjcubWV0YWxzdGFjay5hcGkudjIuTWV0aG9kU2VydmljZVRva2VuU2NvcGVkTGlzdFJlc3BvbnNlIgTY8xgDQsEBChVjb20ubWV0YWxzdGFjay5hcGkudjJCC01ldGhvZFByb3RvUAFaNWdpdGh1Yi5jb20vbWV0YWwtc3RhY2svYXBpL2dvL21ldGFsc3RhY2svYXBpL3YyO2FwaXYyogIDTUFYqgIRTWV0YWxzdGFjay5BcGkuVjLKAhFNZXRhbHN0YWNrXEFwaVxWMuICHU1ldGFsc3RhY2tcQXBpXFYyXEdQQk1ldGFkYXRh6gITTWV0YWxzdGFjazo6QXBpOjpWMmIGcHJvdG8z", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_token]);
12
+ /**
13
+ * Describes the message metalstack.api.v2.MethodServiceListRequest.
14
+ * Use `create(MethodServiceListRequestSchema)` to create a new message.
15
+ */
16
+ export const MethodServiceListRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_method, 0);
17
+ /**
18
+ * Describes the message metalstack.api.v2.MethodServiceListResponse.
19
+ * Use `create(MethodServiceListResponseSchema)` to create a new message.
20
+ */
21
+ export const MethodServiceListResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_method, 1);
22
+ /**
23
+ * Describes the message metalstack.api.v2.MethodServiceTokenScopedListRequest.
24
+ * Use `create(MethodServiceTokenScopedListRequestSchema)` to create a new message.
25
+ */
26
+ export const MethodServiceTokenScopedListRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_method, 2);
27
+ /**
28
+ * Describes the message metalstack.api.v2.MethodServiceTokenScopedListResponse.
29
+ * Use `create(MethodServiceTokenScopedListResponseSchema)` to create a new message.
30
+ */
31
+ export const MethodServiceTokenScopedListResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_method, 3);
32
+ /**
33
+ * MethodService serves method related functions
34
+ * methods are functions in services
35
+ *
36
+ * @generated from service metalstack.api.v2.MethodService
37
+ */
38
+ export const MethodService = /*@__PURE__*/ serviceDesc(file_metalstack_api_v2_method, 0);
@@ -0,0 +1,149 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
2
+ // @generated from file metalstack/api/v2/method.proto (package metalstack.api.v2, 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, InfraRole, ProjectRole, TenantRole } from "./common_pb";
9
+ import { file_metalstack_api_v2_common } from "./common_pb";
10
+ import type { MethodPermission } from "./token_pb";
11
+ import { file_metalstack_api_v2_token } from "./token_pb";
12
+ import type { Message } from "@bufbuild/protobuf";
13
+
14
+ /**
15
+ * Describes the file metalstack/api/v2/method.proto.
16
+ */
17
+ export const file_metalstack_api_v2_method: GenFile = /*@__PURE__*/
18
+ fileDesc("Ch5tZXRhbHN0YWNrL2FwaS92Mi9tZXRob2QucHJvdG8SEW1ldGFsc3RhY2suYXBpLnYyIhoKGE1ldGhvZFNlcnZpY2VMaXN0UmVxdWVzdCIsChlNZXRob2RTZXJ2aWNlTGlzdFJlc3BvbnNlEg8KB21ldGhvZHMYASADKAkiJQojTWV0aG9kU2VydmljZVRva2VuU2NvcGVkTGlzdFJlcXVlc3Qi6gQKJE1ldGhvZFNlcnZpY2VUb2tlblNjb3BlZExpc3RSZXNwb25zZRI4CgtwZXJtaXNzaW9ucxgBIAMoCzIjLm1ldGFsc3RhY2suYXBpLnYyLk1ldGhvZFBlcm1pc3Npb24SYAoNcHJvamVjdF9yb2xlcxgDIAMoCzJJLm1ldGFsc3RhY2suYXBpLnYyLk1ldGhvZFNlcnZpY2VUb2tlblNjb3BlZExpc3RSZXNwb25zZS5Qcm9qZWN0Um9sZXNFbnRyeRJeCgx0ZW5hbnRfcm9sZXMYBCADKAsySC5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ldGFsc3RhY2tcQXBpXFYyXEdQQk1ldGFkYXRh6gITTWV0YWxzdGFjazo6QXBpOjpWMmIGcHJvdG8z", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_token]);
19
+
20
+ /**
21
+ * MethodServiceListRequest is the request payload to list all public methods
22
+ *
23
+ * @generated from message metalstack.api.v2.MethodServiceListRequest
24
+ */
25
+ export type MethodServiceListRequest = Message<"metalstack.api.v2.MethodServiceListRequest"> & {
26
+ };
27
+
28
+ /**
29
+ * Describes the message metalstack.api.v2.MethodServiceListRequest.
30
+ * Use `create(MethodServiceListRequestSchema)` to create a new message.
31
+ */
32
+ export const MethodServiceListRequestSchema: GenMessage<MethodServiceListRequest> = /*@__PURE__*/
33
+ messageDesc(file_metalstack_api_v2_method, 0);
34
+
35
+ /**
36
+ * MethodServiceListResponse is the response payload with all public visible methods
37
+ *
38
+ * @generated from message metalstack.api.v2.MethodServiceListResponse
39
+ */
40
+ export type MethodServiceListResponse = Message<"metalstack.api.v2.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 metalstack.api.v2.MethodServiceListResponse.
51
+ * Use `create(MethodServiceListResponseSchema)` to create a new message.
52
+ */
53
+ export const MethodServiceListResponseSchema: GenMessage<MethodServiceListResponse> = /*@__PURE__*/
54
+ messageDesc(file_metalstack_api_v2_method, 1);
55
+
56
+ /**
57
+ * MethodServiceTokenScopedListRequest is the request payload to list all methods callable with the token present in the request
58
+ *
59
+ * @generated from message metalstack.api.v2.MethodServiceTokenScopedListRequest
60
+ */
61
+ export type MethodServiceTokenScopedListRequest = Message<"metalstack.api.v2.MethodServiceTokenScopedListRequest"> & {
62
+ };
63
+
64
+ /**
65
+ * Describes the message metalstack.api.v2.MethodServiceTokenScopedListRequest.
66
+ * Use `create(MethodServiceTokenScopedListRequestSchema)` to create a new message.
67
+ */
68
+ export const MethodServiceTokenScopedListRequestSchema: GenMessage<MethodServiceTokenScopedListRequest> = /*@__PURE__*/
69
+ messageDesc(file_metalstack_api_v2_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 metalstack.api.v2.MethodServiceTokenScopedListResponse
75
+ */
76
+ export type MethodServiceTokenScopedListResponse = Message<"metalstack.api.v2.MethodServiceTokenScopedListResponse"> & {
77
+ /**
78
+ * Permissions a list of methods which can be called
79
+ *
80
+ * @generated from field: repeated metalstack.api.v2.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, metalstack.api.v2.ProjectRole> project_roles = 3;
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, metalstack.api.v2.TenantRole> tenant_roles = 4;
95
+ */
96
+ tenantRoles: { [key: string]: TenantRole };
97
+
98
+ /**
99
+ * AdminRole defines the admin role of the token owner
100
+ *
101
+ * @generated from field: optional metalstack.api.v2.AdminRole admin_role = 5;
102
+ */
103
+ adminRole?: AdminRole;
104
+
105
+ /**
106
+ * InfraRole defines the infrastructure role of the token owner
107
+ *
108
+ * @generated from field: optional metalstack.api.v2.InfraRole infra_role = 6;
109
+ */
110
+ infraRole?: InfraRole;
111
+ };
112
+
113
+ /**
114
+ * Describes the message metalstack.api.v2.MethodServiceTokenScopedListResponse.
115
+ * Use `create(MethodServiceTokenScopedListResponseSchema)` to create a new message.
116
+ */
117
+ export const MethodServiceTokenScopedListResponseSchema: GenMessage<MethodServiceTokenScopedListResponse> = /*@__PURE__*/
118
+ messageDesc(file_metalstack_api_v2_method, 3);
119
+
120
+ /**
121
+ * MethodService serves method related functions
122
+ * methods are functions in services
123
+ *
124
+ * @generated from service metalstack.api.v2.MethodService
125
+ */
126
+ export const MethodService: GenService<{
127
+ /**
128
+ * List all public visible methods
129
+ *
130
+ * @generated from rpc metalstack.api.v2.MethodService.List
131
+ */
132
+ list: {
133
+ methodKind: "unary";
134
+ input: typeof MethodServiceListRequestSchema;
135
+ output: typeof MethodServiceListResponseSchema;
136
+ },
137
+ /**
138
+ * TokenScopedList all methods callable with the token present in the request
139
+ *
140
+ * @generated from rpc metalstack.api.v2.MethodService.TokenScopedList
141
+ */
142
+ tokenScopedList: {
143
+ methodKind: "unary";
144
+ input: typeof MethodServiceTokenScopedListRequestSchema;
145
+ output: typeof MethodServiceTokenScopedListResponseSchema;
146
+ },
147
+ }> = /*@__PURE__*/
148
+ serviceDesc(file_metalstack_api_v2_method, 0);
149
+