@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,864 @@
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
3
+ import type { Labels, Meta, TenantRole, UpdateLabels, UpdateMeta } from "./common_pb";
4
+ import type { Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file metalstack/api/v2/tenant.proto.
7
+ */
8
+ export declare const file_metalstack_api_v2_tenant: GenFile;
9
+ /**
10
+ * Tenant is a customer of the platform
11
+ *
12
+ * @generated from message metalstack.api.v2.Tenant
13
+ */
14
+ export type Tenant = Message<"metalstack.api.v2.Tenant"> & {
15
+ /**
16
+ * Login of the tenant
17
+ *
18
+ * @generated from field: string login = 1;
19
+ */
20
+ login: string;
21
+ /**
22
+ * Meta for this tenant
23
+ *
24
+ * @generated from field: metalstack.api.v2.Meta meta = 2;
25
+ */
26
+ meta?: Meta;
27
+ /**
28
+ * Name of the tenant
29
+ *
30
+ * @generated from field: string name = 3;
31
+ */
32
+ name: string;
33
+ /**
34
+ * Email of the tenant
35
+ *
36
+ * @generated from field: string email = 4;
37
+ */
38
+ email: string;
39
+ /**
40
+ * Description of this tenant
41
+ *
42
+ * @generated from field: string description = 5;
43
+ */
44
+ description: string;
45
+ /**
46
+ * AvatarUrl of the tenant
47
+ *
48
+ * @generated from field: string avatar_url = 6;
49
+ */
50
+ avatarUrl: string;
51
+ /**
52
+ * CreatedBy stores who created this tenant
53
+ *
54
+ * @generated from field: string created_by = 15;
55
+ */
56
+ createdBy: string;
57
+ };
58
+ /**
59
+ * Describes the message metalstack.api.v2.Tenant.
60
+ * Use `create(TenantSchema)` to create a new message.
61
+ */
62
+ export declare const TenantSchema: GenMessage<Tenant>;
63
+ /**
64
+ * TenantMember defines a user that participates at a tenant
65
+ *
66
+ * @generated from message metalstack.api.v2.TenantMember
67
+ */
68
+ export type TenantMember = Message<"metalstack.api.v2.TenantMember"> & {
69
+ /**
70
+ * Id is the user id of the member
71
+ *
72
+ * @generated from field: string id = 1;
73
+ */
74
+ id: string;
75
+ /**
76
+ * Role is the role of the member
77
+ *
78
+ * @generated from field: metalstack.api.v2.TenantRole role = 2;
79
+ */
80
+ role: TenantRole;
81
+ /**
82
+ * Projects for the projects in which a user is a direct member
83
+ *
84
+ * @generated from field: repeated string projects = 4;
85
+ */
86
+ projects: string[];
87
+ /**
88
+ * CreatedAt the date when the member was added to the tenant
89
+ *
90
+ * @generated from field: google.protobuf.Timestamp created_at = 10;
91
+ */
92
+ createdAt?: Timestamp;
93
+ };
94
+ /**
95
+ * Describes the message metalstack.api.v2.TenantMember.
96
+ * Use `create(TenantMemberSchema)` to create a new message.
97
+ */
98
+ export declare const TenantMemberSchema: GenMessage<TenantMember>;
99
+ /**
100
+ * TenantInvite defines invite to tenant
101
+ *
102
+ * @generated from message metalstack.api.v2.TenantInvite
103
+ */
104
+ export type TenantInvite = Message<"metalstack.api.v2.TenantInvite"> & {
105
+ /**
106
+ * Secret is the secret part of the invite, typically part of the url
107
+ *
108
+ * @generated from field: string secret = 1;
109
+ */
110
+ secret: string;
111
+ /**
112
+ * TargetTenant is the tenant id for which this invite was created
113
+ *
114
+ * @generated from field: string target_tenant = 2;
115
+ */
116
+ targetTenant: string;
117
+ /**
118
+ * Role is the role in this tenant the user will get after accepting the invitation
119
+ *
120
+ * @generated from field: metalstack.api.v2.TenantRole role = 3;
121
+ */
122
+ role: TenantRole;
123
+ /**
124
+ * Joined is false as long as a user has not accepted the invite
125
+ *
126
+ * @generated from field: bool joined = 4;
127
+ */
128
+ joined: boolean;
129
+ /**
130
+ * TargetTenantName is the tenant name for which this invite was created
131
+ *
132
+ * @generated from field: string target_tenant_name = 5;
133
+ */
134
+ targetTenantName: string;
135
+ /**
136
+ * Tenant is the login of tenant who invites to join this tenant
137
+ *
138
+ * @generated from field: string tenant = 6;
139
+ */
140
+ tenant: string;
141
+ /**
142
+ * TenantName is the name of tenant who invites to join this tenant
143
+ *
144
+ * @generated from field: string tenant_name = 7;
145
+ */
146
+ tenantName: string;
147
+ /**
148
+ * ExpiresAt the date when this invite expires
149
+ *
150
+ * @generated from field: google.protobuf.Timestamp expires_at = 10;
151
+ */
152
+ expiresAt?: Timestamp;
153
+ /**
154
+ * JoinedAt the date when the member accepted this invite
155
+ *
156
+ * @generated from field: google.protobuf.Timestamp joined_at = 11;
157
+ */
158
+ joinedAt?: Timestamp;
159
+ };
160
+ /**
161
+ * Describes the message metalstack.api.v2.TenantInvite.
162
+ * Use `create(TenantInviteSchema)` to create a new message.
163
+ */
164
+ export declare const TenantInviteSchema: GenMessage<TenantInvite>;
165
+ /**
166
+ * TenantServiceListRequest is the request payload of the tenant list request
167
+ *
168
+ * @generated from message metalstack.api.v2.TenantServiceListRequest
169
+ */
170
+ export type TenantServiceListRequest = Message<"metalstack.api.v2.TenantServiceListRequest"> & {
171
+ /**
172
+ * Id filters tenants by id
173
+ *
174
+ * @generated from field: optional string id = 1;
175
+ */
176
+ id?: string;
177
+ /**
178
+ * Name filters tenants by name
179
+ *
180
+ * @generated from field: optional string name = 2;
181
+ */
182
+ name?: string;
183
+ /**
184
+ * Labels lists only projects containing the given labels
185
+ *
186
+ * @generated from field: optional metalstack.api.v2.Labels labels = 3;
187
+ */
188
+ labels?: Labels;
189
+ };
190
+ /**
191
+ * Describes the message metalstack.api.v2.TenantServiceListRequest.
192
+ * Use `create(TenantServiceListRequestSchema)` to create a new message.
193
+ */
194
+ export declare const TenantServiceListRequestSchema: GenMessage<TenantServiceListRequest>;
195
+ /**
196
+ * TenantServiceGetRequest is the request payload of the tenant get request
197
+ *
198
+ * @generated from message metalstack.api.v2.TenantServiceGetRequest
199
+ */
200
+ export type TenantServiceGetRequest = Message<"metalstack.api.v2.TenantServiceGetRequest"> & {
201
+ /**
202
+ * Login of the tenant
203
+ *
204
+ * @generated from field: string login = 1;
205
+ */
206
+ login: string;
207
+ };
208
+ /**
209
+ * Describes the message metalstack.api.v2.TenantServiceGetRequest.
210
+ * Use `create(TenantServiceGetRequestSchema)` to create a new message.
211
+ */
212
+ export declare const TenantServiceGetRequestSchema: GenMessage<TenantServiceGetRequest>;
213
+ /**
214
+ * TenantServiceCreateRequest is the request payload of the tenant create request
215
+ *
216
+ * @generated from message metalstack.api.v2.TenantServiceCreateRequest
217
+ */
218
+ export type TenantServiceCreateRequest = Message<"metalstack.api.v2.TenantServiceCreateRequest"> & {
219
+ /**
220
+ * Name of this tenant
221
+ *
222
+ * @generated from field: string name = 1;
223
+ */
224
+ name: string;
225
+ /**
226
+ * Description of this tenant
227
+ *
228
+ * @generated from field: optional string description = 2;
229
+ */
230
+ description?: string;
231
+ /**
232
+ * Email of the tenant, if not set will be inherited from the creator
233
+ *
234
+ * @generated from field: optional string email = 3;
235
+ */
236
+ email?: string;
237
+ /**
238
+ * AvatarUrl of the tenant
239
+ *
240
+ * @generated from field: optional string avatar_url = 4;
241
+ */
242
+ avatarUrl?: string;
243
+ /**
244
+ * Labels on the tenant
245
+ *
246
+ * @generated from field: metalstack.api.v2.Labels labels = 5;
247
+ */
248
+ labels?: Labels;
249
+ };
250
+ /**
251
+ * Describes the message metalstack.api.v2.TenantServiceCreateRequest.
252
+ * Use `create(TenantServiceCreateRequestSchema)` to create a new message.
253
+ */
254
+ export declare const TenantServiceCreateRequestSchema: GenMessage<TenantServiceCreateRequest>;
255
+ /**
256
+ * TenantServiceUpdateRequest is the request payload of the tenant update request
257
+ *
258
+ * @generated from message metalstack.api.v2.TenantServiceUpdateRequest
259
+ */
260
+ export type TenantServiceUpdateRequest = Message<"metalstack.api.v2.TenantServiceUpdateRequest"> & {
261
+ /**
262
+ * Login of the tenant
263
+ *
264
+ * @generated from field: string login = 1;
265
+ */
266
+ login: string;
267
+ /**
268
+ * UpdateMeta contains the timestamp and strategy to be used in this update request
269
+ *
270
+ * @generated from field: metalstack.api.v2.UpdateMeta update_meta = 2;
271
+ */
272
+ updateMeta?: UpdateMeta;
273
+ /**
274
+ * Name of the tenant
275
+ *
276
+ * @generated from field: optional string name = 3;
277
+ */
278
+ name?: string;
279
+ /**
280
+ * Email of the tenant
281
+ *
282
+ * @generated from field: optional string email = 4;
283
+ */
284
+ email?: string;
285
+ /**
286
+ * Description of this tenant
287
+ *
288
+ * @generated from field: optional string description = 5;
289
+ */
290
+ description?: string;
291
+ /**
292
+ * AvatarUrl of the tenant
293
+ *
294
+ * @generated from field: optional string avatar_url = 6;
295
+ */
296
+ avatarUrl?: string;
297
+ /**
298
+ * Labels on the tenant
299
+ *
300
+ * @generated from field: optional metalstack.api.v2.UpdateLabels labels = 7;
301
+ */
302
+ labels?: UpdateLabels;
303
+ };
304
+ /**
305
+ * Describes the message metalstack.api.v2.TenantServiceUpdateRequest.
306
+ * Use `create(TenantServiceUpdateRequestSchema)` to create a new message.
307
+ */
308
+ export declare const TenantServiceUpdateRequestSchema: GenMessage<TenantServiceUpdateRequest>;
309
+ /**
310
+ * TenantServiceDeleteRequest is the request payload of the tenant delete request
311
+ *
312
+ * @generated from message metalstack.api.v2.TenantServiceDeleteRequest
313
+ */
314
+ export type TenantServiceDeleteRequest = Message<"metalstack.api.v2.TenantServiceDeleteRequest"> & {
315
+ /**
316
+ * Login of the tenant
317
+ *
318
+ * @generated from field: string login = 1;
319
+ */
320
+ login: string;
321
+ };
322
+ /**
323
+ * Describes the message metalstack.api.v2.TenantServiceDeleteRequest.
324
+ * Use `create(TenantServiceDeleteRequestSchema)` to create a new message.
325
+ */
326
+ export declare const TenantServiceDeleteRequestSchema: GenMessage<TenantServiceDeleteRequest>;
327
+ /**
328
+ * TenantServiceGetResponse is the response payload of the tenant get request
329
+ *
330
+ * @generated from message metalstack.api.v2.TenantServiceGetResponse
331
+ */
332
+ export type TenantServiceGetResponse = Message<"metalstack.api.v2.TenantServiceGetResponse"> & {
333
+ /**
334
+ * Tenant is the tenant
335
+ *
336
+ * @generated from field: metalstack.api.v2.Tenant tenant = 1;
337
+ */
338
+ tenant?: Tenant;
339
+ /**
340
+ * TenantMembers of this tenant
341
+ *
342
+ * @generated from field: repeated metalstack.api.v2.TenantMember tenant_members = 2;
343
+ */
344
+ tenantMembers: TenantMember[];
345
+ };
346
+ /**
347
+ * Describes the message metalstack.api.v2.TenantServiceGetResponse.
348
+ * Use `create(TenantServiceGetResponseSchema)` to create a new message.
349
+ */
350
+ export declare const TenantServiceGetResponseSchema: GenMessage<TenantServiceGetResponse>;
351
+ /**
352
+ * TenantServiceListResponse is the response payload of the tenant list request
353
+ *
354
+ * @generated from message metalstack.api.v2.TenantServiceListResponse
355
+ */
356
+ export type TenantServiceListResponse = Message<"metalstack.api.v2.TenantServiceListResponse"> & {
357
+ /**
358
+ * Tenants is the list of tenants
359
+ *
360
+ * @generated from field: repeated metalstack.api.v2.Tenant tenants = 1;
361
+ */
362
+ tenants: Tenant[];
363
+ };
364
+ /**
365
+ * Describes the message metalstack.api.v2.TenantServiceListResponse.
366
+ * Use `create(TenantServiceListResponseSchema)` to create a new message.
367
+ */
368
+ export declare const TenantServiceListResponseSchema: GenMessage<TenantServiceListResponse>;
369
+ /**
370
+ * TenantServiceCreateResponse is the response payload of the tenant create request
371
+ *
372
+ * @generated from message metalstack.api.v2.TenantServiceCreateResponse
373
+ */
374
+ export type TenantServiceCreateResponse = Message<"metalstack.api.v2.TenantServiceCreateResponse"> & {
375
+ /**
376
+ * Tenant is the tenant
377
+ *
378
+ * @generated from field: metalstack.api.v2.Tenant tenant = 1;
379
+ */
380
+ tenant?: Tenant;
381
+ };
382
+ /**
383
+ * Describes the message metalstack.api.v2.TenantServiceCreateResponse.
384
+ * Use `create(TenantServiceCreateResponseSchema)` to create a new message.
385
+ */
386
+ export declare const TenantServiceCreateResponseSchema: GenMessage<TenantServiceCreateResponse>;
387
+ /**
388
+ * TenantServiceUpdateResponse is the response payload of the tenant update request
389
+ *
390
+ * @generated from message metalstack.api.v2.TenantServiceUpdateResponse
391
+ */
392
+ export type TenantServiceUpdateResponse = Message<"metalstack.api.v2.TenantServiceUpdateResponse"> & {
393
+ /**
394
+ * Tenant is the tenant
395
+ *
396
+ * @generated from field: metalstack.api.v2.Tenant tenant = 1;
397
+ */
398
+ tenant?: Tenant;
399
+ };
400
+ /**
401
+ * Describes the message metalstack.api.v2.TenantServiceUpdateResponse.
402
+ * Use `create(TenantServiceUpdateResponseSchema)` to create a new message.
403
+ */
404
+ export declare const TenantServiceUpdateResponseSchema: GenMessage<TenantServiceUpdateResponse>;
405
+ /**
406
+ * TenantServiceDeleteResponse is the response payload of the tenant delete request
407
+ *
408
+ * @generated from message metalstack.api.v2.TenantServiceDeleteResponse
409
+ */
410
+ export type TenantServiceDeleteResponse = Message<"metalstack.api.v2.TenantServiceDeleteResponse"> & {
411
+ /**
412
+ * Tenant is the tenant
413
+ *
414
+ * @generated from field: metalstack.api.v2.Tenant tenant = 1;
415
+ */
416
+ tenant?: Tenant;
417
+ };
418
+ /**
419
+ * Describes the message metalstack.api.v2.TenantServiceDeleteResponse.
420
+ * Use `create(TenantServiceDeleteResponseSchema)` to create a new message.
421
+ */
422
+ export declare const TenantServiceDeleteResponseSchema: GenMessage<TenantServiceDeleteResponse>;
423
+ /**
424
+ * TenantServiceInviteRequest is used to invite a member to a tenant
425
+ *
426
+ * @generated from message metalstack.api.v2.TenantServiceInviteRequest
427
+ */
428
+ export type TenantServiceInviteRequest = Message<"metalstack.api.v2.TenantServiceInviteRequest"> & {
429
+ /**
430
+ * Login of the tenant
431
+ *
432
+ * @generated from field: string login = 1;
433
+ */
434
+ login: string;
435
+ /**
436
+ * Role of this user in this tenant
437
+ *
438
+ * @generated from field: metalstack.api.v2.TenantRole role = 2;
439
+ */
440
+ role: TenantRole;
441
+ };
442
+ /**
443
+ * Describes the message metalstack.api.v2.TenantServiceInviteRequest.
444
+ * Use `create(TenantServiceInviteRequestSchema)` to create a new message.
445
+ */
446
+ export declare const TenantServiceInviteRequestSchema: GenMessage<TenantServiceInviteRequest>;
447
+ /**
448
+ * TenantServiceInviteRequest is the response payload to a invite member request
449
+ *
450
+ * @generated from message metalstack.api.v2.TenantServiceInviteResponse
451
+ */
452
+ export type TenantServiceInviteResponse = Message<"metalstack.api.v2.TenantServiceInviteResponse"> & {
453
+ /**
454
+ * Invite contains a secret which can be sent to a potential user
455
+ * can be appended to the invitation endpoint at our cloud console like
456
+ * console.metalstack.cloud/invite/<secret>
457
+ *
458
+ * @generated from field: metalstack.api.v2.TenantInvite invite = 1;
459
+ */
460
+ invite?: TenantInvite;
461
+ };
462
+ /**
463
+ * Describes the message metalstack.api.v2.TenantServiceInviteResponse.
464
+ * Use `create(TenantServiceInviteResponseSchema)` to create a new message.
465
+ */
466
+ export declare const TenantServiceInviteResponseSchema: GenMessage<TenantServiceInviteResponse>;
467
+ /**
468
+ * TenantServiceInvitesListRequest is the request payload to a list invites request
469
+ *
470
+ * @generated from message metalstack.api.v2.TenantServiceInvitesListRequest
471
+ */
472
+ export type TenantServiceInvitesListRequest = Message<"metalstack.api.v2.TenantServiceInvitesListRequest"> & {
473
+ /**
474
+ * Login of the tenant
475
+ *
476
+ * @generated from field: string login = 1;
477
+ */
478
+ login: string;
479
+ };
480
+ /**
481
+ * Describes the message metalstack.api.v2.TenantServiceInvitesListRequest.
482
+ * Use `create(TenantServiceInvitesListRequestSchema)` to create a new message.
483
+ */
484
+ export declare const TenantServiceInvitesListRequestSchema: GenMessage<TenantServiceInvitesListRequest>;
485
+ /**
486
+ * TenantServiceInvitesListResponse is the response payload to a list invites request
487
+ *
488
+ * @generated from message metalstack.api.v2.TenantServiceInvitesListResponse
489
+ */
490
+ export type TenantServiceInvitesListResponse = Message<"metalstack.api.v2.TenantServiceInvitesListResponse"> & {
491
+ /**
492
+ * Invites not already accepted the invitation to this tenant
493
+ *
494
+ * @generated from field: repeated metalstack.api.v2.TenantInvite invites = 1;
495
+ */
496
+ invites: TenantInvite[];
497
+ };
498
+ /**
499
+ * Describes the message metalstack.api.v2.TenantServiceInvitesListResponse.
500
+ * Use `create(TenantServiceInvitesListResponseSchema)` to create a new message.
501
+ */
502
+ export declare const TenantServiceInvitesListResponseSchema: GenMessage<TenantServiceInvitesListResponse>;
503
+ /**
504
+ * TenantServiceInviteGetRequest is the request payload to get a invite
505
+ *
506
+ * @generated from message metalstack.api.v2.TenantServiceInviteGetRequest
507
+ */
508
+ export type TenantServiceInviteGetRequest = Message<"metalstack.api.v2.TenantServiceInviteGetRequest"> & {
509
+ /**
510
+ * Secret of the invite to get
511
+ *
512
+ * @generated from field: string secret = 1;
513
+ */
514
+ secret: string;
515
+ };
516
+ /**
517
+ * Describes the message metalstack.api.v2.TenantServiceInviteGetRequest.
518
+ * Use `create(TenantServiceInviteGetRequestSchema)` to create a new message.
519
+ */
520
+ export declare const TenantServiceInviteGetRequestSchema: GenMessage<TenantServiceInviteGetRequest>;
521
+ /**
522
+ * TenantServiceInviteGetResponse is the response payload to a get invite request
523
+ *
524
+ * @generated from message metalstack.api.v2.TenantServiceInviteGetResponse
525
+ */
526
+ export type TenantServiceInviteGetResponse = Message<"metalstack.api.v2.TenantServiceInviteGetResponse"> & {
527
+ /**
528
+ * Invite is the invite
529
+ *
530
+ * @generated from field: metalstack.api.v2.TenantInvite invite = 1;
531
+ */
532
+ invite?: TenantInvite;
533
+ };
534
+ /**
535
+ * Describes the message metalstack.api.v2.TenantServiceInviteGetResponse.
536
+ * Use `create(TenantServiceInviteGetResponseSchema)` to create a new message.
537
+ */
538
+ export declare const TenantServiceInviteGetResponseSchema: GenMessage<TenantServiceInviteGetResponse>;
539
+ /**
540
+ * TenantServiceRemoveMemberRequest is used to remove a member from a tenant
541
+ *
542
+ * @generated from message metalstack.api.v2.TenantServiceRemoveMemberRequest
543
+ */
544
+ export type TenantServiceRemoveMemberRequest = Message<"metalstack.api.v2.TenantServiceRemoveMemberRequest"> & {
545
+ /**
546
+ * Login of the tenant
547
+ *
548
+ * @generated from field: string login = 1;
549
+ */
550
+ login: string;
551
+ /**
552
+ * Member is the id of the member to remove from this tenant
553
+ *
554
+ * @generated from field: string member = 2;
555
+ */
556
+ member: string;
557
+ };
558
+ /**
559
+ * Describes the message metalstack.api.v2.TenantServiceRemoveMemberRequest.
560
+ * Use `create(TenantServiceRemoveMemberRequestSchema)` to create a new message.
561
+ */
562
+ export declare const TenantServiceRemoveMemberRequestSchema: GenMessage<TenantServiceRemoveMemberRequest>;
563
+ /**
564
+ * TenantServiceLeaveTenantRequest is used to leave a tenant
565
+ *
566
+ * @generated from message metalstack.api.v2.TenantServiceLeaveRequest
567
+ */
568
+ export type TenantServiceLeaveRequest = Message<"metalstack.api.v2.TenantServiceLeaveRequest"> & {
569
+ /**
570
+ * Login of the tenant
571
+ *
572
+ * @generated from field: string login = 1;
573
+ */
574
+ login: string;
575
+ };
576
+ /**
577
+ * Describes the message metalstack.api.v2.TenantServiceLeaveRequest.
578
+ * Use `create(TenantServiceLeaveRequestSchema)` to create a new message.
579
+ */
580
+ export declare const TenantServiceLeaveRequestSchema: GenMessage<TenantServiceLeaveRequest>;
581
+ /**
582
+ * TenantServiceLeaveTenantResponse is the response payload to a leave tenant request
583
+ *
584
+ * @generated from message metalstack.api.v2.TenantServiceLeaveResponse
585
+ */
586
+ export type TenantServiceLeaveResponse = Message<"metalstack.api.v2.TenantServiceLeaveResponse"> & {};
587
+ /**
588
+ * Describes the message metalstack.api.v2.TenantServiceLeaveResponse.
589
+ * Use `create(TenantServiceLeaveResponseSchema)` to create a new message.
590
+ */
591
+ export declare const TenantServiceLeaveResponseSchema: GenMessage<TenantServiceLeaveResponse>;
592
+ /**
593
+ * TenantServiceRemoveMemberResponse is the response payload to a remove member request
594
+ *
595
+ * @generated from message metalstack.api.v2.TenantServiceRemoveMemberResponse
596
+ */
597
+ export type TenantServiceRemoveMemberResponse = Message<"metalstack.api.v2.TenantServiceRemoveMemberResponse"> & {};
598
+ /**
599
+ * Describes the message metalstack.api.v2.TenantServiceRemoveMemberResponse.
600
+ * Use `create(TenantServiceRemoveMemberResponseSchema)` to create a new message.
601
+ */
602
+ export declare const TenantServiceRemoveMemberResponseSchema: GenMessage<TenantServiceRemoveMemberResponse>;
603
+ /**
604
+ * TenantServiceInviteAcceptRequest is the request payload to a accept invite request
605
+ *
606
+ * @generated from message metalstack.api.v2.TenantServiceInviteAcceptRequest
607
+ */
608
+ export type TenantServiceInviteAcceptRequest = Message<"metalstack.api.v2.TenantServiceInviteAcceptRequest"> & {
609
+ /**
610
+ * Secret is the invitation secret part of the invitation url
611
+ *
612
+ * @generated from field: string secret = 1;
613
+ */
614
+ secret: string;
615
+ };
616
+ /**
617
+ * Describes the message metalstack.api.v2.TenantServiceInviteAcceptRequest.
618
+ * Use `create(TenantServiceInviteAcceptRequestSchema)` to create a new message.
619
+ */
620
+ export declare const TenantServiceInviteAcceptRequestSchema: GenMessage<TenantServiceInviteAcceptRequest>;
621
+ /**
622
+ * TenantServiceInvitesListResponse is the response payload to a accept invite request
623
+ *
624
+ * @generated from message metalstack.api.v2.TenantServiceInviteAcceptResponse
625
+ */
626
+ export type TenantServiceInviteAcceptResponse = Message<"metalstack.api.v2.TenantServiceInviteAcceptResponse"> & {
627
+ /**
628
+ * Tenant ID of the joined tenant
629
+ *
630
+ * @generated from field: string tenant = 1;
631
+ */
632
+ tenant: string;
633
+ /**
634
+ * TenantName of the joined tenant
635
+ *
636
+ * @generated from field: string tenant_name = 2;
637
+ */
638
+ tenantName: string;
639
+ };
640
+ /**
641
+ * Describes the message metalstack.api.v2.TenantServiceInviteAcceptResponse.
642
+ * Use `create(TenantServiceInviteAcceptResponseSchema)` to create a new message.
643
+ */
644
+ export declare const TenantServiceInviteAcceptResponseSchema: GenMessage<TenantServiceInviteAcceptResponse>;
645
+ /**
646
+ * TenantServiceInviteDeleteRequest is the request payload to a delete invite
647
+ *
648
+ * @generated from message metalstack.api.v2.TenantServiceInviteDeleteRequest
649
+ */
650
+ export type TenantServiceInviteDeleteRequest = Message<"metalstack.api.v2.TenantServiceInviteDeleteRequest"> & {
651
+ /**
652
+ * Login of the tenant
653
+ *
654
+ * @generated from field: string login = 1;
655
+ */
656
+ login: string;
657
+ /**
658
+ * Secret of the invite to delete
659
+ *
660
+ * @generated from field: string secret = 2;
661
+ */
662
+ secret: string;
663
+ };
664
+ /**
665
+ * Describes the message metalstack.api.v2.TenantServiceInviteDeleteRequest.
666
+ * Use `create(TenantServiceInviteDeleteRequestSchema)` to create a new message.
667
+ */
668
+ export declare const TenantServiceInviteDeleteRequestSchema: GenMessage<TenantServiceInviteDeleteRequest>;
669
+ /**
670
+ * TenantServiceInviteDeleteResponse is the response payload of a delete invite request
671
+ *
672
+ * @generated from message metalstack.api.v2.TenantServiceInviteDeleteResponse
673
+ */
674
+ export type TenantServiceInviteDeleteResponse = Message<"metalstack.api.v2.TenantServiceInviteDeleteResponse"> & {};
675
+ /**
676
+ * Describes the message metalstack.api.v2.TenantServiceInviteDeleteResponse.
677
+ * Use `create(TenantServiceInviteDeleteResponseSchema)` to create a new message.
678
+ */
679
+ export declare const TenantServiceInviteDeleteResponseSchema: GenMessage<TenantServiceInviteDeleteResponse>;
680
+ /**
681
+ * TenantServiceUpdateMemberRequest is used to update a member from a tenant
682
+ *
683
+ * @generated from message metalstack.api.v2.TenantServiceUpdateMemberRequest
684
+ */
685
+ export type TenantServiceUpdateMemberRequest = Message<"metalstack.api.v2.TenantServiceUpdateMemberRequest"> & {
686
+ /**
687
+ * Login of the tenant
688
+ *
689
+ * @generated from field: string login = 1;
690
+ */
691
+ login: string;
692
+ /**
693
+ * Member is the id of the member to update in this tenant
694
+ *
695
+ * @generated from field: string member = 2;
696
+ */
697
+ member: string;
698
+ /**
699
+ * Role of this user in this tenant
700
+ *
701
+ * @generated from field: metalstack.api.v2.TenantRole role = 3;
702
+ */
703
+ role: TenantRole;
704
+ };
705
+ /**
706
+ * Describes the message metalstack.api.v2.TenantServiceUpdateMemberRequest.
707
+ * Use `create(TenantServiceUpdateMemberRequestSchema)` to create a new message.
708
+ */
709
+ export declare const TenantServiceUpdateMemberRequestSchema: GenMessage<TenantServiceUpdateMemberRequest>;
710
+ /**
711
+ * TenantServiceUpdateMemberResponse is the response payload to a update member request
712
+ *
713
+ * @generated from message metalstack.api.v2.TenantServiceUpdateMemberResponse
714
+ */
715
+ export type TenantServiceUpdateMemberResponse = Message<"metalstack.api.v2.TenantServiceUpdateMemberResponse"> & {
716
+ /**
717
+ * TenantMember is the updated membership
718
+ *
719
+ * @generated from field: metalstack.api.v2.TenantMember tenant_member = 1;
720
+ */
721
+ tenantMember?: TenantMember;
722
+ };
723
+ /**
724
+ * Describes the message metalstack.api.v2.TenantServiceUpdateMemberResponse.
725
+ * Use `create(TenantServiceUpdateMemberResponseSchema)` to create a new message.
726
+ */
727
+ export declare const TenantServiceUpdateMemberResponseSchema: GenMessage<TenantServiceUpdateMemberResponse>;
728
+ /**
729
+ * TenantService serves tenant related functions
730
+ *
731
+ * @generated from service metalstack.api.v2.TenantService
732
+ */
733
+ export declare const TenantService: GenService<{
734
+ /**
735
+ * Create a tenant
736
+ *
737
+ * @generated from rpc metalstack.api.v2.TenantService.Create
738
+ */
739
+ create: {
740
+ methodKind: "unary";
741
+ input: typeof TenantServiceCreateRequestSchema;
742
+ output: typeof TenantServiceCreateResponseSchema;
743
+ };
744
+ /**
745
+ * List tenants
746
+ *
747
+ * @generated from rpc metalstack.api.v2.TenantService.List
748
+ */
749
+ list: {
750
+ methodKind: "unary";
751
+ input: typeof TenantServiceListRequestSchema;
752
+ output: typeof TenantServiceListResponseSchema;
753
+ };
754
+ /**
755
+ * Get a tenant
756
+ *
757
+ * @generated from rpc metalstack.api.v2.TenantService.Get
758
+ */
759
+ get: {
760
+ methodKind: "unary";
761
+ input: typeof TenantServiceGetRequestSchema;
762
+ output: typeof TenantServiceGetResponseSchema;
763
+ };
764
+ /**
765
+ * Update a tenant
766
+ *
767
+ * @generated from rpc metalstack.api.v2.TenantService.Update
768
+ */
769
+ update: {
770
+ methodKind: "unary";
771
+ input: typeof TenantServiceUpdateRequestSchema;
772
+ output: typeof TenantServiceUpdateResponseSchema;
773
+ };
774
+ /**
775
+ * Delete a tenant
776
+ *
777
+ * @generated from rpc metalstack.api.v2.TenantService.Delete
778
+ */
779
+ delete: {
780
+ methodKind: "unary";
781
+ input: typeof TenantServiceDeleteRequestSchema;
782
+ output: typeof TenantServiceDeleteResponseSchema;
783
+ };
784
+ /**
785
+ * Leave remove a member of a tenant
786
+ *
787
+ * @generated from rpc metalstack.api.v2.TenantService.Leave
788
+ */
789
+ leave: {
790
+ methodKind: "unary";
791
+ input: typeof TenantServiceLeaveRequestSchema;
792
+ output: typeof TenantServiceLeaveResponseSchema;
793
+ };
794
+ /**
795
+ * RemoveMember remove a member of a tenant
796
+ *
797
+ * @generated from rpc metalstack.api.v2.TenantService.RemoveMember
798
+ */
799
+ removeMember: {
800
+ methodKind: "unary";
801
+ input: typeof TenantServiceRemoveMemberRequestSchema;
802
+ output: typeof TenantServiceRemoveMemberResponseSchema;
803
+ };
804
+ /**
805
+ * UpdateMember update a member of a tenant
806
+ *
807
+ * @generated from rpc metalstack.api.v2.TenantService.UpdateMember
808
+ */
809
+ updateMember: {
810
+ methodKind: "unary";
811
+ input: typeof TenantServiceUpdateMemberRequestSchema;
812
+ output: typeof TenantServiceUpdateMemberResponseSchema;
813
+ };
814
+ /**
815
+ * Invite a user to a tenant
816
+ *
817
+ * @generated from rpc metalstack.api.v2.TenantService.Invite
818
+ */
819
+ invite: {
820
+ methodKind: "unary";
821
+ input: typeof TenantServiceInviteRequestSchema;
822
+ output: typeof TenantServiceInviteResponseSchema;
823
+ };
824
+ /**
825
+ * InviteAccept is called from a user to accept an invitation
826
+ *
827
+ * @generated from rpc metalstack.api.v2.TenantService.InviteAccept
828
+ */
829
+ inviteAccept: {
830
+ methodKind: "unary";
831
+ input: typeof TenantServiceInviteAcceptRequestSchema;
832
+ output: typeof TenantServiceInviteAcceptResponseSchema;
833
+ };
834
+ /**
835
+ * InviteDelete deletes a pending invitation
836
+ *
837
+ * @generated from rpc metalstack.api.v2.TenantService.InviteDelete
838
+ */
839
+ inviteDelete: {
840
+ methodKind: "unary";
841
+ input: typeof TenantServiceInviteDeleteRequestSchema;
842
+ output: typeof TenantServiceInviteDeleteResponseSchema;
843
+ };
844
+ /**
845
+ * InvitesList list all invites to a tenant
846
+ *
847
+ * @generated from rpc metalstack.api.v2.TenantService.InvitesList
848
+ */
849
+ invitesList: {
850
+ methodKind: "unary";
851
+ input: typeof TenantServiceInvitesListRequestSchema;
852
+ output: typeof TenantServiceInvitesListResponseSchema;
853
+ };
854
+ /**
855
+ * InviteGet get an invite
856
+ *
857
+ * @generated from rpc metalstack.api.v2.TenantService.InviteGet
858
+ */
859
+ inviteGet: {
860
+ methodKind: "unary";
861
+ input: typeof TenantServiceInviteGetRequestSchema;
862
+ output: typeof TenantServiceInviteGetResponseSchema;
863
+ };
864
+ }>;