@metal-stack/api 0.6.0 → 0.8.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.
@@ -5,17 +5,22 @@
5
5
  import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
6
  import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
7
7
  import { file_buf_validate_validate } from "../../../buf/validate/validate_pb";
8
+ import type { Duration } from "@bufbuild/protobuf/wkt";
9
+ import { file_google_protobuf_duration } from "@bufbuild/protobuf/wkt";
10
+ import type { Labels } from "../../api/v2/common_pb";
8
11
  import { file_metalstack_api_v2_common } from "../../api/v2/common_pb";
9
- import type { MachineAllocation, MachineBios, MachineBMC, MachineFRU, MachineHardware } from "../../api/v2/machine_pb";
12
+ import type { MachineAllocation, MachineBios, MachineBMC, MachineFRU, MachineHardware, MachineProvisioningEvent } from "../../api/v2/machine_pb";
10
13
  import { file_metalstack_api_v2_machine } from "../../api/v2/machine_pb";
11
14
  import { file_metalstack_api_v2_predefined_rules } from "../../api/v2/predefined_rules_pb";
15
+ import type { Token } from "../../api/v2/token_pb";
16
+ import { file_metalstack_api_v2_token } from "../../api/v2/token_pb";
12
17
  import type { Message } from "@bufbuild/protobuf";
13
18
 
14
19
  /**
15
20
  * Describes the file metalstack/infra/v2/boot.proto.
16
21
  */
17
22
  export const file_metalstack_infra_v2_boot: GenFile = /*@__PURE__*/
18
- fileDesc("Ch5tZXRhbHN0YWNrL2luZnJhL3YyL2Jvb3QucHJvdG8SE21ldGFsc3RhY2suaW5mcmEudjIiUAoWQm9vdFNlcnZpY2VEaGNwUmVxdWVzdBIWCgR1dWlkGAEgASgJQgi6SAVyA7ABARIeCglwYXJ0aXRpb24YAiABKAlCC7pICHIG0LOusQIBIhkKF0Jvb3RTZXJ2aWNlRGhjcFJlc3BvbnNlIlIKFkJvb3RTZXJ2aWNlQm9vdFJlcXVlc3QSGAoDbWFjGAEgASgJQgu6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nZpY2VXYWl0UmVxdWVzdBosLm1ldGFsc3RhY2suaW5mcmEudjIuQm9vdFNlcnZpY2VXYWl0UmVzcG9uc2UiCeDzGAHy8xgBATABEp8BChVJbnN0YWxsYXRpb25TdWNjZWVkZWQSPC5tZXRhbHN0YWNrLmluZnJhLnYyLkJvb3RTZXJ2aWNlSW5zdGFsbGF0aW9uU3VjY2VlZGVkUmVxdWVzdBo9Lm1ldGFsc3RhY2suaW5mcmEudjIuQm9vdFNlcnZpY2VJbnN0YWxsYXRpb25TdWNjZWVkZWRSZXNwb25zZSIJ4PMYAfLzGAEBQs0BChdjb20ubWV0YWxzdGFjay5pbmZyYS52MkIJQm9vdFByb3RvUAFaOWdpdGh1Yi5jb20vbWV0YWwtc3RhY2svYXBpL2dvL21ldGFsc3RhY2svaW5mcmEvdjI7aW5mcmF2MqICA01JWKoCE01ldGFsc3RhY2suSW5mcmEuVjLKAhNNZXRhbHN0YWNrXEluZnJhXFYy4gIfTWV0YWxzdGFja1xJbmZyYVxWMlxHUEJNZXRhZGF0YeoCFU1ldGFsc3RhY2s6OkluZnJhOjpWMmIGcHJvdG8z", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_machine, file_metalstack_api_v2_predefined_rules]);
23
+ fileDesc("Ch5tZXRhbHN0YWNrL2luZnJhL3YyL2Jvb3QucHJvdG8SE21ldGFsc3RhY2suaW5mcmEudjIiUAoWQm9vdFNlcnZpY2VEaGNwUmVxdWVzdBIWCgR1dWlkGAEgASgJQgi6SAVyA7ABARIeCglwYXJ0aXRpb24YAiABKAlCC7pICHIG0LOusQIBIhkKF0Jvb3RTZXJ2aWNlRGhjcFJlc3BvbnNlIr0BCh5Cb290U2VydmljZU1hY2hpbmVUb2tlblJlcXVlc3QSFgoEdXVpZBgBIAEoCUIIukgFcgOwAQESGQoEdXNlchgCIAEoCUILukgIcgb4s66xAgESPQoHZXhwaXJlcxgDIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbk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AHy8xgBAULNAQoXY29tLm1ldGFsc3RhY2suaW5mcmEudjJCCUJvb3RQcm90b1ABWjlnaXRodWIuY29tL21ldGFsLXN0YWNrL2FwaS9nby9tZXRhbHN0YWNrL2luZnJhL3YyO2luZnJhdjKiAgNNSViqAhNNZXRhbHN0YWNrLkluZnJhLlYyygITTWV0YWxzdGFja1xJbmZyYVxWMuICH01ldGFsc3RhY2tcSW5mcmFcVjJcR1BCTWV0YWRhdGHqAhVNZXRhbHN0YWNrOjpJbmZyYTo6VjJiBnByb3RvMw", [file_buf_validate_validate, file_google_protobuf_duration, file_metalstack_api_v2_common, file_metalstack_api_v2_machine, file_metalstack_api_v2_predefined_rules, file_metalstack_api_v2_token]);
19
24
 
