@metal-stack/api 0.0.40-beta.0 → 0.0.45

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 (66) hide show
  1. package/js/Makefile +4 -2
  2. package/js/buf/validate/validate_pb.d.ts +172 -3
  3. package/js/buf/validate/validate_pb.js +12 -7
  4. package/js/metalstack/admin/v2/filesystem_pb.js +1 -1
  5. package/js/metalstack/admin/v2/image_pb.js +1 -1
  6. package/js/metalstack/admin/v2/ip_pb.js +1 -1
  7. package/js/metalstack/admin/v2/machine_pb.d.ts +205 -1
  8. package/js/metalstack/admin/v2/machine_pb.js +42 -2
  9. package/js/metalstack/admin/v2/machine_pb.ts +233 -2
  10. package/js/metalstack/admin/v2/network_pb.js +2 -2
  11. package/js/metalstack/admin/v2/network_pb.ts +1 -1
  12. package/js/metalstack/admin/v2/partition_pb.js +1 -1
  13. package/js/metalstack/admin/v2/project_pb.js +1 -1
  14. package/js/metalstack/admin/v2/size_pb.js +1 -1
  15. package/js/metalstack/admin/v2/switch_pb.d.ts +1 -7
  16. package/js/metalstack/admin/v2/switch_pb.js +2 -2
  17. package/js/metalstack/admin/v2/task_pb.d.ts +396 -0
  18. package/js/metalstack/admin/v2/task_pb.js +121 -0
  19. package/js/metalstack/admin/v2/task_pb.ts +467 -0
  20. package/js/metalstack/admin/v2/tenant_pb.js +1 -1
  21. package/js/metalstack/admin/v2/token_pb.js +1 -1
  22. package/js/metalstack/admin/v2/vpn_pb.d.ts +151 -0
  23. package/js/metalstack/admin/v2/vpn_pb.js +38 -0
  24. package/js/metalstack/api/v2/common_pb.d.ts +35 -0
  25. package/js/metalstack/api/v2/common_pb.js +42 -6
  26. package/js/metalstack/api/v2/common_pb.ts +47 -5
  27. package/js/metalstack/api/v2/filesystem_pb.js +1 -1
  28. package/js/metalstack/api/v2/health_pb.js +1 -1
  29. package/js/metalstack/api/v2/image_pb.js +1 -1
  30. package/js/metalstack/api/v2/ip_pb.js +1 -1
  31. package/js/metalstack/api/v2/machine_pb.d.ts +451 -18
  32. package/js/metalstack/api/v2/machine_pb.js +160 -31
  33. package/js/metalstack/api/v2/machine_pb.ts +536 -45
  34. package/js/metalstack/api/v2/method_pb.d.ts +9 -1
  35. package/js/metalstack/api/v2/method_pb.js +2 -2
  36. package/js/metalstack/api/v2/method_pb.ts +9 -2
  37. package/js/metalstack/api/v2/network_pb.js +2 -2
  38. package/js/metalstack/api/v2/network_pb.ts +1 -1
  39. package/js/metalstack/api/v2/partition_pb.js +2 -2
  40. package/js/metalstack/api/v2/partition_pb.ts +1 -1
  41. package/js/metalstack/api/v2/predefined_rules_pb.d.ts +2 -2
  42. package/js/metalstack/api/v2/predefined_rules_pb.js +4 -4
  43. package/js/metalstack/api/v2/predefined_rules_pb.ts +3 -3
  44. package/js/metalstack/api/v2/project_pb.js +1 -1
  45. package/js/metalstack/api/v2/size_pb.js +1 -1
  46. package/js/metalstack/api/v2/switch_pb.d.ts +43 -1
  47. package/js/metalstack/api/v2/switch_pb.js +8 -3
  48. package/js/metalstack/api/v2/switch_pb.ts +1 -1
  49. package/js/metalstack/api/v2/tenant_pb.js +1 -1
  50. package/js/metalstack/api/v2/token_pb.d.ts +28 -3
  51. package/js/metalstack/api/v2/token_pb.js +2 -2
  52. package/js/metalstack/api/v2/token_pb.ts +26 -4
  53. package/js/metalstack/api/v2/user_pb.js +1 -1
  54. package/js/metalstack/api/v2/version_pb.js +1 -1
  55. package/js/metalstack/api/v2/vpn_pb.d.ts +55 -0
  56. package/js/metalstack/api/v2/vpn_pb.js +14 -0
  57. package/js/metalstack/infra/v2/bmc_pb.d.ts +142 -2
  58. package/js/metalstack/infra/v2/bmc_pb.js +25 -2
  59. package/js/metalstack/infra/v2/bmc_pb.ts +136 -18
  60. package/js/metalstack/infra/v2/boot_pb.d.ts +368 -0
  61. package/js/metalstack/infra/v2/boot_pb.js +80 -0
  62. package/js/metalstack/infra/v2/boot_pb.ts +435 -0
  63. package/js/metalstack/infra/v2/event_pb.js +1 -1
  64. package/js/metalstack/infra/v2/switch_pb.d.ts +4 -34
  65. package/js/metalstack/infra/v2/switch_pb.js +3 -8
  66. package/package.json +5 -3
