@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,540 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Duration, Timestamp } from "@bufbuild/protobuf/wkt";
3
+ import type { AdminRole, InfraRole, Labels, Meta, ProjectRole, TenantRole, UpdateLabels, UpdateMeta } from "./common_pb";
4
+ import type { Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file metalstack/api/v2/token.proto.
7
+ */
8
+ export declare const file_metalstack_api_v2_token: GenFile;
9
+ /**
10
+ * Token generates a jwt authentication token to access the api
11
+ *
12
+ * There are two different types of tokens, api- and user- tokens
13
+ *
14
+ * A user token is used to authenticate end user requests for example from a cli.
15
+ * The configured roles in a user token are expanded in the api server
16
+ * based on the memberships in other projects and tenants based on the role granted there.
17
+ * User tokens will never contain permissions.
18
+ * Permissions are always derived from the tenant and project roles and memberships.
19
+ *
20
+ * The api token should be used to authenticate services.
21
+ * In contrast to a user token, the api token permissions and roles apply as configured during the token create process.
22
+ *
23
+ * @generated from message metalstack.api.v2.Token
24
+ */
25
+ export type Token = Message<"metalstack.api.v2.Token"> & {
26
+ /**
27
+ * Uuid of the jwt token, used to reference it by revoke
28
+ *
29
+ * @generated from field: string uuid = 1;
30
+ */
31
+ uuid: string;
32
+ /**
33
+ * User who created this token
34
+ *
35
+ * @generated from field: string user = 2;
36
+ */
37
+ user: string;
38
+ /**
39
+ * Meta for this token
40
+ *
41
+ * @generated from field: metalstack.api.v2.Meta meta = 3;
42
+ */
43
+ meta?: Meta;
44
+ /**
45
+ * Description is a user given description of this token.
46
+ *
47
+ * @generated from field: string description = 4;
48
+ */
49
+ description: string;
50
+ /**
51
+ * Permissions is a list of service methods this token can be used for
52
+ *
53
+ * @generated from field: repeated metalstack.api.v2.MethodPermission permissions = 5;
54
+ */
55
+ permissions: MethodPermission[];
56
+ /**
57
+ * Expires gives the date in the future after which this token can not be used anymore
58
+ *
59
+ * @generated from field: google.protobuf.Timestamp expires = 6;
60
+ */
61
+ expires?: Timestamp;
62
+ /**
63
+ * IssuedAt gives the date when this token was created
64
+ *
65
+ * @generated from field: google.protobuf.Timestamp issued_at = 7;
66
+ */
67
+ issuedAt?: Timestamp;
68
+ /**
69
+ * TokenType describes the type of this token
70
+ *
71
+ * @generated from field: metalstack.api.v2.TokenType token_type = 8;
72
+ */
73
+ tokenType: TokenType;
74
+ /**
75
+ * ProjectRoles associates a project id with the corresponding role of the token owner
76
+ *
77
+ * @generated from field: map<string, metalstack.api.v2.ProjectRole> project_roles = 9;
78
+ */
79
+ projectRoles: {
80
+ [key: string]: ProjectRole;
81
+ };
82
+ /**
83
+ * TenantRoles associates a tenant id with the corresponding role of the token owner
84
+ *
85
+ * @generated from field: map<string, metalstack.api.v2.TenantRole> tenant_roles = 10;
86
+ */
87
+ tenantRoles: {
88
+ [key: string]: TenantRole;
89
+ };
90
+ /**
91
+ * AdminRole defines the admin role of the token owner
92
+ *
93
+ * @generated from field: optional metalstack.api.v2.AdminRole admin_role = 11;
94
+ */
95
+ adminRole?: AdminRole;
96
+ /**
97
+ * InfraRole defines the infrastructure role of the token owner
98
+ *
99
+ * @generated from field: optional metalstack.api.v2.InfraRole infra_role = 12;
100
+ */
101
+ infraRole?: InfraRole;
102
+ };
103
+ /**
104
+ * Describes the message metalstack.api.v2.Token.
105
+ * Use `create(TokenSchema)` to create a new message.
106
+ */
107
+ export declare const TokenSchema: GenMessage<Token>;
108
+ /**
109
+ * TokenServiceCreateRequest is the request payload to create a token
110
+ *
111
+ * @generated from message metalstack.api.v2.TokenServiceCreateRequest
112
+ */
113
+ export type TokenServiceCreateRequest = Message<"metalstack.api.v2.TokenServiceCreateRequest"> & {
114
+ /**
115
+ * Description of the token
116
+ *
117
+ * @generated from field: string description = 1;
118
+ */
119
+ description: string;
120
+ /**
121
+ * Permissions is a list of service methods this token can be used for
122
+ *
123
+ * @generated from field: repeated metalstack.api.v2.MethodPermission permissions = 2;
124
+ */
125
+ permissions: MethodPermission[];
126
+ /**
127
+ * Expires gives the duration since now, after which this token can not be used anymore
128
+ *
129
+ * @generated from field: google.protobuf.Duration expires = 4;
130
+ */
131
+ expires?: Duration;
132
+ /**
133
+ * ProjectRoles associates a project id with the corresponding role of the token owner
134
+ *
135
+ * @generated from field: map<string, metalstack.api.v2.ProjectRole> project_roles = 5;
136
+ */
137
+ projectRoles: {
138
+ [key: string]: ProjectRole;
139
+ };
140
+ /**
141
+ * TenantRoles associates a tenant id with the corresponding role of the token owner
142
+ *
143
+ * @generated from field: map<string, metalstack.api.v2.TenantRole> tenant_roles = 6;
144
+ */
145
+ tenantRoles: {
146
+ [key: string]: TenantRole;
147
+ };
148
+ /**
149
+ * AdminRole defines the admin role of the token owner
150
+ *
151
+ * @generated from field: optional metalstack.api.v2.AdminRole admin_role = 7;
152
+ */
153
+ adminRole?: AdminRole;
154
+ /**
155
+ * InfraRole defines the infrastructure role of the token owner
156
+ *
157
+ * @generated from field: optional metalstack.api.v2.InfraRole infra_role = 8;
158
+ */
159
+ infraRole?: InfraRole;
160
+ /**
161
+ * Labels on this token
162
+ *
163
+ * @generated from field: metalstack.api.v2.Labels labels = 9;
164
+ */
165
+ labels?: Labels;
166
+ };
167
+ /**
168
+ * Describes the message metalstack.api.v2.TokenServiceCreateRequest.
169
+ * Use `create(TokenServiceCreateRequestSchema)` to create a new message.
170
+ */
171
+ export declare const TokenServiceCreateRequestSchema: GenMessage<TokenServiceCreateRequest>;
172
+ /**
173
+ * MethodPermission is a mapping from a subject/project to a service method
174
+ *
175
+ * @generated from message metalstack.api.v2.MethodPermission
176
+ */
177
+ export type MethodPermission = Message<"metalstack.api.v2.MethodPermission"> & {
178
+ /**
179
+ * Subject maybe either the project or the tenant
180
+ * for which the methods should be allowed
181
+ *
182
+ * asterisk (*) can be specified to match any subject
183
+ * empty string ("") can be specified for requests that do not require a subject, e.g. partition list
184
+ * otherwise either a projectid or a tenant login should be specified
185
+ *
186
+ * @generated from field: string subject = 1;
187
+ */
188
+ subject: string;
189
+ /**
190
+ * Methods which should be accessible
191
+ *
192
+ * @generated from field: repeated string methods = 2;
193
+ */
194
+ methods: string[];
195
+ };
196
+ /**
197
+ * Describes the message metalstack.api.v2.MethodPermission.
198
+ * Use `create(MethodPermissionSchema)` to create a new message.
199
+ */
200
+ export declare const MethodPermissionSchema: GenMessage<MethodPermission>;
201
+ /**
202
+ * TokenServiceCreateResponse is the response payload of a token create request
203
+ *
204
+ * @generated from message metalstack.api.v2.TokenServiceCreateResponse
205
+ */
206
+ export type TokenServiceCreateResponse = Message<"metalstack.api.v2.TokenServiceCreateResponse"> & {
207
+ /**
208
+ * Token which was created
209
+ *
210
+ * @generated from field: metalstack.api.v2.Token token = 1;
211
+ */
212
+ token?: Token;
213
+ /**
214
+ * Secret is the body if the jwt token, should be used in api requests as bearer token
215
+ *
216
+ * @generated from field: string secret = 2;
217
+ */
218
+ secret: string;
219
+ };
220
+ /**
221
+ * Describes the message metalstack.api.v2.TokenServiceCreateResponse.
222
+ * Use `create(TokenServiceCreateResponseSchema)` to create a new message.
223
+ */
224
+ export declare const TokenServiceCreateResponseSchema: GenMessage<TokenServiceCreateResponse>;
225
+ /**
226
+ * TokenServiceListRequest is the request payload to list tokens
227
+ *
228
+ * @generated from message metalstack.api.v2.TokenServiceListRequest
229
+ */
230
+ export type TokenServiceListRequest = Message<"metalstack.api.v2.TokenServiceListRequest"> & {};
231
+ /**
232
+ * Describes the message metalstack.api.v2.TokenServiceListRequest.
233
+ * Use `create(TokenServiceListRequestSchema)` to create a new message.
234
+ */
235
+ export declare const TokenServiceListRequestSchema: GenMessage<TokenServiceListRequest>;
236
+ /**
237
+ * TokenServiceListResponse is the response payload of a token list request
238
+ *
239
+ * @generated from message metalstack.api.v2.TokenServiceListResponse
240
+ */
241
+ export type TokenServiceListResponse = Message<"metalstack.api.v2.TokenServiceListResponse"> & {
242
+ /**
243
+ * Tokens is a list of tokens without the secrets
244
+ *
245
+ * @generated from field: repeated metalstack.api.v2.Token tokens = 1;
246
+ */
247
+ tokens: Token[];
248
+ };
249
+ /**
250
+ * Describes the message metalstack.api.v2.TokenServiceListResponse.
251
+ * Use `create(TokenServiceListResponseSchema)` to create a new message.
252
+ */
253
+ export declare const TokenServiceListResponseSchema: GenMessage<TokenServiceListResponse>;
254
+ /**
255
+ * TokenServiceRevokeRequest is the request payload of a token revoke request
256
+ *
257
+ * @generated from message metalstack.api.v2.TokenServiceRevokeRequest
258
+ */
259
+ export type TokenServiceRevokeRequest = Message<"metalstack.api.v2.TokenServiceRevokeRequest"> & {
260
+ /**
261
+ * Uuid of the token to revoke
262
+ *
263
+ * @generated from field: string uuid = 1;
264
+ */
265
+ uuid: string;
266
+ };
267
+ /**
268
+ * Describes the message metalstack.api.v2.TokenServiceRevokeRequest.
269
+ * Use `create(TokenServiceRevokeRequestSchema)` to create a new message.
270
+ */
271
+ export declare const TokenServiceRevokeRequestSchema: GenMessage<TokenServiceRevokeRequest>;
272
+ /**
273
+ * TokenServiceRevokeResponse is the response payload of a token revoke request
274
+ *
275
+ * @generated from message metalstack.api.v2.TokenServiceRevokeResponse
276
+ */
277
+ export type TokenServiceRevokeResponse = Message<"metalstack.api.v2.TokenServiceRevokeResponse"> & {};
278
+ /**
279
+ * Describes the message metalstack.api.v2.TokenServiceRevokeResponse.
280
+ * Use `create(TokenServiceRevokeResponseSchema)` to create a new message.
281
+ */
282
+ export declare const TokenServiceRevokeResponseSchema: GenMessage<TokenServiceRevokeResponse>;
283
+ /**
284
+ * TokenServiceUpdateRequest is the request payload of a token update request
285
+ *
286
+ * @generated from message metalstack.api.v2.TokenServiceUpdateRequest
287
+ */
288
+ export type TokenServiceUpdateRequest = Message<"metalstack.api.v2.TokenServiceUpdateRequest"> & {
289
+ /**
290
+ * Uuid of the token to update
291
+ *
292
+ * @generated from field: string uuid = 1;
293
+ */
294
+ uuid: string;
295
+ /**
296
+ * UpdateMeta contains the timestamp and strategy to be used in this update request
297
+ * TokenUpdate is not guarded with optlock in the backend
298
+ *
299
+ * @generated from field: metalstack.api.v2.UpdateMeta update_meta = 2;
300
+ */
301
+ updateMeta?: UpdateMeta;
302
+ /**
303
+ * Description is a user given description of this token.
304
+ *
305
+ * @generated from field: optional string description = 3;
306
+ */
307
+ description?: string;
308
+ /**
309
+ * Permissions is a list of service methods this token can be used for
310
+ *
311
+ * @generated from field: repeated metalstack.api.v2.MethodPermission permissions = 4;
312
+ */
313
+ permissions: MethodPermission[];
314
+ /**
315
+ * ProjectRoles associates a project id with the corresponding role of the token owner
316
+ *
317
+ * @generated from field: map<string, metalstack.api.v2.ProjectRole> project_roles = 5;
318
+ */
319
+ projectRoles: {
320
+ [key: string]: ProjectRole;
321
+ };
322
+ /**
323
+ * TenantRoles associates a tenant id with the corresponding role of the token owner
324
+ *
325
+ * @generated from field: map<string, metalstack.api.v2.TenantRole> tenant_roles = 6;
326
+ */
327
+ tenantRoles: {
328
+ [key: string]: TenantRole;
329
+ };
330
+ /**
331
+ * AdminRole defines the admin role of the token owner
332
+ *
333
+ * @generated from field: optional metalstack.api.v2.AdminRole admin_role = 7;
334
+ */
335
+ adminRole?: AdminRole;
336
+ /**
337
+ * InfraRole defines the infrastructure role of the token owner
338
+ *
339
+ * @generated from field: optional metalstack.api.v2.InfraRole infra_role = 8;
340
+ */
341
+ infraRole?: InfraRole;
342
+ /**
343
+ * Labels on this token
344
+ *
345
+ * @generated from field: metalstack.api.v2.UpdateLabels labels = 9;
346
+ */
347
+ labels?: UpdateLabels;
348
+ };
349
+ /**
350
+ * Describes the message metalstack.api.v2.TokenServiceUpdateRequest.
351
+ * Use `create(TokenServiceUpdateRequestSchema)` to create a new message.
352
+ */
353
+ export declare const TokenServiceUpdateRequestSchema: GenMessage<TokenServiceUpdateRequest>;
354
+ /**
355
+ * TokenServiceUpdateResponse is the response payload of a token update request
356
+ *
357
+ * @generated from message metalstack.api.v2.TokenServiceUpdateResponse
358
+ */
359
+ export type TokenServiceUpdateResponse = Message<"metalstack.api.v2.TokenServiceUpdateResponse"> & {
360
+ /**
361
+ * Token is the updated token
362
+ *
363
+ * @generated from field: metalstack.api.v2.Token token = 1;
364
+ */
365
+ token?: Token;
366
+ };
367
+ /**
368
+ * Describes the message metalstack.api.v2.TokenServiceUpdateResponse.
369
+ * Use `create(TokenServiceUpdateResponseSchema)` to create a new message.
370
+ */
371
+ export declare const TokenServiceUpdateResponseSchema: GenMessage<TokenServiceUpdateResponse>;
372
+ /**
373
+ * TokenServiceGetRequest is the request payload of a token get request
374
+ *
375
+ * @generated from message metalstack.api.v2.TokenServiceGetRequest
376
+ */
377
+ export type TokenServiceGetRequest = Message<"metalstack.api.v2.TokenServiceGetRequest"> & {
378
+ /**
379
+ * Uuid of the token to get
380
+ *
381
+ * @generated from field: string uuid = 1;
382
+ */
383
+ uuid: string;
384
+ };
385
+ /**
386
+ * Describes the message metalstack.api.v2.TokenServiceGetRequest.
387
+ * Use `create(TokenServiceGetRequestSchema)` to create a new message.
388
+ */
389
+ export declare const TokenServiceGetRequestSchema: GenMessage<TokenServiceGetRequest>;
390
+ /**
391
+ * TokenServiceGetResponse is the response payload of a token get request
392
+ *
393
+ * @generated from message metalstack.api.v2.TokenServiceGetResponse
394
+ */
395
+ export type TokenServiceGetResponse = Message<"metalstack.api.v2.TokenServiceGetResponse"> & {
396
+ /**
397
+ * Token is the token
398
+ *
399
+ * @generated from field: metalstack.api.v2.Token token = 1;
400
+ */
401
+ token?: Token;
402
+ };
403
+ /**
404
+ * Describes the message metalstack.api.v2.TokenServiceGetResponse.
405
+ * Use `create(TokenServiceGetResponseSchema)` to create a new message.
406
+ */
407
+ export declare const TokenServiceGetResponseSchema: GenMessage<TokenServiceGetResponse>;
408
+ /**
409
+ * TokenServiceRefreshRequest is the request payload of a token refresh request
410
+ * Permissions, Roles and Expiration duration and all other properties are inherited from the calling token.
411
+ * The expiration duration will be calculated from the existing token (exp - iat)
412
+ *
413
+ * @generated from message metalstack.api.v2.TokenServiceRefreshRequest
414
+ */
415
+ export type TokenServiceRefreshRequest = Message<"metalstack.api.v2.TokenServiceRefreshRequest"> & {};
416
+ /**
417
+ * Describes the message metalstack.api.v2.TokenServiceRefreshRequest.
418
+ * Use `create(TokenServiceRefreshRequestSchema)` to create a new message.
419
+ */
420
+ export declare const TokenServiceRefreshRequestSchema: GenMessage<TokenServiceRefreshRequest>;
421
+ /**
422
+ * TokenServiceRefreshResponse is the response payload of a token refresh request
423
+ *
424
+ * @generated from message metalstack.api.v2.TokenServiceRefreshResponse
425
+ */
426
+ export type TokenServiceRefreshResponse = Message<"metalstack.api.v2.TokenServiceRefreshResponse"> & {
427
+ /**
428
+ * Token which was refreshed
429
+ *
430
+ * @generated from field: metalstack.api.v2.Token token = 1;
431
+ */
432
+ token?: Token;
433
+ /**
434
+ * Secret is the body if the jwt token, should be used in api requests as bearer token
435
+ *
436
+ * @generated from field: string secret = 2;
437
+ */
438
+ secret: string;
439
+ };
440
+ /**
441
+ * Describes the message metalstack.api.v2.TokenServiceRefreshResponse.
442
+ * Use `create(TokenServiceRefreshResponseSchema)` to create a new message.
443
+ */
444
+ export declare const TokenServiceRefreshResponseSchema: GenMessage<TokenServiceRefreshResponse>;
445
+ /**
446
+ * TokenType specifies different use cases of tokens
447
+ *
448
+ * @generated from enum metalstack.api.v2.TokenType
449
+ */
450
+ export declare enum TokenType {
451
+ /**
452
+ * TOKEN_TYPE_UNSPECIFIED is not specified
453
+ *
454
+ * @generated from enum value: TOKEN_TYPE_UNSPECIFIED = 0;
455
+ */
456
+ UNSPECIFIED = 0,
457
+ /**
458
+ * TOKEN_TYPE_API is a token for api usage
459
+ *
460
+ * @generated from enum value: TOKEN_TYPE_API = 1;
461
+ */
462
+ API = 1,
463
+ /**
464
+ * TOKEN_TYPE_USER is a token to access the api with cli, a web application or other user induced actions.
465
+ *
466
+ * @generated from enum value: TOKEN_TYPE_USER = 2;
467
+ */
468
+ USER = 2
469
+ }
470
+ /**
471
+ * Describes the enum metalstack.api.v2.TokenType.
472
+ */
473
+ export declare const TokenTypeSchema: GenEnum<TokenType>;
474
+ /**
475
+ * TokenService serves token related functions
476
+ *
477
+ * @generated from service metalstack.api.v2.TokenService
478
+ */
479
+ export declare const TokenService: GenService<{
480
+ /**
481
+ * Get a token
482
+ *
483
+ * @generated from rpc metalstack.api.v2.TokenService.Get
484
+ */
485
+ get: {
486
+ methodKind: "unary";
487
+ input: typeof TokenServiceGetRequestSchema;
488
+ output: typeof TokenServiceGetResponseSchema;
489
+ };
490
+ /**
491
+ * Create a token to authenticate against the platform, the secret will be only visible in the response.
492
+ *
493
+ * @generated from rpc metalstack.api.v2.TokenService.Create
494
+ */
495
+ create: {
496
+ methodKind: "unary";
497
+ input: typeof TokenServiceCreateRequestSchema;
498
+ output: typeof TokenServiceCreateResponseSchema;
499
+ };
500
+ /**
501
+ * Update a token
502
+ *
503
+ * @generated from rpc metalstack.api.v2.TokenService.Update
504
+ */
505
+ update: {
506
+ methodKind: "unary";
507
+ input: typeof TokenServiceUpdateRequestSchema;
508
+ output: typeof TokenServiceUpdateResponseSchema;
509
+ };
510
+ /**
511
+ * List all your tokens
512
+ *
513
+ * @generated from rpc metalstack.api.v2.TokenService.List
514
+ */
515
+ list: {
516
+ methodKind: "unary";
517
+ input: typeof TokenServiceListRequestSchema;
518
+ output: typeof TokenServiceListResponseSchema;
519
+ };
520
+ /**
521
+ * Revoke a token, no further usage is possible afterwards
522
+ *
523
+ * @generated from rpc metalstack.api.v2.TokenService.Revoke
524
+ */
525
+ revoke: {
526
+ methodKind: "unary";
527
+ input: typeof TokenServiceRevokeRequestSchema;
528
+ output: typeof TokenServiceRevokeResponseSchema;
529
+ };
530
+ /**
531
+ * Refresh a token, this will create a new token with the exact same permissions as the calling token contains
532
+ *
533
+ * @generated from rpc metalstack.api.v2.TokenService.Refresh
534
+ */
535
+ refresh: {
536
+ methodKind: "unary";
537
+ input: typeof TokenServiceRefreshRequestSchema;
538
+ output: typeof TokenServiceRefreshResponseSchema;
539
+ };
540
+ }>;
@@ -0,0 +1,118 @@
1
+ // @generated by protoc-gen-es v2.10.2 with parameter "target=ts"
2
+ // @generated from file metalstack/api/v2/token.proto (package metalstack.api.v2, syntax proto3)
3
+ /* eslint-disable */
4
+ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
+ import { file_buf_validate_validate } from "../../../buf/validate/validate_pb";
6
+ import { file_google_protobuf_duration, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
7
+ import { file_metalstack_api_v2_common } from "./common_pb";
8
+ import { file_metalstack_api_v2_predefined_rules } from "./predefined_rules_pb";
9
+ /**
10
+ * Describes the file metalstack/api/v2/token.proto.
11
+ */
12
+ export const file_metalstack_api_v2_token = /*@__PURE__*/ fileDesc("Ch1tZXRhbHN0YWNrL2FwaS92Mi90b2tlbi5wcm90bxIRbWV0YWxzdGFjay5hcGkudjIizQcKBVRva2VuEhYKBHV1aWQYASABKAlCCLpIBXIDsAEBEhgKBHVzZXIYAiABKAlCCrpIB3IFEAIYgAQSJQoEbWV0YRgDIAEoCzIXLm1ldGFsc3RhY2suYXBpLnYyLk1ldGESIAoLZGVzY3JpcHRpb24YBCABKAlCC7pICHIGyLOusQIBEkMKC3Blcm1pc3Npb25zGAUgAygLMiMubWV0YWxzdGFjay5hcGkudjIuTWV0aG9kUGVybWlzc2lvbkIJukgGkgEDEPQDEisKB2V4cGlyZXMYBiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi0KCWlzc3VlZF9hdBgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASOgoKdG9rZW5fdHlwZRgIIAEoDjIcLm1ldGFsc3RhY2suYXBpLnYyL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YWxzdGFjay5hcGkudjIuVG9rZW5TZXJ2aWNlVXBkYXRlUmVxdWVzdBotLm1ldGFsc3RhY2suYXBpLnYyLlRva2VuU2VydmljZVVwZGF0ZVJlc3BvbnNlIgTY8xgDEmUKBExpc3QSKi5tZXRhbHN0YWNrLmFwaS52Mi5Ub2tlblNlcnZpY2VMaXN0UmVxdWVzdBorLm1ldGFsc3RhY2suYXBpLnYyLlRva2VuU2VydmljZUxpc3RSZXNwb25zZSIE2PMYAxJrCgZSZXZva2USLC5tZXRhbHN0YWNrLmFwaS52Mi5Ub2tlblNlcnZpY2VSZXZva2VSZXF1ZXN0Gi0ubWV0YWxzdGFjay5hcGkudjIuVG9rZW5TZXJ2aWNlUmV2b2tlUmVzcG9uc2UiBNjzGAMSbgoHUmVmcmVzaBItLm1ldGFsc3RhY2suYXBpLnYyLlRva2VuU2VydmljZVJlZnJlc2hSZXF1ZXN0Gi4ubWV0YWxzdGFjay5hcGkudjIuVG9rZW5TZXJ2aWNlUmVmcmVzaFJlc3BvbnNlIgTY8xgDQsABChVjb20ubWV0YWxzdGFjay5hcGkudjJCClRva2VuUHJvdG9QAVo1Z2l0aHViLmNvbS9tZXRhbC1zdGFjay9hcGkvZ28vbWV0YWxzdGFjay9hcGkvdjI7YXBpdjKiAgNNQViqAhFNZXRhbHN0YWNrLkFwaS5WMsoCEU1ldGFsc3RhY2tcQXBpXFYy4gIdTWV0YWxzdGFja1xBcGlcVjJcR1BCTWV0YWRhdGHqAhNNZXRhbHN0YWNrOjpBcGk6OlYyYgZwcm90bzM", [file_buf_validate_validate, file_google_protobuf_duration, file_google_protobuf_timestamp, file_metalstack_api_v2_common, file_metalstack_api_v2_predefined_rules]);
13
+ /**
14
+ * Describes the message metalstack.api.v2.Token.
15
+ * Use `create(TokenSchema)` to create a new message.
16
+ */
17
+ export const TokenSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_token, 0);
18
+ /**
19
+ * Describes the message metalstack.api.v2.TokenServiceCreateRequest.
20
+ * Use `create(TokenServiceCreateRequestSchema)` to create a new message.
21
+ */
22
+ export const TokenServiceCreateRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_token, 1);
23
+ /**
24
+ * Describes the message metalstack.api.v2.MethodPermission.
25
+ * Use `create(MethodPermissionSchema)` to create a new message.
26
+ */
27
+ export const MethodPermissionSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_token, 2);
28
+ /**
29
+ * Describes the message metalstack.api.v2.TokenServiceCreateResponse.
30
+ * Use `create(TokenServiceCreateResponseSchema)` to create a new message.
31
+ */
32
+ export const TokenServiceCreateResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_token, 3);
33
+ /**
34
+ * Describes the message metalstack.api.v2.TokenServiceListRequest.
35
+ * Use `create(TokenServiceListRequestSchema)` to create a new message.
36
+ */
37
+ export const TokenServiceListRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_token, 4);
38
+ /**
39
+ * Describes the message metalstack.api.v2.TokenServiceListResponse.
40
+ * Use `create(TokenServiceListResponseSchema)` to create a new message.
41
+ */
42
+ export const TokenServiceListResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_token, 5);
43
+ /**
44
+ * Describes the message metalstack.api.v2.TokenServiceRevokeRequest.
45
+ * Use `create(TokenServiceRevokeRequestSchema)` to create a new message.
46
+ */
47
+ export const TokenServiceRevokeRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_token, 6);
48
+ /**
49
+ * Describes the message metalstack.api.v2.TokenServiceRevokeResponse.
50
+ * Use `create(TokenServiceRevokeResponseSchema)` to create a new message.
51
+ */
52
+ export const TokenServiceRevokeResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_token, 7);
53
+ /**
54
+ * Describes the message metalstack.api.v2.TokenServiceUpdateRequest.
55
+ * Use `create(TokenServiceUpdateRequestSchema)` to create a new message.
56
+ */
57
+ export const TokenServiceUpdateRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_token, 8);
58
+ /**
59
+ * Describes the message metalstack.api.v2.TokenServiceUpdateResponse.
60
+ * Use `create(TokenServiceUpdateResponseSchema)` to create a new message.
61
+ */
62
+ export const TokenServiceUpdateResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_token, 9);
63
+ /**
64
+ * Describes the message metalstack.api.v2.TokenServiceGetRequest.
65
+ * Use `create(TokenServiceGetRequestSchema)` to create a new message.
66
+ */
67
+ export const TokenServiceGetRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_token, 10);
68
+ /**
69
+ * Describes the message metalstack.api.v2.TokenServiceGetResponse.
70
+ * Use `create(TokenServiceGetResponseSchema)` to create a new message.
71
+ */
72
+ export const TokenServiceGetResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_token, 11);
73
+ /**
74
+ * Describes the message metalstack.api.v2.TokenServiceRefreshRequest.
75
+ * Use `create(TokenServiceRefreshRequestSchema)` to create a new message.
76
+ */
77
+ export const TokenServiceRefreshRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_token, 12);
78
+ /**
79
+ * Describes the message metalstack.api.v2.TokenServiceRefreshResponse.
80
+ * Use `create(TokenServiceRefreshResponseSchema)` to create a new message.
81
+ */
82
+ export const TokenServiceRefreshResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_token, 13);
83
+ /**
84
+ * TokenType specifies different use cases of tokens
85
+ *
86
+ * @generated from enum metalstack.api.v2.TokenType
87
+ */
88
+ export var TokenType;
89
+ (function (TokenType) {
90
+ /**
91
+ * TOKEN_TYPE_UNSPECIFIED is not specified
92
+ *
93
+ * @generated from enum value: TOKEN_TYPE_UNSPECIFIED = 0;
94
+ */
95
+ TokenType[TokenType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
96
+ /**
97
+ * TOKEN_TYPE_API is a token for api usage
98
+ *
99
+ * @generated from enum value: TOKEN_TYPE_API = 1;
100
+ */
101
+ TokenType[TokenType["API"] = 1] = "API";
102
+ /**
103
+ * TOKEN_TYPE_USER is a token to access the api with cli, a web application or other user induced actions.
104
+ *
105
+ * @generated from enum value: TOKEN_TYPE_USER = 2;
106
+ */
107
+ TokenType[TokenType["USER"] = 2] = "USER";
108
+ })(TokenType || (TokenType = {}));
109
+ /**
110
+ * Describes the enum metalstack.api.v2.TokenType.
111
+ */
112
+ export const TokenTypeSchema = /*@__PURE__*/ enumDesc(file_metalstack_api_v2_token, 0);
113
+ /**
114
+ * TokenService serves token related functions
115
+ *
116
+ * @generated from service metalstack.api.v2.TokenService
117
+ */
118
+ export const TokenService = /*@__PURE__*/ serviceDesc(file_metalstack_api_v2_token, 0);