20
25
  /**
21
26
  * BootServiceDhcpRequest is called once a machine issues a dhcp request.
@@ -60,6 +65,76 @@ export type BootServiceDhcpResponse = Message<"metalstack.infra.v2.BootServiceDh
60
65
  export const BootServiceDhcpResponseSchema: GenMessage<BootServiceDhcpResponse> = /*@__PURE__*/
61
66
  messageDesc(file_metalstack_infra_v2_boot, 1);
62
67
 
68
+ /**
69
+ * TokenServiceCreateRequest is the request payload for creating a machine token.
70
+ *
71
+ * @generated from message metalstack.infra.v2.BootServiceMachineTokenRequest
72
+ */
73
+ export type BootServiceMachineTokenRequest = Message<"metalstack.infra.v2.BootServiceMachineTokenRequest"> & {
74
+ /**
75
+ * UUID of the machine that will get the machine token.
76
+ *
77
+ * @generated from field: string uuid = 1;
78
+ */
79
+ uuid: string;
80
+
81
+ /**
82
+ * User this token should be created for, it must be labelled in the backend with "tenant.metal-stack.io/machine-bootstrapper"
83
+ *
84
+ * @generated from field: string user = 2;
85
+ */
86
+ user: string;
87
+
88
+ /**
89
+ * Expires gives the duration since now, after which this token can not be used anymore.
90
+ *
91
+ * @generated from field: google.protobuf.Duration expires = 3;
92
+ */
93
+ expires?: Duration | undefined;
94
+
95
+ /**
96
+ * Labels for this token.
97
+ *
98
+ * @generated from field: metalstack.api.v2.Labels labels = 4;
99
+ */
100
+ labels?: Labels | undefined;
101
+ };
102
+
103
+ /**
104
+ * Describes the message metalstack.infra.v2.BootServiceMachineTokenRequest.
105
+ * Use `create(BootServiceMachineTokenRequestSchema)` to create a new message.
106
+ */
107
+ export const BootServiceMachineTokenRequestSchema: GenMessage<BootServiceMachineTokenRequest> = /*@__PURE__*/
108
+ messageDesc(file_metalstack_infra_v2_boot, 2);
109
+
110
+ /**
111
+ * TokenServiceCreateResponse is the response payload for the created machine token.
112
+ *
113
+ * @generated from message metalstack.infra.v2.BootServiceMachineTokenResponse
114
+ */
115
+ export type BootServiceMachineTokenResponse = Message<"metalstack.infra.v2.BootServiceMachineTokenResponse"> & {
116
+ /**
117
+ * Token contains the created token.
118
+ *
119
+ * @generated from field: metalstack.api.v2.Token token = 1;
120
+ */
121
+ token?: Token | undefined;
122
+
123
+ /**
124
+ * Secret is the body if the JWT token, should be used in API requests as bearer token.
125
+ *
126
+ * @generated from field: string secret = 2;
127
+ */
128
+ secret: string;
129
+ };
130
+
131
+ /**
132
+ * Describes the message metalstack.infra.v2.BootServiceMachineTokenResponse.
133
+ * Use `create(BootServiceMachineTokenResponseSchema)` to create a new message.
134
+ */
135
+ export const BootServiceMachineTokenResponseSchema: GenMessage<BootServiceMachineTokenResponse> = /*@__PURE__*/
136
+ messageDesc(file_metalstack_infra_v2_boot, 3);
137
+
63
138
  /**
64
139
  * BootServiceBootRequest is called to get specified parameters to boot a machine with the given mac.
65
140
  *
@@ -86,7 +161,7 @@ export type BootServiceBootRequest = Message<"metalstack.infra.v2.BootServiceBoo
86
161
  * Use `create(BootServiceBootRequestSchema)` to create a new message.
87
162
  */