@@ -0,0 +1,467 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
2
+ // @generated from file metalstack/admin/v2/task.proto (package metalstack.admin.v2, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
+ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import type { Duration, Timestamp } from "@bufbuild/protobuf/wkt";
8
+ import { file_google_protobuf_duration, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
9
+ import { file_metalstack_api_v2_common } from "../../api/v2/common_pb";
10
+ import type { Message } from "@bufbuild/protobuf";
11
+
12
+ /**
13
+ * Describes the file metalstack/admin/v2/task.proto.
14
+ */
15
+ export const file_metalstack_admin_v2_task: GenFile = /*@__PURE__*/
16
+ fileDesc("Ch5tZXRhbHN0YWNrL2FkbWluL3YyL3Rhc2sucHJvdG8SE21ldGFsc3RhY2suYWRtaW4udjIiNwoVVGFza1NlcnZpY2VHZXRSZXF1ZXN0Eg8KB3Rhc2tfaWQYASABKAkSDQoFcXVldWUYAiABKAkiRQoWVGFza1NlcnZpY2VHZXRSZXNwb25zZRIrCgR0YXNrGAEgASgLMh0ubWV0YWxzdGFjay5hZG1pbi52Mi5UYXNrSW5mbyI6ChhUYXNrU2VydmljZURlbGV0ZVJlcXVlc3QSDwoHdGFza19pZBgBIAEoCRINCgVxdWV1ZRgCIAEoCSIbChlUYXNrU2VydmljZURlbGV0ZVJlc3BvbnNlIhoKGFRhc2tTZXJ2aWNlUXVldWVzUmVxdWVzdCIrChlUYXNrU2VydmljZVF1ZXVlc1Jlc3BvbnNlEg4KBnF1ZXVlcxgBIAMoCSJwChZUYXNrU2VydmljZUxpc3RSZXF1ZXN0EhIKBXF1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FU1ldGFsc3RhY2s6OkFkbWluOjpWMmIGcHJvdG8z", [file_google_protobuf_duration, file_google_protobuf_timestamp, file_metalstack_api_v2_common]);
17
+
18
+ /**
19
+ * TaskServiceGetRequest is the message to a get task request
20
+ *
21
+ * @generated from message metalstack.admin.v2.TaskServiceGetRequest
22
+ */
23
+ export type TaskServiceGetRequest = Message<"metalstack.admin.v2.TaskServiceGetRequest"> & {
24
+ /**
25
+ * TaskId to get
26
+ *
27
+ * @generated from field: string task_id = 1;
28
+ */
29
+ taskId: string;
30
+
31
+ /**
32
+ * Queue where this task was scheduled to
33
+ *
34
+ * @generated from field: string queue = 2;
35
+ */
36
+ queue: string;
37
+ };
38
+
39
+ /**
40
+ * Describes the message metalstack.admin.v2.TaskServiceGetRequest.
41
+ * Use `create(TaskServiceGetRequestSchema)` to create a new message.
42
+ */
43
+ export const TaskServiceGetRequestSchema: GenMessage<TaskServiceGetRequest> = /*@__PURE__*/
44
+ messageDesc(file_metalstack_admin_v2_task, 0);
45
+
46
+ /**
47
+ * TaskServiceGetResponse is the response to a task get request
48
+ *
49
+ * @generated from message metalstack.admin.v2.TaskServiceGetResponse
50
+ */
51
+ export type TaskServiceGetResponse = Message<"metalstack.admin.v2.TaskServiceGetResponse"> & {
52
+ /**
53
+ * Task contains the task details
54
+ *
55
+ * @generated from field: metalstack.admin.v2.TaskInfo task = 1;
56
+ */
57
+ task?: TaskInfo;
58
+ };
59
+
60
+ /**
61
+ * Describes the message metalstack.admin.v2.TaskServiceGetResponse.
62
+ * Use `create(TaskServiceGetResponseSchema)` to create a new message.
63
+ */
64
+ export const TaskServiceGetResponseSchema: GenMessage<TaskServiceGetResponse> = /*@__PURE__*/
65
+ messageDesc(file_metalstack_admin_v2_task, 1);
66
+
67
+ /**
68
+ * TaskServiceDeleteRequest is the message to a delete task request
69
+ *
70
+ * @generated from message metalstack.admin.v2.TaskServiceDeleteRequest
71
+ */
72
+ export type TaskServiceDeleteRequest = Message<"metalstack.admin.v2.TaskServiceDeleteRequest"> & {
73
+ /**
74
+ * TaskId to cancel
75
+ *
76
+ * @generated from field: string task_id = 1;
77
+ */
78
+ taskId: string;
79
+
80
+ /**
81
+ * Queue where this task was scheduled to
82
+ *
83
+ * @generated from field: string queue = 2;
84
+ */
85
+ queue: string;
86
+ };
87
+
88
+ /**
89
+ * Describes the message metalstack.admin.v2.TaskServiceDeleteRequest.
90
+ * Use `create(TaskServiceDeleteRequestSchema)` to create a new message.
91
+ */
92
+ export const TaskServiceDeleteRequestSchema: GenMessage<TaskServiceDeleteRequest> = /*@__PURE__*/
93
+ messageDesc(file_metalstack_admin_v2_task, 2);
94
+
95
+ /**
96
+ * TaskServiceDeleteResponse is the response to a task delete request
97
+ *
98
+ * @generated from message metalstack.admin.v2.TaskServiceDeleteResponse
99
+ */
100
+ export type TaskServiceDeleteResponse = Message<"metalstack.admin.v2.TaskServiceDeleteResponse"> & {
101
+ };
102
+
103
+ /**
104
+ * Describes the message metalstack.admin.v2.TaskServiceDeleteResponse.
105
+ * Use `create(TaskServiceDeleteResponseSchema)` to create a new message.
106
+ */
107
+ export const TaskServiceDeleteResponseSchema: GenMessage<TaskServiceDeleteResponse> = /*@__PURE__*/
108
+ messageDesc(file_metalstack_admin_v2_task, 3);
109
+
110
+ /**
111
+ * TaskServiceQueuesRequest is the message to get all queues
112
+ *
113
+ * @generated from message metalstack.admin.v2.TaskServiceQueuesRequest
114
+ */
115
+ export type TaskServiceQueuesRequest = Message<"metalstack.admin.v2.TaskServiceQueuesRequest"> & {
116
+ };
117
+
118
+ /**
119
+ * Describes the message metalstack.admin.v2.TaskServiceQueuesRequest.
120
+ * Use `create(TaskServiceQueuesRequestSchema)` to create a new message.
121
+ */
122
+ export const TaskServiceQueuesRequestSchema: GenMessage<TaskServiceQueuesRequest> = /*@__PURE__*/
123
+ messageDesc(file_metalstack_admin_v2_task, 4);
124
+
125
+ /**
126
+ * TaskServiceQueuesResponse is the response to a queues request
127
+ *
128
+ * @generated from message metalstack.admin.v2.TaskServiceQueuesResponse
129
+ */
130
+ export type TaskServiceQueuesResponse = Message<"metalstack.admin.v2.TaskServiceQueuesResponse"> & {
131
+ /**
132
+ * Queues configured for the async system
133
+ *
134
+ * @generated from field: repeated string queues = 1;
135
+ */
136
+ queues: string[];
137
+ };
138
+
139
+ /**
140
+ * Describes the message metalstack.admin.v2.TaskServiceQueuesResponse.
141
+ * Use `create(TaskServiceQueuesResponseSchema)` to create a new message.
142
+ */
143
+ export const TaskServiceQueuesResponseSchema: GenMessage<TaskServiceQueuesResponse> = /*@__PURE__*/
144
+ messageDesc(file_metalstack_admin_v2_task, 5);
145
+
146
+ /**
147
+ * TaskServiceListRequest is the message to a task list request
148
+ *
149
+ * @generated from message metalstack.admin.v2.TaskServiceListRequest
150
+ */
151
+ export type TaskServiceListRequest = Message<"metalstack.admin.v2.TaskServiceListRequest"> & {
152
+ /**
153
+ * Queue where this tasks should be listed
154
+ * will return tasks from all queues if not specified
155
+ *
156
+ * @generated from field: optional string queue = 1;
157
+ */
158
+ queue?: string;
159
+
160
+ /**
161
+ * Count of tasks to return
162
+ *
163
+ * @generated from field: optional uint32 count = 2;
164
+ */
165
+ count?: number;
166
+
167
+ /**
168
+ * Page of tasks to return
169
+ *
170
+ * @generated from field: optional uint32 page = 3;
171
+ */
172
+ page?: number;
173
+ };
174
+
175
+ /**
176
+ * Describes the message metalstack.admin.v2.TaskServiceListRequest.
177
+ * Use `create(TaskServiceListRequestSchema)` to create a new message.
178
+ */
179
+ export const TaskServiceListRequestSchema: GenMessage<TaskServiceListRequest> = /*@__PURE__*/
180
+ messageDesc(file_metalstack_admin_v2_task, 6);
181
+
182
+ /**
183
+ * TaskServiceListResponse is the response to a task list request
184
+ *
185
+ * @generated from message metalstack.admin.v2.TaskServiceListResponse
186
+ */
187
+ export type TaskServiceListResponse = Message<"metalstack.admin.v2.TaskServiceListResponse"> & {
188
+ /**
189
+ * Tasks contains the requested list of tasks
190
+ *
191
+ * @generated from field: repeated metalstack.admin.v2.TaskInfo tasks = 1;
192
+ */
193
+ tasks: TaskInfo[];
194
+ };
195
+
196
+ /**
197
+ * Describes the message metalstack.admin.v2.TaskServiceListResponse.
198
+ * Use `create(TaskServiceListResponseSchema)` to create a new message.
199
+ */
200
+ export const TaskServiceListResponseSchema: GenMessage<TaskServiceListResponse> = /*@__PURE__*/
201
+ messageDesc(file_metalstack_admin_v2_task, 7);
202
+
203
+ /**
204
+ * TaskInfo contains details of an async task
205
+ *
206
+ * @generated from message metalstack.admin.v2.TaskInfo
207
+ */
208
+ export type TaskInfo = Message<"metalstack.admin.v2.TaskInfo"> & {
209
+ /**
210
+ * ID is the identifier of the task.
211
+ *
212
+ * @generated from field: string id = 1;
213
+ */
214
+ id: string;
215
+
216
+ /**
217
+ * Queue is the name of the queue in which the task belongs.
218
+ *
219
+ * @generated from field: string queue = 2;
220
+ */
221
+ queue: string;
222
+
223
+ /**
224
+ * Type is the type name of the task.
225
+ *
226
+ * @generated from field: string type = 3;
227
+ */
228
+ type: string;
229
+
230
+ /**
231
+ * Payload is the payload data of the task.
232
+ *
233
+ * @generated from field: bytes payload = 4;
234
+ */
235
+ payload: Uint8Array;
236
+
237
+ /**
238
+ * State indicates the task state.
239
+ *
240
+ * @generated from field: metalstack.admin.v2.TaskState state = 5;
241
+ */
242
+ state: TaskState;
243
+
244
+ /**
245
+ * MaxRetry is the maximum number of times the task can be retried.
246
+ *
247
+ * @generated from field: int32 max_retry = 6;
248
+ */
249
+ maxRetry: number;
250
+
251
+ /**
252
+ * Retried is the number of times the task has retried so far.
253
+ *
254
+ * @generated from field: int32 retried = 7;
255
+ */
256
+ retried: number;
257
+
258
+ /**
259
+ * LastError is the error message from the last failure.
260
+ *
261
+ * @generated from field: string last_error = 8;
262
+ */
263
+ lastError: string;
264
+
265
+ /**
266
+ * LastFailedAt is the time time of the last failure if any.
267
+ * If the task has no failures, LastFailedAt is zero time (i.e. time.Time{}).
268
+ *
269
+ * @generated from field: google.protobuf.Timestamp last_failed_at = 9;
270
+ */
271
+ lastFailedAt?: Timestamp;
272
+
273
+ /**
274
+ * Timeout is the duration the task can be processed by Handler before being retried,
275
+ *
276
+ * @generated from field: google.protobuf.Duration timeout = 10;
277
+ */
278
+ timeout?: Duration;
279
+
280
+ /**
281
+ * Deadline is the deadline for the task.
282
+ *
283
+ * @generated from field: google.protobuf.Timestamp deadline = 11;
284
+ */
285
+ deadline?: Timestamp;
286
+
287
+ /**
288
+ * Group is the name of the group in which the task belongs.
289
+ *
290
+ * Tasks in the same queue can be grouped together by Group name and will be aggregated into one task
291
+ * by a Server processing the queue.
292
+ *
293
+ * Empty string (default) indicates task does not belong to any groups, and no aggregation will be applied to the task.
294
+ *
295
+ * @generated from field: string group = 12;
296
+ */
297
+ group: string;
298
+
299
+ /**
300
+ * NextProcessAt is the time the task is scheduled to be processed,
301
+ * zero if not applicable.
302
+ *
303
+ * @generated from field: google.protobuf.Timestamp next_process_at = 13;
304
+ */
305
+ nextProcessAt?: Timestamp;
306
+
307
+ /**
308
+ * IsOrphaned describes whether the task is left in active state with no worker processing it.
309
+ * An orphaned task indicates that the worker has crashed or experienced network failures and was not able to
310
+ * extend its lease on the task.
311
+ *
312
+ * This task will be recovered by running a server against the queue the task is in.
313
+ * This field is only applicable to tasks with TaskStateActive.
314
+ *
315
+ * @generated from field: bool is_orphaned = 14;
316
+ */
317
+ isOrphaned: boolean;
318
+
319
+ /**
320
+ * Retention is duration of the retention period after the task is successfully processed.
321
+ *
322
+ * @generated from field: google.protobuf.Duration retention = 15;
323
+ */
324
+ retention?: Duration;
325
+
326
+ /**
327
+ * CompletedAt is the time when the task is processed successfully.
328
+ * Zero value (i.e. time.Time{}) indicates no value.
329
+ *
330
+ * @generated from field: google.protobuf.Timestamp completed_at = 16;
331
+ */
332
+ completedAt?: Timestamp;
333
+
334
+ /**
335
+ * Result holds the result data associated with the task.
336
+ * Use ResultWriter to write result data from the Handler.
337
+ *
338
+ * @generated from field: bytes result = 17;
339
+ */
340
+ result: Uint8Array;
341
+ };
342
+
343
+ /**
344
+ * Describes the message metalstack.admin.v2.TaskInfo.
345
+ * Use `create(TaskInfoSchema)` to create a new message.
346
+ */
347
+ export const TaskInfoSchema: GenMessage<TaskInfo> = /*@__PURE__*/
348
+ messageDesc(file_metalstack_admin_v2_task, 8);
349
+
350
+ /**
351
+ * TaskState defines the state of the task
352
+ *
353
+ * @generated from enum metalstack.admin.v2.TaskState
354
+ */
355
+ export enum TaskState {
356
+ /**
357
+ * TASK_STATE_UNSPECIFIED indicates a undefined state
358
+ *
359
+ * @generated from enum value: TASK_STATE_UNSPECIFIED = 0;
360
+ */
361
+ UNSPECIFIED = 0,
362
+
363
+ /**
364
+ * TASK_STATE_ACTIVE indicates that the task is currently being processed by Handler.
365
+ *
366
+ * @generated from enum value: TASK_STATE_ACTIVE = 1;
367
+ */
368
+ ACTIVE = 1,
369
+
370
+ /**
371
+ * TASK_STATE_PENDING indicates that the task is ready to be processed by Handler.
372
+ *
373
+ * @generated from enum value: TASK_STATE_PENDING = 2;
374
+ */
375
+ PENDING = 2,
376
+
377
+ /**
378
+ * TASK_STATE_SCHEDULED indicates that the task is scheduled to be processed some time in the future.
379
+ *
380
+ * @generated from enum value: TASK_STATE_SCHEDULED = 3;
381
+ */
382
+ SCHEDULED = 3,
383
+
384
+ /**
385
+ * TASK_STATE_RETRY indicates that the task has previously failed and scheduled to be processed some time in the future.
386
+ *
387
+ * @generated from enum value: TASK_STATE_RETRY = 4;
388
+ */
389
+ RETRY = 4,
390
+
391
+ /**
392
+ * TASK_STATE_ARCHIVED indicates that the task is archived and stored for inspection purposes.
393
+ *
394
+ * @generated from enum value: TASK_STATE_ARCHIVED = 5;
395
+ */
396
+ ARCHIVED = 5,
397
+
398
+ /**
399
+ * TASK_STATE_COMPLETED indicates that the task is processed successfully and retained until the retention TTL expires.
400
+ *
401
+ * @generated from enum value: TASK_STATE_COMPLETED = 6;
402
+ */
403
+ COMPLETED = 6,
404
+
405
+ /**
406
+ * TASK_STATE_AGGREGATING indicates that the task is waiting in a group to be aggregated into one task.
407
+ *
408
+ * @generated from enum value: TASK_STATE_AGGREGATING = 7;
409
+ */
410
+ AGGREGATING = 7,
411
+ }
412
+
413
+ /**
414
+ * Describes the enum metalstack.admin.v2.TaskState.
415
+ */
416
+ export const TaskStateSchema: GenEnum<TaskState> = /*@__PURE__*/
417
+ enumDesc(file_metalstack_admin_v2_task, 0);
418
+
419
+ /**
420
+ * TaskService provides services to async tasks
421
+ *
422
+ * @generated from service metalstack.admin.v2.TaskService
423
+ */
424
+ export const TaskService: GenService<{
425
+ /**
426
+ * Get a specific task
427
+ *
428
+ * @generated from rpc metalstack.admin.v2.TaskService.Get
429
+ */
430
+ get: {
431
+ methodKind: "unary";
432
+ input: typeof TaskServiceGetRequestSchema;
433
+ output: typeof TaskServiceGetResponseSchema;
434
+ },
435
+ /**
436
+ * Delete a specific task
437
+ *
438
+ * @generated from rpc metalstack.admin.v2.TaskService.Delete
439
+ */
440
+ delete: {
441
+ methodKind: "unary";
442
+ input: typeof TaskServiceDeleteRequestSchema;
443
+ output: typeof TaskServiceDeleteResponseSchema;
444
+ },
445
+ /**
446
+ * Queues returns all configures queues
447
+ *
448
+ * @generated from rpc metalstack.admin.v2.TaskService.Queues
449
+ */
450
+ queues: {
451
+ methodKind: "unary";
452
+ input: typeof TaskServiceQueuesRequestSchema;
453
+ output: typeof TaskServiceQueuesResponseSchema;
454
+ },
455
+ /**
456
+ * List list all tasks
457
+ *
458
+ * @generated from rpc metalstack.admin.v2.TaskService.List
459
+ */
460
+ list: {
461
+ methodKind: "unary";
462
+ input: typeof TaskServiceListRequestSchema;
463
+ output: typeof TaskServiceListResponseSchema;
464
+ },
465
+ }> = /*@__PURE__*/
466
+ serviceDesc(file_metalstack_admin_v2_task, 0);
467
+
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v2.10.2 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
2
2
  // @generated from file metalstack/admin/v2/tenant.proto (package metalstack.admin.v2, syntax proto3)
3
3
  /* eslint-disable */
4
4
  import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v2.10.2 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
2
2
  // @generated from file metalstack/admin/v2/token.proto (package metalstack.admin.v2, syntax proto3)
3
3
  /* eslint-disable */
4
4
  import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
@@ -0,0 +1,151 @@
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Duration, Timestamp } from "@bufbuild/protobuf/wkt";
3
+ import type { VPNNode } from "../../api/v2/vpn_pb";
4
+ import type { Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file metalstack/admin/v2/vpn.proto.
7
+ */
8
+ export declare const file_metalstack_admin_v2_vpn: GenFile;
9
+ /**
10
+ * VPNServiceAuthKeyRequest is the request payload for a vpn authkey request.
11
+ *
12
+ * @generated from message metalstack.admin.v2.VPNServiceAuthKeyRequest
13
+ */
14
+ export type VPNServiceAuthKeyRequest = Message<"metalstack.admin.v2.VPNServiceAuthKeyRequest"> & {
15
+ /**
16
+ * Project for which a vpn authkey should be generated.
17
+ *
18
+ * @generated from field: string project = 1;
19
+ */
20
+ project: string;
21
+ /**
22
+ * Ephemeral defines if the authkey should be ephemeral.
23
+ *
24
+ * @generated from field: bool ephemeral = 2;
25
+ */
26
+ ephemeral: boolean;
27
+ /**
28
+ * Expires defines the duration after which the authkey expires.
29
+ *
30
+ * @generated from field: google.protobuf.Duration expires = 3;
31
+ */
32
+ expires?: Duration;
33
+ /**
34
+ * Reason must be provided why access to the vpn is requested
35
+ * reason is only forwarded to a audit sink
36
+ *
37
+ * @generated from field: string reason = 4;
38
+ */
39
+ reason: string;
40
+ };
41
+ /**
42
+ * Describes the message metalstack.admin.v2.VPNServiceAuthKeyRequest.
43
+ * Use `create(VPNServiceAuthKeyRequestSchema)` to create a new message.
44
+ */
45
+ export declare const VPNServiceAuthKeyRequestSchema: GenMessage<VPNServiceAuthKeyRequest>;
46
+ /**
47
+ * VPNServiceAuthKeyResponse is the request payload for a authkey response
48
+ *
49
+ * @generated from message metalstack.admin.v2.VPNServiceAuthKeyResponse
50
+ */
51
+ export type VPNServiceAuthKeyResponse = Message<"metalstack.admin.v2.VPNServiceAuthKeyResponse"> & {
52
+ /**
53
+ * Address is the address of the vpn control plane.
54
+ *
55
+ * @generated from field: string address = 1;
56
+ */
57
+ address: string;
58
+ /**
59
+ * AuthKey is the key to connect to the vpn at the given address.
60
+ * This key can only be seen once.
61
+ *
62
+ * @generated from field: string auth_key = 2;
63
+ */
64
+ authKey: string;
65
+ /**
66
+ * Ephemeral defines if the authkey should be ephemeral.
67
+ *
68
+ * @generated from field: bool ephemeral = 3;
69
+ */
70
+ ephemeral: boolean;
71
+ /**
72
+ * ExpiresAt this key cannot be used after this timestamp.
73
+ *
74
+ * @generated from field: google.protobuf.Timestamp expires_at = 4;
75
+ */
76
+ expiresAt?: Timestamp;
77
+ /**
78
+ * CreatedAt this key was created at this timestamp.
79
+ *
80
+ * @generated from field: google.protobuf.Timestamp created_at = 5;
81
+ */
82
+ createdAt?: Timestamp;
83
+ };
84
+ /**
85
+ * Describes the message metalstack.admin.v2.VPNServiceAuthKeyResponse.
86
+ * Use `create(VPNServiceAuthKeyResponseSchema)` to create a new message.
87
+ */
88
+ export declare const VPNServiceAuthKeyResponseSchema: GenMessage<VPNServiceAuthKeyResponse>;
89
+ /**
90
+ * VPNServiceListNodesRequest is the request payload for a vpn list nodes request
91
+ *
92
+ * @generated from message metalstack.admin.v2.VPNServiceListNodesRequest
93
+ */
94
+ export type VPNServiceListNodesRequest = Message<"metalstack.admin.v2.VPNServiceListNodesRequest"> & {
95
+ /**
96
+ * Project if given only nodes of this user are returned
97
+ *
98
+ * @generated from field: optional string project = 1;
99
+ */
100
+ project?: string;
101
+ };
102
+ /**
103
+ * Describes the message metalstack.admin.v2.VPNServiceListNodesRequest.
104
+ * Use `create(VPNServiceListNodesRequestSchema)` to create a new message.
105
+ */
106
+ export declare const VPNServiceListNodesRequestSchema: GenMessage<VPNServiceListNodesRequest>;
107
+ /**
108
+ * VPNServiceListNodesResponse is the response payload for a vpn list nodes request
109
+ *
110
+ * @generated from message metalstack.admin.v2.VPNServiceListNodesResponse
111
+ */
112
+ export type VPNServiceListNodesResponse = Message<"metalstack.admin.v2.VPNServiceListNodesResponse"> & {
113
+ /**
114
+ * Nodes connected to the vpn
115
+ *
116
+ * @generated from field: repeated metalstack.api.v2.VPNNode nodes = 1;
117
+ */
118
+ nodes: VPNNode[];
119
+ };
120
+ /**
121
+ * Describes the message metalstack.admin.v2.VPNServiceListNodesResponse.
122
+ * Use `create(VPNServiceListNodesResponseSchema)` to create a new message.
123
+ */
124
+ export declare const VPNServiceListNodesResponseSchema: GenMessage<VPNServiceListNodesResponse>;
125
+ /**
126
+ * VPNService serves vpn related functions
127
+ *
128
+ * @generated from service metalstack.admin.v2.VPNService
129
+ */
130
+ export declare const VPNService: GenService<{
131
+ /**
132
+ * AuthKey generates a authkey for a project to join a machine to the project vpn
133
+ *
134
+ * @generated from rpc metalstack.admin.v2.VPNService.AuthKey
135
+ */
136
+ authKey: {
137
+ methodKind: "unary";
138
+ input: typeof VPNServiceAuthKeyRequestSchema;
139
+ output: typeof VPNServiceAuthKeyResponseSchema;
140
+ };
141
+ /**
142
+ * ListNodes returns a list of machines actually connected to the vpn
143
+ *
144
+ * @generated from rpc metalstack.admin.v2.VPNService.ListNodes
145
+ */
146
+ listNodes: {
147
+ methodKind: "unary";
148
+ input: typeof VPNServiceListNodesRequestSchema;
149
+ output: typeof VPNServiceListNodesResponseSchema;
150
+ };
151
+ }>;
@@ -0,0 +1,38 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
2
+ // @generated from file metalstack/admin/v2/vpn.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_google_protobuf_duration, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
7
+ import { file_metalstack_api_v2_common } from "../../api/v2/common_pb";
8
+ import { file_metalstack_api_v2_vpn } from "../../api/v2/vpn_pb";
9
+ /**
10
+ * Describes the file metalstack/admin/v2/vpn.proto.
11
+ */
12
+ export const file_metalstack_admin_v2_vpn = /*@__PURE__*/ fileDesc("Ch1tZXRhbHN0YWNrL2FkbWluL3YyL3Zwbi5wcm90bxITbWV0YWxzdGFjay5hZG1pbi52MiKQAQoYVlBOU2VydmljZUF1dGhLZXlSZXF1ZXN0EhkKB3Byb2plY3QYASABKAlCCLpIBXIDsAEBEhEKCWVwaGVtZXJhbBgCIAEoCBIqCgdleHBpcmVzGAMgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEhoKBnJlYXNvbhgEIAEoCUIKukgHcgUQChiABCKxAQoZVlBOU2VydmljZUF1dGhLZXlSZXNwb25zZRIPCgdhZGRyZXNzGAEgASgJEhAKCGF1dGhfa2V5GAIgASgJEhEKCWVwaGVtZXJhbBgDIAEoCBIuCgpleHBpcmVzX2F0GAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgpjcmVhdGVkX2F0GAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCI+ChpWUE5TZXJ2aWNlTGlzdE5vZGVzUmVxdWVzdBIUCgdwcm9qZWN0GAEgASgJSACIAQFCCgoIX3Byb2plY3QiSAobVlBOU2VydmljZUxpc3ROb2Rlc1Jlc3BvbnNlEikKBW5vZGVzGAEgAygLMhoubWV0YWxzdGFjay5hcGkudjIuVlBOTm9kZTL1AQoKVlBOU2VydmljZRJvCgdBdXRoS2V5Ei0ubWV0YWxzdGFjay5hZG1pbi52Mi5WUE5TZXJ2aWNlQXV0aEtleVJlcXVlc3QaLi5tZXRhbHN0YWNrLmFkbWluLnYyLlZQTlNlcnZpY2VBdXRoS2V5UmVzcG9uc2UiBdLzGAEBEnYKCUxpc3ROb2RlcxIvLm1ldGFsc3RhY2suYWRtaW4udjIuVlBOU2VydmljZUxpc3ROb2Rlc1JlcXVlc3QaMC5tZXRhbHN0YWNrLmFkbWluLnYyLlZQTlNlcnZpY2VMaXN0Tm9kZXNSZXNwb25zZSIG0vMYAgECQswBChdjb20ubWV0YWxzdGFjay5hZG1pbi52MkIIVnBuUHJvdG9QAVo5Z2l0aHViLmNvbS9tZXRhbC1zdGFjay9hcGkvZ28vbWV0YWxzdGFjay9hZG1pbi92MjthZG1pbnYyogIDTUFYqgITTWV0YWxzdGFjay5BZG1pbi5WMsoCE01ldGFsc3RhY2tcQWRtaW5cVjLiAh9NZXRhbHN0YWNrXEFkbWluXFYyXEdQQk1ldGFkYXRh6gIVTWV0YWxzdGFjazo6QWRtaW46OlYyYgZwcm90bzM", [file_buf_validate_validate, file_google_protobuf_duration, file_google_protobuf_timestamp, file_metalstack_api_v2_common, file_metalstack_api_v2_vpn]);
13
+ /**
14
+ * Describes the message metalstack.admin.v2.VPNServiceAuthKeyRequest.
15
+ * Use `create(VPNServiceAuthKeyRequestSchema)` to create a new message.
16
+ */
17
+ export const VPNServiceAuthKeyRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_vpn, 0);
18
+ /**
19
+ * Describes the message metalstack.admin.v2.VPNServiceAuthKeyResponse.
20
+ * Use `create(VPNServiceAuthKeyResponseSchema)` to create a new message.
21
+ */
22
+ export const VPNServiceAuthKeyResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_vpn, 1);
23
+ /**
24
+ * Describes the message metalstack.admin.v2.VPNServiceListNodesRequest.
25
+ * Use `create(VPNServiceListNodesRequestSchema)` to create a new message.
26
+ */
27
+ export const VPNServiceListNodesRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_vpn, 2);
28
+ /**
29
+ * Describes the message metalstack.admin.v2.VPNServiceListNodesResponse.
30
+ * Use `create(VPNServiceListNodesResponseSchema)` to create a new message.
31
+ */
32
+ export const VPNServiceListNodesResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_vpn, 3);
33
+ /**
34
+ * VPNService serves vpn related functions
35
+ *
36
+ * @generated from service metalstack.admin.v2.VPNService
37
+ */
38
+ export const VPNService = /*@__PURE__*/ serviceDesc(file_metalstack_admin_v2_vpn, 0);