@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.
- package/LICENSE +21 -0
- package/README.md +111 -0
- package/js/Makefile +16 -0
- package/js/buf/validate/validate_pb.d.ts +4597 -0
- package/js/buf/validate/validate_pb.js +351 -0
- package/js/buf/validate/validate_pb.ts +4938 -0
- package/js/metalstack/admin/v2/filesystem_pb.d.ts +207 -0
- package/js/metalstack/admin/v2/filesystem_pb.js +48 -0
- package/js/metalstack/admin/v2/filesystem_pb.ts +248 -0
- package/js/metalstack/admin/v2/image_pb.d.ts +242 -0
- package/js/metalstack/admin/v2/image_pb.js +59 -0
- package/js/metalstack/admin/v2/image_pb.ts +288 -0
- package/js/metalstack/admin/v2/ip_pb.d.ts +60 -0
- package/js/metalstack/admin/v2/ip_pb.js +26 -0
- package/js/metalstack/admin/v2/ip_pb.ts +78 -0
- package/js/metalstack/admin/v2/machine_pb.d.ts +113 -0
- package/js/metalstack/admin/v2/machine_pb.js +38 -0
- package/js/metalstack/admin/v2/machine_pb.ts +140 -0
- package/js/metalstack/admin/v2/network_pb.d.ts +407 -0
- package/js/metalstack/admin/v2/network_pb.js +68 -0
- package/js/metalstack/admin/v2/network_pb.ts +478 -0
- package/js/metalstack/admin/v2/partition_pb.d.ts +341 -0
- package/js/metalstack/admin/v2/partition_pb.js +58 -0
- package/js/metalstack/admin/v2/partition_pb.ts +402 -0
- package/js/metalstack/admin/v2/project_pb.d.ts +67 -0
- package/js/metalstack/admin/v2/project_pb.js +27 -0
- package/js/metalstack/admin/v2/project_pb.ts +87 -0
- package/js/metalstack/admin/v2/size_pb.d.ts +183 -0
- package/js/metalstack/admin/v2/size_pb.js +48 -0
- package/js/metalstack/admin/v2/size_pb.ts +220 -0
- package/js/metalstack/admin/v2/switch_pb.d.ts +377 -0
- package/js/metalstack/admin/v2/switch_pb.js +79 -0
- package/js/metalstack/admin/v2/switch_pb.ts +435 -0
- package/js/metalstack/admin/v2/tenant_pb.d.ts +149 -0
- package/js/metalstack/admin/v2/tenant_pb.js +38 -0
- package/js/metalstack/admin/v2/tenant_pb.ts +182 -0
- package/js/metalstack/admin/v2/token_pb.d.ts +164 -0
- package/js/metalstack/admin/v2/token_pb.js +47 -0
- package/js/metalstack/admin/v2/token_pb.ts +199 -0
- package/js/metalstack/admin/v2/vpn_pb.ts +184 -0
- package/js/metalstack/api/v2/common_pb.d.ts +407 -0
- package/js/metalstack/api/v2/common_pb.js +311 -0
- package/js/metalstack/api/v2/common_pb.ts +488 -0
- package/js/metalstack/api/v2/filesystem_pb.d.ts +704 -0
- package/js/metalstack/api/v2/filesystem_pb.js +259 -0
- package/js/metalstack/api/v2/filesystem_pb.ts +819 -0
- package/js/metalstack/api/v2/health_pb.d.ts +220 -0
- package/js/metalstack/api/v2/health_pb.js +130 -0
- package/js/metalstack/api/v2/health_pb.ts +264 -0
- package/js/metalstack/api/v2/image_pb.d.ts +368 -0
- package/js/metalstack/api/v2/image_pb.js +129 -0
- package/js/metalstack/api/v2/image_pb.ts +436 -0
- package/js/metalstack/api/v2/ip_pb.d.ts +555 -0
- package/js/metalstack/api/v2/ip_pb.js +137 -0
- package/js/metalstack/api/v2/ip_pb.ts +650 -0
- package/js/metalstack/api/v2/machine_pb.d.ts +1831 -0
- package/js/metalstack/api/v2/machine_pb.js +459 -0
- package/js/metalstack/api/v2/machine_pb.ts +2155 -0
- package/js/metalstack/api/v2/method_pb.d.ts +122 -0
- package/js/metalstack/api/v2/method_pb.js +38 -0
- package/js/metalstack/api/v2/method_pb.ts +149 -0
- package/js/metalstack/api/v2/network_pb.d.ts +820 -0
- package/js/metalstack/api/v2/network_pb.js +244 -0
- package/js/metalstack/api/v2/network_pb.ts +954 -0
- package/js/metalstack/api/v2/partition_pb.d.ts +251 -0
- package/js/metalstack/api/v2/partition_pb.js +62 -0
- package/js/metalstack/api/v2/partition_pb.ts +300 -0
- package/js/metalstack/api/v2/predefined_rules_pb.d.ts +54 -0
- package/js/metalstack/api/v2/predefined_rules_pb.js +57 -0
- package/js/metalstack/api/v2/predefined_rules_pb.ts +79 -0
- package/js/metalstack/api/v2/project_pb.d.ts +862 -0
- package/js/metalstack/api/v2/project_pb.js +163 -0
- package/js/metalstack/api/v2/project_pb.ts +1001 -0
- package/js/metalstack/api/v2/size_pb.d.ts +261 -0
- package/js/metalstack/api/v2/size_pb.js +94 -0
- package/js/metalstack/api/v2/size_pb.ts +312 -0
- package/js/metalstack/api/v2/switch_pb.d.ts +508 -0
- package/js/metalstack/api/v2/switch_pb.js +207 -0
- package/js/metalstack/api/v2/switch_pb.ts +653 -0
- package/js/metalstack/api/v2/tenant_pb.d.ts +864 -0
- package/js/metalstack/api/v2/tenant_pb.js +163 -0
- package/js/metalstack/api/v2/tenant_pb.ts +1004 -0
- package/js/metalstack/api/v2/token_pb.d.ts +540 -0
- package/js/metalstack/api/v2/token_pb.js +118 -0
- package/js/metalstack/api/v2/token_pb.ts +621 -0
- package/js/metalstack/api/v2/user_pb.d.ts +108 -0
- package/js/metalstack/api/v2/user_pb.js +34 -0
- package/js/metalstack/api/v2/user_pb.ts +139 -0
- package/js/metalstack/api/v2/version_pb.d.ts +88 -0
- package/js/metalstack/api/v2/version_pb.js +30 -0
- package/js/metalstack/api/v2/version_pb.ts +112 -0
- package/js/metalstack/api/v2/vpn_pb.ts +72 -0
- package/js/metalstack/infra/v2/bmc_pb.d.ts +45 -0
- package/js/metalstack/infra/v2/bmc_pb.js +25 -0
- package/js/metalstack/infra/v2/bmc_pb.ts +104 -0
- package/js/metalstack/infra/v2/event_pb.d.ts +181 -0
- package/js/metalstack/infra/v2/event_pb.js +116 -0
- package/js/metalstack/infra/v2/event_pb.ts +218 -0
- package/js/metalstack/infra/v2/switch_pb.d.ts +223 -0
- package/js/metalstack/infra/v2/switch_pb.js +54 -0
- package/js/metalstack/infra/v2/switch_pb.ts +228 -0
- package/js/tsconfig.json +70 -0
- package/package.json +21 -0
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file metalstack/admin/v2/tenant.proto (package metalstack.admin.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 { Paging } from "../../api/v2/common_pb";
|
|
9
|
+
import { file_metalstack_api_v2_common } from "../../api/v2/common_pb";
|
|
10
|
+
import { file_metalstack_api_v2_predefined_rules } from "../../api/v2/predefined_rules_pb";
|
|
11
|
+
import type { Tenant } from "../../api/v2/tenant_pb";
|
|
12
|
+
import { file_metalstack_api_v2_tenant } from "../../api/v2/tenant_pb";
|
|
13
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Describes the file metalstack/admin/v2/tenant.proto.
|
|
17
|
+
*/
|
|
18
|
+
export const file_metalstack_admin_v2_tenant: GenFile = /*@__PURE__*/
|
|
19
|
+
fileDesc("CiBtZXRhbHN0YWNrL2FkbWluL3YyL3RlbmFudC5wcm90bxITbWV0YWxzdGFjay5hZG1pbi52MiK9AQoaVGVuYW50U2VydmljZUNyZWF0ZVJlcXVlc3QSGQoEbmFtZRgBIAEoCUILukgIcgbAs66xAgESJQoLZGVzY3JpcHRpb24YAiABKAlCC7pICHIGyLOusQIBSACIAQESGwoFZW1haWwYAyABKAlCB7pIBHICYAFIAYgBARIXCgphdmF0YXJfdXJsGAQgASgJSAKIAQFCDgoMX2Rlc2NyaXB0aW9uQggKBl9lbWFpbEINCgtfYXZhdGFyX3VybCJIChtUZW5hbnRTZXJ2aWNlQ3JlYXRlUmVzcG9uc2USKQoGdGVuYW50GAEgASgLMhkubWV0YWxzdGFjay5hcGkudjIuVGVuYW50IqoBChhUZW5hbnRTZXJ2aWNlTGlzdFJlcXVlc3QSEgoFbG9naW4YASABKAlIAIgBARIeCgRuYW1lGAIgASgJQgu6SAhyBsCzrrECAUgBiAEBEhIKBWVtYWlsGAMgASgJSAKIAQESKQoGcGFnaW5nGAcgASgLMhkubWV0YWxzdGFjay5hcGkudjIuUGFnaW5nQggKBl9sb2dpbkIHCgVfbmFtZUIICgZfZW1haWwibQoZVGVuYW50U2VydmljZUxpc3RSZXNwb25zZRIqCgd0ZW5hbnRzGAEgAygLMhkubWV0YWxzdGFjay5hcGkudjIuVGVuYW50EhYKCW5leHRfcGFnZRgCIAEoBEgAiAEBQgwKCl9uZXh0X3BhZ2Uy8gEKDVRlbmFudFNlcnZpY2UScgoGQ3JlYXRlEi8ubWV0YWxzdGFjay5hZG1pbi52Mi5UZW5hbnRTZXJ2aWNlQ3JlYXRlUmVxdWVzdBowLm1ldGFsc3RhY2suYWRtaW4udjIuVGVuYW50U2VydmljZUNyZWF0ZVJlc3BvbnNlIgXS8xgBARJtCgRMaXN0Ei0ubWV0YWxzdGFjay5hZG1pbi52Mi5UZW5hbnRTZXJ2aWNlTGlzdFJlcXVlc3QaLi5tZXRhbHN0YWNrLmFkbWluLnYyLlRlbmFudFNlcnZpY2VMaXN0UmVzcG9uc2UiBtLzGAIBAkLPAQoXY29tLm1ldGFsc3RhY2suYWRtaW4udjJCC1RlbmFudFByb3RvUAFaOWdpdGh1Yi5jb20vbWV0YWwtc3RhY2svYXBpL2dvL21ldGFsc3RhY2svYWRtaW4vdjI7YWRtaW52MqICA01BWKoCE01ldGFsc3RhY2suQWRtaW4uVjLKAhNNZXRhbHN0YWNrXEFkbWluXFYy4gIfTWV0YWxzdGFja1xBZG1pblxWMlxHUEJNZXRhZGF0YeoCFU1ldGFsc3RhY2s6OkFkbWluOjpWMmIGcHJvdG8z", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_predefined_rules, file_metalstack_api_v2_tenant]);
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* TenantServiceCreateRequest is the request payload of the tenant create request
|
|
23
|
+
*
|
|
24
|
+
* @generated from message metalstack.admin.v2.TenantServiceCreateRequest
|
|
25
|
+
*/
|
|
26
|
+
export type TenantServiceCreateRequest = Message<"metalstack.admin.v2.TenantServiceCreateRequest"> & {
|
|
27
|
+
/**
|
|
28
|
+
* Name of this tenant
|
|
29
|
+
*
|
|
30
|
+
* @generated from field: string name = 1;
|
|
31
|
+
*/
|
|
32
|
+
name: string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Description of this tenant
|
|
36
|
+
*
|
|
37
|
+
* @generated from field: optional string description = 2;
|
|
38
|
+
*/
|
|
39
|
+
description?: string;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Email of the tenant, if not set will be inherited from the creator
|
|
43
|
+
*
|
|
44
|
+
* @generated from field: optional string email = 3;
|
|
45
|
+
*/
|
|
46
|
+
email?: string;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* AvatarUrl of the tenant
|
|
50
|
+
*
|
|
51
|
+
* @generated from field: optional string avatar_url = 4;
|
|
52
|
+
*/
|
|
53
|
+
avatarUrl?: string;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Describes the message metalstack.admin.v2.TenantServiceCreateRequest.
|
|
58
|
+
* Use `create(TenantServiceCreateRequestSchema)` to create a new message.
|
|
59
|
+
*/
|
|
60
|
+
export const TenantServiceCreateRequestSchema: GenMessage<TenantServiceCreateRequest> = /*@__PURE__*/
|
|
61
|
+
messageDesc(file_metalstack_admin_v2_tenant, 0);
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* TenantServiceCreateResponse is the response payload of the tenant create request
|
|
65
|
+
*
|
|
66
|
+
* @generated from message metalstack.admin.v2.TenantServiceCreateResponse
|
|
67
|
+
*/
|
|
68
|
+
export type TenantServiceCreateResponse = Message<"metalstack.admin.v2.TenantServiceCreateResponse"> & {
|
|
69
|
+
/**
|
|
70
|
+
* Tenant is the tenant
|
|
71
|
+
*
|
|
72
|
+
* @generated from field: metalstack.api.v2.Tenant tenant = 1;
|
|
73
|
+
*/
|
|
74
|
+
tenant?: Tenant;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Describes the message metalstack.admin.v2.TenantServiceCreateResponse.
|
|
79
|
+
* Use `create(TenantServiceCreateResponseSchema)` to create a new message.
|
|
80
|
+
*/
|
|
81
|
+
export const TenantServiceCreateResponseSchema: GenMessage<TenantServiceCreateResponse> = /*@__PURE__*/
|
|
82
|
+
messageDesc(file_metalstack_admin_v2_tenant, 1);
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* TenantServiceListRequest is the request payload for a tenant list request
|
|
86
|
+
*
|
|
87
|
+
* @generated from message metalstack.admin.v2.TenantServiceListRequest
|
|
88
|
+
*/
|
|
89
|
+
export type TenantServiceListRequest = Message<"metalstack.admin.v2.TenantServiceListRequest"> & {
|
|
90
|
+
/**
|
|
91
|
+
* Login of the tenant to list
|
|
92
|
+
*
|
|
93
|
+
* @generated from field: optional string login = 1;
|
|
94
|
+
*/
|
|
95
|
+
login?: string;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Name of the tenant to list
|
|
99
|
+
*
|
|
100
|
+
* @generated from field: optional string name = 2;
|
|
101
|
+
*/
|
|
102
|
+
name?: string;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Email of the tenant to list
|
|
106
|
+
*
|
|
107
|
+
* @generated from field: optional string email = 3;
|
|
108
|
+
*/
|
|
109
|
+
email?: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Paging details for the list request
|
|
113
|
+
*
|
|
114
|
+
* @generated from field: metalstack.api.v2.Paging paging = 7;
|
|
115
|
+
*/
|
|
116
|
+
paging?: Paging;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Describes the message metalstack.admin.v2.TenantServiceListRequest.
|
|
121
|
+
* Use `create(TenantServiceListRequestSchema)` to create a new message.
|
|
122
|
+
*/
|
|
123
|
+
export const TenantServiceListRequestSchema: GenMessage<TenantServiceListRequest> = /*@__PURE__*/
|
|
124
|
+
messageDesc(file_metalstack_admin_v2_tenant, 2);
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* TenantServiceListResponse is the response payload for a tenant list request
|
|
128
|
+
*
|
|
129
|
+
* @generated from message metalstack.admin.v2.TenantServiceListResponse
|
|
130
|
+
*/
|
|
131
|
+
export type TenantServiceListResponse = Message<"metalstack.admin.v2.TenantServiceListResponse"> & {
|
|
132
|
+
/**
|
|
133
|
+
* Tenants are the list of tenants
|
|
134
|
+
*
|
|
135
|
+
* @generated from field: repeated metalstack.api.v2.Tenant tenants = 1;
|
|
136
|
+
*/
|
|
137
|
+
tenants: Tenant[];
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* NextPage is used for pagination, returns the next page to be fetched and must then be provided in the list request.
|
|
141
|
+
*
|
|
142
|
+
* @generated from field: optional uint64 next_page = 2;
|
|
143
|
+
*/
|
|
144
|
+
nextPage?: bigint;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Describes the message metalstack.admin.v2.TenantServiceListResponse.
|
|
149
|
+
* Use `create(TenantServiceListResponseSchema)` to create a new message.
|
|
150
|
+
*/
|
|
151
|
+
export const TenantServiceListResponseSchema: GenMessage<TenantServiceListResponse> = /*@__PURE__*/
|
|
152
|
+
messageDesc(file_metalstack_admin_v2_tenant, 3);
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* TenantService serves tenant related functions
|
|
156
|
+
*
|
|
157
|
+
* @generated from service metalstack.admin.v2.TenantService
|
|
158
|
+
*/
|
|
159
|
+
export const TenantService: GenService<{
|
|
160
|
+
/**
|
|
161
|
+
* Create a tenant
|
|
162
|
+
*
|
|
163
|
+
* @generated from rpc metalstack.admin.v2.TenantService.Create
|
|
164
|
+
*/
|
|
165
|
+
create: {
|
|
166
|
+
methodKind: "unary";
|
|
167
|
+
input: typeof TenantServiceCreateRequestSchema;
|
|
168
|
+
output: typeof TenantServiceCreateResponseSchema;
|
|
169
|
+
},
|
|
170
|
+
/**
|
|
171
|
+
* List all tenants
|
|
172
|
+
*
|
|
173
|
+
* @generated from rpc metalstack.admin.v2.TenantService.List
|
|
174
|
+
*/
|
|
175
|
+
list: {
|
|
176
|
+
methodKind: "unary";
|
|
177
|
+
input: typeof TenantServiceListRequestSchema;
|
|
178
|
+
output: typeof TenantServiceListResponseSchema;
|
|
179
|
+
},
|
|
180
|
+
}> = /*@__PURE__*/
|
|
181
|
+
serviceDesc(file_metalstack_admin_v2_tenant, 0);
|
|
182
|
+
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Token, TokenServiceCreateRequest as TokenServiceCreateRequest$1 } from "../../api/v2/token_pb";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file metalstack/admin/v2/token.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_metalstack_admin_v2_token: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* TokenServiceListRequest is the request payload for the token list request
|
|
10
|
+
*
|
|
11
|
+
* @generated from message metalstack.admin.v2.TokenServiceListRequest
|
|
12
|
+
*/
|
|
13
|
+
export type TokenServiceListRequest = Message<"metalstack.admin.v2.TokenServiceListRequest"> & {
|
|
14
|
+
/**
|
|
15
|
+
* User is the id of the user for which the tokens should be listed
|
|
16
|
+
*
|
|
17
|
+
* @generated from field: optional string user = 1;
|
|
18
|
+
*/
|
|
19
|
+
user?: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Describes the message metalstack.admin.v2.TokenServiceListRequest.
|
|
23
|
+
* Use `create(TokenServiceListRequestSchema)` to create a new message.
|
|
24
|
+
*/
|
|
25
|
+
export declare const TokenServiceListRequestSchema: GenMessage<TokenServiceListRequest>;
|
|
26
|
+
/**
|
|
27
|
+
* TokenServiceListResponse is the response payload for the token list request
|
|
28
|
+
*
|
|
29
|
+
* @generated from message metalstack.admin.v2.TokenServiceListResponse
|
|
30
|
+
*/
|
|
31
|
+
export type TokenServiceListResponse = Message<"metalstack.admin.v2.TokenServiceListResponse"> & {
|
|
32
|
+
/**
|
|
33
|
+
* Tokens is the list of tokens
|
|
34
|
+
*
|
|
35
|
+
* @generated from field: repeated metalstack.api.v2.Token tokens = 1;
|
|
36
|
+
*/
|
|
37
|
+
tokens: Token[];
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Describes the message metalstack.admin.v2.TokenServiceListResponse.
|
|
41
|
+
* Use `create(TokenServiceListResponseSchema)` to create a new message.
|
|
42
|
+
*/
|
|
43
|
+
export declare const TokenServiceListResponseSchema: GenMessage<TokenServiceListResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* TokenServiceRevokeRequest is the request payload for the token revoke request
|
|
46
|
+
*
|
|
47
|
+
* @generated from message metalstack.admin.v2.TokenServiceRevokeRequest
|
|
48
|
+
*/
|
|
49
|
+
export type TokenServiceRevokeRequest = Message<"metalstack.admin.v2.TokenServiceRevokeRequest"> & {
|
|
50
|
+
/**
|
|
51
|
+
* Uuid is the uuid of the token which should be revoked
|
|
52
|
+
*
|
|
53
|
+
* @generated from field: string uuid = 1;
|
|
54
|
+
*/
|
|
55
|
+
uuid: string;
|
|
56
|
+
/**
|
|
57
|
+
* User is the id of the user for which the token should be revoked
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: string user = 2;
|
|
60
|
+
*/
|
|
61
|
+
user: string;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Describes the message metalstack.admin.v2.TokenServiceRevokeRequest.
|
|
65
|
+
* Use `create(TokenServiceRevokeRequestSchema)` to create a new message.
|
|
66
|
+
*/
|
|
67
|
+
export declare const TokenServiceRevokeRequestSchema: GenMessage<TokenServiceRevokeRequest>;
|
|
68
|
+
/**
|
|
69
|
+
* TokenServiceRevokeResponse is the response payload for the token revoke request
|
|
70
|
+
*
|
|
71
|
+
* @generated from message metalstack.admin.v2.TokenServiceRevokeResponse
|
|
72
|
+
*/
|
|
73
|
+
export type TokenServiceRevokeResponse = Message<"metalstack.admin.v2.TokenServiceRevokeResponse"> & {};
|
|
74
|
+
/**
|
|
75
|
+
* Describes the message metalstack.admin.v2.TokenServiceRevokeResponse.
|
|
76
|
+
* Use `create(TokenServiceRevokeResponseSchema)` to create a new message.
|
|
77
|
+
*/
|
|
78
|
+
export declare const TokenServiceRevokeResponseSchema: GenMessage<TokenServiceRevokeResponse>;
|
|
79
|
+
/**
|
|
80
|
+
* TokenServiceCreateRequest is the request payload to create a token
|
|
81
|
+
*
|
|
82
|
+
* @generated from message metalstack.admin.v2.TokenServiceCreateRequest
|
|
83
|
+
*/
|
|
84
|
+
export type TokenServiceCreateRequest = Message<"metalstack.admin.v2.TokenServiceCreateRequest"> & {
|
|
85
|
+
/**
|
|
86
|
+
* User this token should be created for, if omitted, user is derived from caller
|
|
87
|
+
*
|
|
88
|
+
* @generated from field: optional string user = 1;
|
|
89
|
+
*/
|
|
90
|
+
user?: string;
|
|
91
|
+
/**
|
|
92
|
+
* TokenCreateRequest which should be created
|
|
93
|
+
*
|
|
94
|
+
* @generated from field: metalstack.api.v2.TokenServiceCreateRequest token_create_request = 2;
|
|
95
|
+
*/
|
|
96
|
+
tokenCreateRequest?: TokenServiceCreateRequest$1;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Describes the message metalstack.admin.v2.TokenServiceCreateRequest.
|
|
100
|
+
* Use `create(TokenServiceCreateRequestSchema)` to create a new message.
|
|
101
|
+
*/
|
|
102
|
+
export declare const TokenServiceCreateRequestSchema: GenMessage<TokenServiceCreateRequest>;
|
|
103
|
+
/**
|
|
104
|
+
* TokenServiceCreateResponse is the response payload of a token create request
|
|
105
|
+
*
|
|
106
|
+
* @generated from message metalstack.admin.v2.TokenServiceCreateResponse
|
|
107
|
+
*/
|
|
108
|
+
export type TokenServiceCreateResponse = Message<"metalstack.admin.v2.TokenServiceCreateResponse"> & {
|
|
109
|
+
/**
|
|
110
|
+
* Token which was created
|
|
111
|
+
*
|
|
112
|
+
* @generated from field: metalstack.api.v2.Token token = 1;
|
|
113
|
+
*/
|
|
114
|
+
token?: Token;
|
|
115
|
+
/**
|
|
116
|
+
* Secret is the body if the jwt token, should be used in api requests as bearer token
|
|
117
|
+
*
|
|
118
|
+
* @generated from field: string secret = 2;
|
|
119
|
+
*/
|
|
120
|
+
secret: string;
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* Describes the message metalstack.admin.v2.TokenServiceCreateResponse.
|
|
124
|
+
* Use `create(TokenServiceCreateResponseSchema)` to create a new message.
|
|
125
|
+
*/
|
|
126
|
+
export declare const TokenServiceCreateResponseSchema: GenMessage<TokenServiceCreateResponse>;
|
|
127
|
+
/**
|
|
128
|
+
* TokenService serves token related functions
|
|
129
|
+
*
|
|
130
|
+
* @generated from service metalstack.admin.v2.TokenService
|
|
131
|
+
*/
|
|
132
|
+
export declare const TokenService: GenService<{
|
|
133
|
+
/**
|
|
134
|
+
* List tokens
|
|
135
|
+
*
|
|
136
|
+
* @generated from rpc metalstack.admin.v2.TokenService.List
|
|
137
|
+
*/
|
|
138
|
+
list: {
|
|
139
|
+
methodKind: "unary";
|
|
140
|
+
input: typeof TokenServiceListRequestSchema;
|
|
141
|
+
output: typeof TokenServiceListResponseSchema;
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* Revoke a token
|
|
145
|
+
*
|
|
146
|
+
* @generated from rpc metalstack.admin.v2.TokenService.Revoke
|
|
147
|
+
*/
|
|
148
|
+
revoke: {
|
|
149
|
+
methodKind: "unary";
|
|
150
|
+
input: typeof TokenServiceRevokeRequestSchema;
|
|
151
|
+
output: typeof TokenServiceRevokeResponseSchema;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* Create a token to authenticate against the platform, the secret will be only visible in the response.
|
|
155
|
+
* This service is suitable to create tokens for other users instead of deriving users from tokens directly.
|
|
156
|
+
*
|
|
157
|
+
* @generated from rpc metalstack.admin.v2.TokenService.Create
|
|
158
|
+
*/
|
|
159
|
+
create: {
|
|
160
|
+
methodKind: "unary";
|
|
161
|
+
input: typeof TokenServiceCreateRequestSchema;
|
|
162
|
+
output: typeof TokenServiceCreateResponseSchema;
|
|
163
|
+
};
|
|
164
|
+
}>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.10.2 with parameter "target=ts"
|
|
2
|
+
// @generated from file metalstack/admin/v2/token.proto (package metalstack.admin.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 "../../api/v2/common_pb";
|
|
7
|
+
import { file_metalstack_api_v2_token } from "../../api/v2/token_pb";
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file metalstack/admin/v2/token.proto.
|
|
10
|
+
*/
|
|
11
|
+
export const file_metalstack_admin_v2_token = /*@__PURE__*/ fileDesc("Ch9tZXRhbHN0YWNrL2FkbWluL3YyL3Rva2VuLnByb3RvEhNtZXRhbHN0YWNrLmFkbWluLnYyIjUKF1Rva2VuU2VydmljZUxpc3RSZXF1ZXN0EhEKBHVzZXIYASABKAlIAIgBAUIHCgVfdXNlciJEChhUb2tlblNlcnZpY2VMaXN0UmVzcG9uc2USKAoGdG9rZW5zGAEgAygLMhgubWV0YWxzdGFjay5hcGkudjIuVG9rZW4iTQoZVG9rZW5TZXJ2aWNlUmV2b2tlUmVxdWVzdBIWCgR1dWlkGAEgASgJQgi6SAVyA7ABARIYCgR1c2VyGAIgASgJQgq6SAdyBRACGIAEIhwKGlRva2VuU2VydmljZVJldm9rZVJlc3BvbnNlIo8BChlUb2tlblNlcnZpY2VDcmVhdGVSZXF1ZXN0Eh0KBHVzZXIYASABKAlCCrpIB3IFEAIYgARIAIgBARJKChR0b2tlbl9jcmVhdGVfcmVxdWVzdBgCIAEoCzIsLm1ldGFsc3RhY2suYXBpLnYyLlRva2VuU2VydmljZUNyZWF0ZVJlcXVlc3RCBwoFX3VzZXIiVQoaVG9rZW5TZXJ2aWNlQ3JlYXRlUmVzcG9uc2USJwoFdG9rZW4YASABKAsyGC5tZXRhbHN0YWNrLmFwaS52Mi5Ub2tlbhIOCgZzZWNyZXQYAiABKAky3wIKDFRva2VuU2VydmljZRJrCgRMaXN0EiwubWV0YWxzdGFjay5hZG1pbi52Mi5Ub2tlblNlcnZpY2VMaXN0UmVxdWVzdBotLm1ldGFsc3RhY2suYWRtaW4udjIuVG9rZW5TZXJ2aWNlTGlzdFJlc3BvbnNlIgbS8xgCAQIScAoGUmV2b2tlEi4ubWV0YWxzdGFjay5hZG1pbi52Mi5Ub2tlblNlcnZpY2VSZXZva2VSZXF1ZXN0Gi8ubWV0YWxzdGFjay5hZG1pbi52Mi5Ub2tlblNlcnZpY2VSZXZva2VSZXNwb25zZSIF0vMYAQEScAoGQ3JlYXRlEi4ubWV0YWxzdGFjay5hZG1pbi52Mi5Ub2tlblNlcnZpY2VDcmVhdGVSZXF1ZXN0Gi8ubWV0YWxzdGFjay5hZG1pbi52Mi5Ub2tlblNlcnZpY2VDcmVhdGVSZXNwb25zZSIF0vMYAQFCzgEKF2NvbS5tZXRhbHN0YWNrLmFkbWluLnYyQgpUb2tlblByb3RvUAFaOWdpdGh1Yi5jb20vbWV0YWwtc3RhY2svYXBpL2dvL21ldGFsc3RhY2svYWRtaW4vdjI7YWRtaW52MqICA01BWKoCE01ldGFsc3RhY2suQWRtaW4uVjLKAhNNZXRhbHN0YWNrXEFkbWluXFYy4gIfTWV0YWxzdGFja1xBZG1pblxWMlxHUEJNZXRhZGF0YeoCFU1ldGFsc3RhY2s6OkFkbWluOjpWMmIGcHJvdG8z", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_token]);
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message metalstack.admin.v2.TokenServiceListRequest.
|
|
14
|
+
* Use `create(TokenServiceListRequestSchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
export const TokenServiceListRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_token, 0);
|
|
17
|
+
/**
|
|
18
|
+
* Describes the message metalstack.admin.v2.TokenServiceListResponse.
|
|
19
|
+
* Use `create(TokenServiceListResponseSchema)` to create a new message.
|
|
20
|
+
*/
|
|
21
|
+
export const TokenServiceListResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_token, 1);
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message metalstack.admin.v2.TokenServiceRevokeRequest.
|
|
24
|
+
* Use `create(TokenServiceRevokeRequestSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export const TokenServiceRevokeRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_token, 2);
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message metalstack.admin.v2.TokenServiceRevokeResponse.
|
|
29
|
+
* Use `create(TokenServiceRevokeResponseSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export const TokenServiceRevokeResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_token, 3);
|
|
32
|
+
/**
|
|
33
|
+
* Describes the message metalstack.admin.v2.TokenServiceCreateRequest.
|
|
34
|
+
* Use `create(TokenServiceCreateRequestSchema)` to create a new message.
|
|
35
|
+
*/
|
|
36
|
+
export const TokenServiceCreateRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_token, 4);
|
|
37
|
+
/**
|
|
38
|
+
* Describes the message metalstack.admin.v2.TokenServiceCreateResponse.
|
|
39
|
+
* Use `create(TokenServiceCreateResponseSchema)` to create a new message.
|
|
40
|
+
*/
|
|
41
|
+
export const TokenServiceCreateResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_token, 5);
|
|
42
|
+
/**
|
|
43
|
+
* TokenService serves token related functions
|
|
44
|
+
*
|
|
45
|
+
* @generated from service metalstack.admin.v2.TokenService
|
|
46
|
+
*/
|
|
47
|
+
export const TokenService = /*@__PURE__*/ serviceDesc(file_metalstack_admin_v2_token, 0);
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file metalstack/admin/v2/token.proto (package metalstack.admin.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 { file_metalstack_api_v2_common } from "../../api/v2/common_pb";
|
|
9
|
+
import type { Token, TokenServiceCreateRequest as TokenServiceCreateRequest$1 } from "../../api/v2/token_pb";
|
|
10
|
+
import { file_metalstack_api_v2_token } from "../../api/v2/token_pb";
|
|
11
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Describes the file metalstack/admin/v2/token.proto.
|
|
15
|
+
*/
|
|
16
|
+
export const file_metalstack_admin_v2_token: GenFile = /*@__PURE__*/
|
|
17
|
+
fileDesc("Ch9tZXRhbHN0YWNrL2FkbWluL3YyL3Rva2VuLnByb3RvEhNtZXRhbHN0YWNrLmFkbWluLnYyIjUKF1Rva2VuU2VydmljZUxpc3RSZXF1ZXN0EhEKBHVzZXIYASABKAlIAIgBAUIHCgVfdXNlciJEChhUb2tlblNlcnZpY2VMaXN0UmVzcG9uc2USKAoGdG9rZW5zGAEgAygLMhgubWV0YWxzdGFjay5hcGkudjIuVG9rZW4iTQoZVG9rZW5TZXJ2aWNlUmV2b2tlUmVxdWVzdBIWCgR1dWlkGAEgASgJQgi6SAVyA7ABARIYCgR1c2VyGAIgASgJQgq6SAdyBRACGIAEIhwKGlRva2VuU2VydmljZVJldm9rZVJlc3BvbnNlIo8BChlUb2tlblNlcnZpY2VDcmVhdGVSZXF1ZXN0Eh0KBHVzZXIYASABKAlCCrpIB3IFEAIYgARIAIgBARJKChR0b2tlbl9jcmVhdGVfcmVxdWVzdBgCIAEoCzIsLm1ldGFsc3RhY2suYXBpLnYyLlRva2VuU2VydmljZUNyZWF0ZVJlcXVlc3RCBwoFX3VzZXIiVQoaVG9rZW5TZXJ2aWNlQ3JlYXRlUmVzcG9uc2USJwoFdG9rZW4YASABKAsyGC5tZXRhbHN0YWNrLmFwaS52Mi5Ub2tlbhIOCgZzZWNyZXQYAiABKAky3wIKDFRva2VuU2VydmljZRJrCgRMaXN0EiwubWV0YWxzdGFjay5hZG1pbi52Mi5Ub2tlblNlcnZpY2VMaXN0UmVxdWVzdBotLm1ldGFsc3RhY2suYWRtaW4udjIuVG9rZW5TZXJ2aWNlTGlzdFJlc3BvbnNlIgbS8xgCAQIScAoGUmV2b2tlEi4ubWV0YWxzdGFjay5hZG1pbi52Mi5Ub2tlblNlcnZpY2VSZXZva2VSZXF1ZXN0Gi8ubWV0YWxzdGFjay5hZG1pbi52Mi5Ub2tlblNlcnZpY2VSZXZva2VSZXNwb25zZSIF0vMYAQEScAoGQ3JlYXRlEi4ubWV0YWxzdGFjay5hZG1pbi52Mi5Ub2tlblNlcnZpY2VDcmVhdGVSZXF1ZXN0Gi8ubWV0YWxzdGFjay5hZG1pbi52Mi5Ub2tlblNlcnZpY2VDcmVhdGVSZXNwb25zZSIF0vMYAQFCzgEKF2NvbS5tZXRhbHN0YWNrLmFkbWluLnYyQgpUb2tlblByb3RvUAFaOWdpdGh1Yi5jb20vbWV0YWwtc3RhY2svYXBpL2dvL21ldGFsc3RhY2svYWRtaW4vdjI7YWRtaW52MqICA01BWKoCE01ldGFsc3RhY2suQWRtaW4uVjLKAhNNZXRhbHN0YWNrXEFkbWluXFYy4gIfTWV0YWxzdGFja1xBZG1pblxWMlxHUEJNZXRhZGF0YeoCFU1ldGFsc3RhY2s6OkFkbWluOjpWMmIGcHJvdG8z", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_token]);
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* TokenServiceListRequest is the request payload for the token list request
|
|
21
|
+
*
|
|
22
|
+
* @generated from message metalstack.admin.v2.TokenServiceListRequest
|
|
23
|
+
*/
|
|
24
|
+
export type TokenServiceListRequest = Message<"metalstack.admin.v2.TokenServiceListRequest"> & {
|
|
25
|
+
/**
|
|
26
|
+
* User is the id of the user for which the tokens should be listed
|
|
27
|
+
*
|
|
28
|
+
* @generated from field: optional string user = 1;
|
|
29
|
+
*/
|
|
30
|
+
user?: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Describes the message metalstack.admin.v2.TokenServiceListRequest.
|
|
35
|
+
* Use `create(TokenServiceListRequestSchema)` to create a new message.
|
|
36
|
+
*/
|
|
37
|
+
export const TokenServiceListRequestSchema: GenMessage<TokenServiceListRequest> = /*@__PURE__*/
|
|
38
|
+
messageDesc(file_metalstack_admin_v2_token, 0);
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* TokenServiceListResponse is the response payload for the token list request
|
|
42
|
+
*
|
|
43
|
+
* @generated from message metalstack.admin.v2.TokenServiceListResponse
|
|
44
|
+
*/
|
|
45
|
+
export type TokenServiceListResponse = Message<"metalstack.admin.v2.TokenServiceListResponse"> & {
|
|
46
|
+
/**
|
|
47
|
+
* Tokens is the list of tokens
|
|
48
|
+
*
|
|
49
|
+
* @generated from field: repeated metalstack.api.v2.Token tokens = 1;
|
|
50
|
+
*/
|
|
51
|
+
tokens: Token[];
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Describes the message metalstack.admin.v2.TokenServiceListResponse.
|
|
56
|
+
* Use `create(TokenServiceListResponseSchema)` to create a new message.
|
|
57
|
+
*/
|
|
58
|
+
export const TokenServiceListResponseSchema: GenMessage<TokenServiceListResponse> = /*@__PURE__*/
|
|
59
|
+
messageDesc(file_metalstack_admin_v2_token, 1);
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* TokenServiceRevokeRequest is the request payload for the token revoke request
|
|
63
|
+
*
|
|
64
|
+
* @generated from message metalstack.admin.v2.TokenServiceRevokeRequest
|
|
65
|
+
*/
|
|
66
|
+
export type TokenServiceRevokeRequest = Message<"metalstack.admin.v2.TokenServiceRevokeRequest"> & {
|
|
67
|
+
/**
|
|
68
|
+
* Uuid is the uuid of the token which should be revoked
|
|
69
|
+
*
|
|
70
|
+
* @generated from field: string uuid = 1;
|
|
71
|
+
*/
|
|
72
|
+
uuid: string;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* User is the id of the user for which the token should be revoked
|
|
76
|
+
*
|
|
77
|
+
* @generated from field: string user = 2;
|
|
78
|
+
*/
|
|
79
|
+
user: string;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Describes the message metalstack.admin.v2.TokenServiceRevokeRequest.
|
|
84
|
+
* Use `create(TokenServiceRevokeRequestSchema)` to create a new message.
|
|
85
|
+
*/
|
|
86
|
+
export const TokenServiceRevokeRequestSchema: GenMessage<TokenServiceRevokeRequest> = /*@__PURE__*/
|
|
87
|
+
messageDesc(file_metalstack_admin_v2_token, 2);
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* TokenServiceRevokeResponse is the response payload for the token revoke request
|
|
91
|
+
*
|
|
92
|
+
* @generated from message metalstack.admin.v2.TokenServiceRevokeResponse
|
|
93
|
+
*/
|
|
94
|
+
export type TokenServiceRevokeResponse = Message<"metalstack.admin.v2.TokenServiceRevokeResponse"> & {
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Describes the message metalstack.admin.v2.TokenServiceRevokeResponse.
|
|
99
|
+
* Use `create(TokenServiceRevokeResponseSchema)` to create a new message.
|
|
100
|
+
*/
|
|
101
|
+
export const TokenServiceRevokeResponseSchema: GenMessage<TokenServiceRevokeResponse> = /*@__PURE__*/
|
|
102
|
+
messageDesc(file_metalstack_admin_v2_token, 3);
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* TokenServiceCreateRequest is the request payload to create a token
|
|
106
|
+
*
|
|
107
|
+
* @generated from message metalstack.admin.v2.TokenServiceCreateRequest
|
|
108
|
+
*/
|
|
109
|
+
export type TokenServiceCreateRequest = Message<"metalstack.admin.v2.TokenServiceCreateRequest"> & {
|
|
110
|
+
/**
|
|
111
|
+
* User this token should be created for, if omitted, user is derived from caller
|
|
112
|
+
*
|
|
113
|
+
* @generated from field: optional string user = 1;
|
|
114
|
+
*/
|
|
115
|
+
user?: string;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* TokenCreateRequest which should be created
|
|
119
|
+
*
|
|
120
|
+
* @generated from field: metalstack.api.v2.TokenServiceCreateRequest token_create_request = 2;
|
|
121
|
+
*/
|
|
122
|
+
tokenCreateRequest?: TokenServiceCreateRequest$1;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Describes the message metalstack.admin.v2.TokenServiceCreateRequest.
|
|
127
|
+
* Use `create(TokenServiceCreateRequestSchema)` to create a new message.
|
|
128
|
+
*/
|
|
129
|
+
export const TokenServiceCreateRequestSchema: GenMessage<TokenServiceCreateRequest> = /*@__PURE__*/
|
|
130
|
+
messageDesc(file_metalstack_admin_v2_token, 4);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* TokenServiceCreateResponse is the response payload of a token create request
|
|
134
|
+
*
|
|
135
|
+
* @generated from message metalstack.admin.v2.TokenServiceCreateResponse
|
|
136
|
+
*/
|
|
137
|
+
export type TokenServiceCreateResponse = Message<"metalstack.admin.v2.TokenServiceCreateResponse"> & {
|
|
138
|
+
/**
|
|
139
|
+
* Token which was created
|
|
140
|
+
*
|
|
141
|
+
* @generated from field: metalstack.api.v2.Token token = 1;
|
|
142
|
+
*/
|
|
143
|
+
token?: Token;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Secret is the body if the jwt token, should be used in api requests as bearer token
|
|
147
|
+
*
|
|
148
|
+
* @generated from field: string secret = 2;
|
|
149
|
+
*/
|
|
150
|
+
secret: string;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Describes the message metalstack.admin.v2.TokenServiceCreateResponse.
|
|
155
|
+
* Use `create(TokenServiceCreateResponseSchema)` to create a new message.
|
|
156
|
+
*/
|
|
157
|
+
export const TokenServiceCreateResponseSchema: GenMessage<TokenServiceCreateResponse> = /*@__PURE__*/
|
|
158
|
+
messageDesc(file_metalstack_admin_v2_token, 5);
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* TokenService serves token related functions
|
|
162
|
+
*
|
|
163
|
+
* @generated from service metalstack.admin.v2.TokenService
|
|
164
|
+
*/
|
|
165
|
+
export const TokenService: GenService<{
|
|
166
|
+
/**
|
|
167
|
+
* List tokens
|
|
168
|
+
*
|
|
169
|
+
* @generated from rpc metalstack.admin.v2.TokenService.List
|
|
170
|
+
*/
|
|
171
|
+
list: {
|
|
172
|
+
methodKind: "unary";
|
|
173
|
+
input: typeof TokenServiceListRequestSchema;
|
|
174
|
+
output: typeof TokenServiceListResponseSchema;
|
|
175
|
+
},
|
|
176
|
+
/**
|
|
177
|
+
* Revoke a token
|
|
178
|
+
*
|
|
179
|
+
* @generated from rpc metalstack.admin.v2.TokenService.Revoke
|
|
180
|
+
*/
|
|
181
|
+
revoke: {
|
|
182
|
+
methodKind: "unary";
|
|
183
|
+
input: typeof TokenServiceRevokeRequestSchema;
|
|
184
|
+
output: typeof TokenServiceRevokeResponseSchema;
|
|
185
|
+
},
|
|
186
|
+
/**
|
|
187
|
+
* Create a token to authenticate against the platform, the secret will be only visible in the response.
|
|
188
|
+
* This service is suitable to create tokens for other users instead of deriving users from tokens directly.
|
|
189
|
+
*
|
|
190
|
+
* @generated from rpc metalstack.admin.v2.TokenService.Create
|
|
191
|
+
*/
|
|
192
|
+
create: {
|
|
193
|
+
methodKind: "unary";
|
|
194
|
+
input: typeof TokenServiceCreateRequestSchema;
|
|
195
|
+
output: typeof TokenServiceCreateResponseSchema;
|
|
196
|
+
},
|
|
197
|
+
}> = /*@__PURE__*/
|
|
198
|
+
serviceDesc(file_metalstack_admin_v2_token, 0);
|
|
199
|
+
|