88
163
  export const BootServiceBootRequestSchema: GenMessage<BootServiceBootRequest> = /*@__PURE__*/
89
- messageDesc(file_metalstack_infra_v2_boot, 2);
164
+ messageDesc(file_metalstack_infra_v2_boot, 4);
90
165
 
91
166
  /**
92
167
  * BootServiceBootResponse contains additional infos which are required to boot a machine.
@@ -121,7 +196,7 @@ export type BootServiceBootResponse = Message<"metalstack.infra.v2.BootServiceBo
121
196
  * Use `create(BootServiceBootResponseSchema)` to create a new message.
122
197
  */
123
198
  export const BootServiceBootResponseSchema: GenMessage<BootServiceBootResponse> = /*@__PURE__*/
124
- messageDesc(file_metalstack_infra_v2_boot, 3);
199
+ messageDesc(file_metalstack_infra_v2_boot, 5);
125
200
 
126
201
  /**
127
202
  * BootServiceRegisterRequest is called from metal-hammer to register a machine with as much hardware details as possible.
@@ -191,7 +266,7 @@ export type BootServiceRegisterRequest = Message<"metalstack.infra.v2.BootServic
191
266
  * Use `create(BootServiceRegisterRequestSchema)` to create a new message.
192
267
  */
193
268
  export const BootServiceRegisterRequestSchema: GenMessage<BootServiceRegisterRequest> = /*@__PURE__*/
194
- messageDesc(file_metalstack_infra_v2_boot, 4);
269
+ messageDesc(file_metalstack_infra_v2_boot, 6);
195
270
 
196
271
  /**
197
272
  * BootServiceRegisterResponse response to a BootServiceRegisterResponse request.
@@ -226,7 +301,7 @@ export type BootServiceRegisterResponse = Message<"metalstack.infra.v2.BootServi
226
301
  * Use `create(BootServiceRegisterResponseSchema)` to create a new message.
227
302
  */
228
303
  export const BootServiceRegisterResponseSchema: GenMessage<BootServiceRegisterResponse> = /*@__PURE__*/
229
- messageDesc(file_metalstack_infra_v2_boot, 5);
304
+ messageDesc(file_metalstack_infra_v2_boot, 7);
230
305
 
231
306
  /**
232
307
  * BootServiceWaitRequest is called when a machine was registered and is waiting for allocation.
@@ -247,7 +322,7 @@ export type BootServiceWaitRequest = Message<"metalstack.infra.v2.BootServiceWai
247
322
  * Use `create(BootServiceWaitRequestSchema)` to create a new message.
248
323
  */
249
324
  export const BootServiceWaitRequestSchema: GenMessage<BootServiceWaitRequest> = /*@__PURE__*/
250
- messageDesc(file_metalstack_infra_v2_boot, 6);
325
+ messageDesc(file_metalstack_infra_v2_boot, 8);
251
326
 
252
327
  /**
253
328
  * BootServiceWaitResponse response to a wait request.
@@ -268,7 +343,7 @@ export type BootServiceWaitResponse = Message<"metalstack.infra.v2.BootServiceWa
268
343
  * Use `create(BootServiceWaitResponseSchema)` to create a new message.
269
344
  */
270
345
  export const BootServiceWaitResponseSchema: GenMessage<BootServiceWaitResponse> = /*@__PURE__*/
271
- messageDesc(file_metalstack_infra_v2_boot, 7);
346
+ messageDesc(file_metalstack_infra_v2_boot, 9);
272
347
 
273
348
  /**
274
349
  * BootServiceInstallationSucceededRequest is sent from metal-hammer to the api to report the installation succeeded.
@@ -296,7 +371,7 @@ export type BootServiceInstallationSucceededRequest = Message<"metalstack.infra.
296
371
  * Use `create(BootServiceInstallationSucceededRequestSchema)` to create a new message.
297
372
  */
298
373
  export const BootServiceInstallationSucceededRequestSchema: GenMessage<BootServiceInstallationSucceededRequest> = /*@__PURE__*/
299
- messageDesc(file_metalstack_infra_v2_boot, 8);
374
+ messageDesc(file_metalstack_infra_v2_boot, 10);
300
375
 
301
376
  /**
302
377
  * BootServiceInstallationSucceededResponse is the response to a BootServiceInstallationSucceededRequest.
@@ -311,7 +386,7 @@ export type BootServiceInstallationSucceededResponse = Message<"metalstack.infra
311
386
  * Use `create(BootServiceInstallationSucceededResponseSchema)` to create a new message.
312
387
  */
313
388
  export const BootServiceInstallationSucceededResponseSchema: GenMessage<BootServiceInstallationSucceededResponse> = /*@__PURE__*/
314
- messageDesc(file_metalstack_infra_v2_boot, 9);
389
+ messageDesc(file_metalstack_infra_v2_boot, 11);
315
390
 
316
391
  /**
317
392
  * BootServiceSuperUserPasswordRequest this call returns the password for the machine superuser.
@@ -332,7 +407,7 @@ export type BootServiceSuperUserPasswordRequest = Message<"metalstack.infra.v2.B
332
407
  * Use `create(BootServiceSuperUserPasswordRequestSchema)` to create a new message.
333
408
  */
334
409
  export const BootServiceSuperUserPasswordRequestSchema: GenMessage<BootServiceSuperUserPasswordRequest> = /*@__PURE__*/
335
- messageDesc(file_metalstack_infra_v2_boot, 10);
410
+ messageDesc(file_metalstack_infra_v2_boot, 12);
336
411
 
337
412
  /**
338
413
  * BootServiceSuperUserPasswordResponse the super user password is returned.
@@ -360,7 +435,50 @@ export type BootServiceSuperUserPasswordResponse = Message<"metalstack.infra.v2.
360
435
  * Use `create(BootServiceSuperUserPasswordResponseSchema)` to create a new message.
361
436
  */
362
437
  export const BootServiceSuperUserPasswordResponseSchema: GenMessage<BootServiceSuperUserPasswordResponse> = /*@__PURE__*/
363
- messageDesc(file_metalstack_infra_v2_boot, 11);
438
+ messageDesc(file_metalstack_infra_v2_boot, 13);
439
+
440
+ /**
441
+ * BootServiceEventSendRequest is the request payload for sending a provisioning event.
442
+ *
443
+ * @generated from message metalstack.infra.v2.BootServiceSendEventRequest
444
+ */
445
+ export type BootServiceSendEventRequest = Message<"metalstack.infra.v2.BootServiceSendEventRequest"> & {
446
+ /**
447
+ * UUID of the machine.
448
+ *
449
+ * @generated from field: string uuid = 1;
450
+ */
451
+ uuid: string;
452
+
453
+ /**
454
+ * Event is the machine provisioning event.
455
+ *
456
+ * @generated from field: metalstack.api.v2.MachineProvisioningEvent event = 2;
457
+ */
458
+ event?: MachineProvisioningEvent | undefined;
459
+ };
460
+
461
+ /**
462
+ * Describes the message metalstack.infra.v2.BootServiceSendEventRequest.
463
+ * Use `create(BootServiceSendEventRequestSchema)` to create a new message.
464
+ */
465
+ export const BootServiceSendEventRequestSchema: GenMessage<BootServiceSendEventRequest> = /*@__PURE__*/
466
+ messageDesc(file_metalstack_infra_v2_boot, 14);
467
+
468
+ /**
469
+ * BootServiceEventSendResponse is the response payload for sending provisioning events.
470
+ *
471
+ * @generated from message metalstack.infra.v2.BootServiceSendEventResponse
472
+ */
473
+ export type BootServiceSendEventResponse = Message<"metalstack.infra.v2.BootServiceSendEventResponse"> & {
474
+ };
475
+
476
+ /**
477
+ * Describes the message metalstack.infra.v2.BootServiceSendEventResponse.
478
+ * Use `create(BootServiceSendEventResponseSchema)` to create a new message.
479
+ */
480
+ export const BootServiceSendEventResponseSchema: GenMessage<BootServiceSendEventResponse> = /*@__PURE__*/
481
+ messageDesc(file_metalstack_infra_v2_boot, 15);
364
482
 
365
483
  /**
366
484
  * BootService provides boot-related operations for pixiecore and metal-hammer.
@@ -390,6 +508,16 @@ export const BootService: GenService<{
390
508
  input: typeof BootServiceBootRequestSchema;
391
509
  output: typeof BootServiceBootResponseSchema;
392
510
  },
511
+ /**
512
+ * MachineToken is called from pixie to create machine role token for the metal-hammer. This way it does not need to have an admin token for token creation.
513
+ *
514
+ * @generated from rpc metalstack.infra.v2.BootService.MachineToken
515
+ */
516
+ machineToken: {
517
+ methodKind: "unary";
518
+ input: typeof BootServiceMachineTokenRequestSchema;
519
+ output: typeof BootServiceMachineTokenResponseSchema;
520
+ },
393
521
  /**
394
522
  * SuperUserPassword returns the configured root password for the BMC.
395
523
  *
@@ -430,6 +558,16 @@ export const BootService: GenService<{
430
558
  input: typeof BootServiceInstallationSucceededRequestSchema;
431
559
  output: typeof BootServiceInstallationSucceededResponseSchema;
432
560
  },
561
+ /**
562
+ * SendEvent is used to send provisioning events to the metal-apiserver.
563
+ *
564
+ * @generated from rpc metalstack.infra.v2.BootService.SendEvent
565
+ */
566
+ sendEvent: {
567
+ methodKind: "unary";
568
+ input: typeof BootServiceSendEventRequestSchema;
569
+ output: typeof BootServiceSendEventResponseSchema;
570
+ },
433
571
  }> = /*@__PURE__*/
434
572
  serviceDesc(file_metalstack_infra_v2_boot, 0);
435
573
 
package/package.json CHANGED
@@ -20,5 +20,5 @@
20
20
  "files": [
21
21
  "./*"
22
22
  ],
23
- "version": "0.6.0"
23
+ "version": "0.8.0"
24
24
  }