linuxcnc-grpc 0.6.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/hal.d.ts ADDED
@@ -0,0 +1,637 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { type CallOptions, type ChannelCredentials, Client, type ClientOptions, type ClientReadableStream, type ClientUnaryCall, type handleServerStreamingCall, type handleUnaryCall, type Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
3
+ /** HAL data types */
4
+ export declare enum HalType {
5
+ HAL_TYPE_UNSPECIFIED = 0,
6
+ /** HAL_BIT - Boolean */
7
+ HAL_BIT = 1,
8
+ /** HAL_FLOAT - Double precision float */
9
+ HAL_FLOAT = 2,
10
+ /** HAL_S32 - Signed 32-bit integer */
11
+ HAL_S32 = 3,
12
+ /** HAL_U32 - Unsigned 32-bit integer */
13
+ HAL_U32 = 4,
14
+ /** HAL_S64 - Signed 64-bit integer */
15
+ HAL_S64 = 5,
16
+ /** HAL_U64 - Unsigned 64-bit integer */
17
+ HAL_U64 = 6,
18
+ /** HAL_PORT - Port type (advanced) */
19
+ HAL_PORT = 7,
20
+ UNRECOGNIZED = -1
21
+ }
22
+ export declare function halTypeFromJSON(object: any): HalType;
23
+ export declare function halTypeToJSON(object: HalType): string;
24
+ /** Pin direction (from component's perspective) */
25
+ export declare enum PinDirection {
26
+ PIN_DIR_UNSPECIFIED = 0,
27
+ /** HAL_IN - Input (component reads) */
28
+ HAL_IN = 1,
29
+ /** HAL_OUT - Output (component writes) */
30
+ HAL_OUT = 2,
31
+ /** HAL_IO - Bidirectional */
32
+ HAL_IO = 3,
33
+ UNRECOGNIZED = -1
34
+ }
35
+ export declare function pinDirectionFromJSON(object: any): PinDirection;
36
+ export declare function pinDirectionToJSON(object: PinDirection): string;
37
+ /** Parameter access mode */
38
+ export declare enum ParamDirection {
39
+ PARAM_DIR_UNSPECIFIED = 0,
40
+ /** HAL_RO - Read-only */
41
+ HAL_RO = 1,
42
+ /** HAL_RW - Read-write */
43
+ HAL_RW = 2,
44
+ UNRECOGNIZED = -1
45
+ }
46
+ export declare function paramDirectionFromJSON(object: any): ParamDirection;
47
+ export declare function paramDirectionToJSON(object: ParamDirection): string;
48
+ /** Message level for RTAPI */
49
+ export declare enum MessageLevel {
50
+ MSG_LEVEL_UNSPECIFIED = 0,
51
+ /** MSG_NONE - No messages */
52
+ MSG_NONE = 1,
53
+ /** MSG_ERR - Errors only */
54
+ MSG_ERR = 2,
55
+ /** MSG_WARN - Warnings and errors */
56
+ MSG_WARN = 3,
57
+ /** MSG_INFO - Info, warnings, errors */
58
+ MSG_INFO = 4,
59
+ /** MSG_DBG - Debug and above */
60
+ MSG_DBG = 5,
61
+ /** MSG_ALL - All messages */
62
+ MSG_ALL = 6,
63
+ UNRECOGNIZED = -1
64
+ }
65
+ export declare function messageLevelFromJSON(object: any): MessageLevel;
66
+ export declare function messageLevelToJSON(object: MessageLevel): string;
67
+ /** Universal HAL value (can hold any HAL type) */
68
+ export interface HalValue {
69
+ bitValue?: boolean | undefined;
70
+ floatValue?: number | undefined;
71
+ s32Value?: number | undefined;
72
+ u32Value?: number | undefined;
73
+ s64Value?: number | undefined;
74
+ u64Value?: number | undefined;
75
+ /** Port type (advanced) */
76
+ portValue?: string | undefined;
77
+ }
78
+ /** Information about a HAL pin */
79
+ export interface HalPinInfo {
80
+ /** Full pin name (component.pin) */
81
+ name: string;
82
+ /** Pin name without component prefix */
83
+ shortName: string;
84
+ /** Parent component name */
85
+ component: string;
86
+ /** Data type */
87
+ type: HalType;
88
+ /** Pin direction */
89
+ direction: PinDirection;
90
+ /** Current value */
91
+ value: HalValue | undefined;
92
+ /** Connected signal name (empty if none) */
93
+ signal: string;
94
+ /** True if pin has a writer */
95
+ hasWriter: boolean;
96
+ }
97
+ /** Information about a HAL signal */
98
+ export interface HalSignalInfo {
99
+ /** Signal name */
100
+ name: string;
101
+ /** Data type */
102
+ type: HalType;
103
+ /** Current value */
104
+ value: HalValue | undefined;
105
+ /** Driving pin name (empty if none) */
106
+ driver: string;
107
+ /** List of reading pin names (currently unavailable via HAL API, always empty) */
108
+ readers: string[];
109
+ /** Number of readers (currently always 0 due to HAL API limitation) */
110
+ readerCount: number;
111
+ }
112
+ /** Information about a HAL parameter */
113
+ export interface HalParamInfo {
114
+ /** Full param name (component.param) */
115
+ name: string;
116
+ /** Param name without component prefix */
117
+ shortName: string;
118
+ /** Parent component name */
119
+ component: string;
120
+ /** Data type */
121
+ type: HalType;
122
+ /** Access mode (RO/RW) */
123
+ direction: ParamDirection;
124
+ /** Current value */
125
+ value: HalValue | undefined;
126
+ }
127
+ /** Information about a HAL component */
128
+ export interface HalComponentInfo {
129
+ /** Component name */
130
+ name: string;
131
+ /** Component ID */
132
+ id: number;
133
+ /** True if component is ready */
134
+ ready: boolean;
135
+ /** Component type (RT, user, etc) */
136
+ type: number;
137
+ /** Process ID (for userspace components) */
138
+ pid: number;
139
+ /** List of pin names */
140
+ pins: string[];
141
+ /** List of parameter names */
142
+ params: string[];
143
+ }
144
+ /** Complete HAL system status */
145
+ export interface HalSystemStatus {
146
+ /** Unix timestamp in nanoseconds */
147
+ timestamp: number;
148
+ /** All pins */
149
+ pins: HalPinInfo[];
150
+ /** All signals */
151
+ signals: HalSignalInfo[];
152
+ /** All parameters */
153
+ params: HalParamInfo[];
154
+ /** All components */
155
+ components: HalComponentInfo[];
156
+ /** Current message level */
157
+ messageLevel: MessageLevel;
158
+ /** Running in simulation */
159
+ isSim: boolean;
160
+ /** Running real-time */
161
+ isRt: boolean;
162
+ /** Userspace HAL */
163
+ isUserspace: boolean;
164
+ /** Kernel version */
165
+ kernelVersion: string;
166
+ }
167
+ /** Create a new HAL component */
168
+ export interface CreateComponentCommand {
169
+ /** Component name */
170
+ name: string;
171
+ /** Optional prefix for pins/params */
172
+ prefix: string;
173
+ }
174
+ /** Create a new pin */
175
+ export interface CreatePinCommand {
176
+ /** Parent component name */
177
+ component: string;
178
+ /** Pin name */
179
+ name: string;
180
+ /** Data type */
181
+ type: HalType;
182
+ /** Pin direction */
183
+ direction: PinDirection;
184
+ /** Optional initial value */
185
+ initialValue: HalValue | undefined;
186
+ }
187
+ /** Create a new parameter */
188
+ export interface CreateParamCommand {
189
+ /** Parent component name */
190
+ component: string;
191
+ /** Parameter name */
192
+ name: string;
193
+ /** Data type */
194
+ type: HalType;
195
+ /** Access mode */
196
+ direction: ParamDirection;
197
+ /** Optional initial value */
198
+ initialValue: HalValue | undefined;
199
+ }
200
+ /** Set pin value */
201
+ export interface SetPinValueCommand {
202
+ /** Full pin name (component.pin) */
203
+ name: string;
204
+ /** Value to set */
205
+ value: HalValue | undefined;
206
+ }
207
+ /** Set parameter value */
208
+ export interface SetParamValueCommand {
209
+ /** Full param name (component.param) */
210
+ name: string;
211
+ /** Value to set */
212
+ value: HalValue | undefined;
213
+ }
214
+ /** Create a new signal */
215
+ export interface CreateSignalCommand {
216
+ /** Signal name */
217
+ name: string;
218
+ /** Data type */
219
+ type: HalType;
220
+ }
221
+ /** Set signal value */
222
+ export interface SetSignalValueCommand {
223
+ /** Signal name */
224
+ name: string;
225
+ /** Value to set */
226
+ value: HalValue | undefined;
227
+ }
228
+ /** Connect pin to signal */
229
+ export interface ConnectCommand {
230
+ /** Full pin name (component.pin) */
231
+ pin: string;
232
+ /** Signal name */
233
+ signal: string;
234
+ }
235
+ /** Disconnect pin from signal */
236
+ export interface DisconnectCommand {
237
+ /** Full pin name (component.pin) */
238
+ pin: string;
239
+ }
240
+ /** Mark component ready */
241
+ export interface ReadyCommand {
242
+ /** Component name */
243
+ component: string;
244
+ }
245
+ /** Mark component not ready */
246
+ export interface UnreadyCommand {
247
+ /** Component name */
248
+ component: string;
249
+ }
250
+ /** Exit/destroy component */
251
+ export interface ExitComponentCommand {
252
+ /** Component name */
253
+ component: string;
254
+ }
255
+ /** Delete a signal */
256
+ export interface DeleteSignalCommand {
257
+ /** Signal name */
258
+ name: string;
259
+ }
260
+ /** Set message level */
261
+ export interface SetMessageLevelCommand {
262
+ /** New message level */
263
+ level: MessageLevel;
264
+ }
265
+ /** Get value of any pin, param, or signal */
266
+ export interface GetValueCommand {
267
+ /** Full name of pin, param, or signal */
268
+ name: string;
269
+ }
270
+ /** Query pins matching a pattern */
271
+ export interface QueryPinsCommand {
272
+ /** Glob pattern (e.g., "axis.*" or "*speed*") */
273
+ pattern: string;
274
+ }
275
+ /** Query signals matching a pattern */
276
+ export interface QuerySignalsCommand {
277
+ /** Glob pattern */
278
+ pattern: string;
279
+ }
280
+ /** Query params matching a pattern */
281
+ export interface QueryParamsCommand {
282
+ /** Glob pattern */
283
+ pattern: string;
284
+ }
285
+ /** Query components matching a pattern */
286
+ export interface QueryComponentsCommand {
287
+ /** Glob pattern */
288
+ pattern: string;
289
+ }
290
+ /** Check if component exists */
291
+ export interface ComponentExistsCommand {
292
+ /** Component name */
293
+ name: string;
294
+ }
295
+ /** Check if component is ready */
296
+ export interface ComponentReadyCommand {
297
+ /** Component name */
298
+ name: string;
299
+ }
300
+ /** Check if pin has a writer */
301
+ export interface PinHasWriterCommand {
302
+ /** Full pin name */
303
+ name: string;
304
+ }
305
+ export interface HalCommand {
306
+ /** Command timestamp */
307
+ timestamp: number;
308
+ /** Command serial number */
309
+ serial: number;
310
+ /** Component commands */
311
+ createComponent?: CreateComponentCommand | undefined;
312
+ ready?: ReadyCommand | undefined;
313
+ unready?: UnreadyCommand | undefined;
314
+ exitComponent?: ExitComponentCommand | undefined;
315
+ /** Pin commands */
316
+ createPin?: CreatePinCommand | undefined;
317
+ setPin?: SetPinValueCommand | undefined;
318
+ /** Parameter commands */
319
+ createParam?: CreateParamCommand | undefined;
320
+ setParam?: SetParamValueCommand | undefined;
321
+ /** Signal commands */
322
+ createSignal?: CreateSignalCommand | undefined;
323
+ setSignal?: SetSignalValueCommand | undefined;
324
+ deleteSignal?: DeleteSignalCommand | undefined;
325
+ /** Connection commands */
326
+ connect?: ConnectCommand | undefined;
327
+ disconnect?: DisconnectCommand | undefined;
328
+ /** Query commands */
329
+ getValue?: GetValueCommand | undefined;
330
+ queryPins?: QueryPinsCommand | undefined;
331
+ querySignals?: QuerySignalsCommand | undefined;
332
+ queryParams?: QueryParamsCommand | undefined;
333
+ queryComponents?: QueryComponentsCommand | undefined;
334
+ componentExists?: ComponentExistsCommand | undefined;
335
+ componentReady?: ComponentReadyCommand | undefined;
336
+ pinHasWriter?: PinHasWriterCommand | undefined;
337
+ /** System commands */
338
+ setMessageLevel?: SetMessageLevelCommand | undefined;
339
+ }
340
+ /** Generic command response */
341
+ export interface HalCommandResponse {
342
+ /** Echo of command serial */
343
+ serial: number;
344
+ /** True if command succeeded */
345
+ success: boolean;
346
+ /** Error message if failed */
347
+ error: string;
348
+ }
349
+ /** Response for get_value command */
350
+ export interface GetValueResponse {
351
+ serial: number;
352
+ success: boolean;
353
+ error: string;
354
+ /** The requested value */
355
+ value: HalValue | undefined;
356
+ /** Type of the value */
357
+ type: HalType;
358
+ }
359
+ /** Response for component_exists/component_ready/pin_has_writer */
360
+ export interface BoolResponse {
361
+ serial: number;
362
+ success: boolean;
363
+ error: string;
364
+ /** The boolean result */
365
+ result: boolean;
366
+ }
367
+ /** Response for query commands */
368
+ export interface QueryPinsResponse {
369
+ serial: number;
370
+ success: boolean;
371
+ error: string;
372
+ pins: HalPinInfo[];
373
+ }
374
+ export interface QuerySignalsResponse {
375
+ serial: number;
376
+ success: boolean;
377
+ error: string;
378
+ signals: HalSignalInfo[];
379
+ }
380
+ export interface QueryParamsResponse {
381
+ serial: number;
382
+ success: boolean;
383
+ error: string;
384
+ params: HalParamInfo[];
385
+ }
386
+ export interface QueryComponentsResponse {
387
+ serial: number;
388
+ success: boolean;
389
+ error: string;
390
+ components: HalComponentInfo[];
391
+ }
392
+ /** Subscribe to value changes */
393
+ export interface WatchRequest {
394
+ /** Pin/signal/param names to watch */
395
+ names: string[];
396
+ /** Minimum update interval in milliseconds (default: 100) */
397
+ intervalMs: number;
398
+ }
399
+ /** Value change notification */
400
+ export interface ValueChange {
401
+ /** When the change was detected */
402
+ timestamp: number;
403
+ /** Name of pin/signal/param */
404
+ name: string;
405
+ /** Previous value */
406
+ oldValue: HalValue | undefined;
407
+ /** New value */
408
+ newValue: HalValue | undefined;
409
+ }
410
+ /** Batch of value changes */
411
+ export interface ValueChangeBatch {
412
+ timestamp: number;
413
+ changes: ValueChange[];
414
+ }
415
+ /** Empty - returns complete status */
416
+ export interface GetSystemStatusRequest {
417
+ }
418
+ export interface HalStreamStatusRequest {
419
+ /** Update interval in milliseconds (default: 100) */
420
+ intervalMs: number;
421
+ /** Optional: only include these components */
422
+ filter: string[];
423
+ }
424
+ export declare const HalValue: MessageFns<HalValue>;
425
+ export declare const HalPinInfo: MessageFns<HalPinInfo>;
426
+ export declare const HalSignalInfo: MessageFns<HalSignalInfo>;
427
+ export declare const HalParamInfo: MessageFns<HalParamInfo>;
428
+ export declare const HalComponentInfo: MessageFns<HalComponentInfo>;
429
+ export declare const HalSystemStatus: MessageFns<HalSystemStatus>;
430
+ export declare const CreateComponentCommand: MessageFns<CreateComponentCommand>;
431
+ export declare const CreatePinCommand: MessageFns<CreatePinCommand>;
432
+ export declare const CreateParamCommand: MessageFns<CreateParamCommand>;
433
+ export declare const SetPinValueCommand: MessageFns<SetPinValueCommand>;
434
+ export declare const SetParamValueCommand: MessageFns<SetParamValueCommand>;
435
+ export declare const CreateSignalCommand: MessageFns<CreateSignalCommand>;
436
+ export declare const SetSignalValueCommand: MessageFns<SetSignalValueCommand>;
437
+ export declare const ConnectCommand: MessageFns<ConnectCommand>;
438
+ export declare const DisconnectCommand: MessageFns<DisconnectCommand>;
439
+ export declare const ReadyCommand: MessageFns<ReadyCommand>;
440
+ export declare const UnreadyCommand: MessageFns<UnreadyCommand>;
441
+ export declare const ExitComponentCommand: MessageFns<ExitComponentCommand>;
442
+ export declare const DeleteSignalCommand: MessageFns<DeleteSignalCommand>;
443
+ export declare const SetMessageLevelCommand: MessageFns<SetMessageLevelCommand>;
444
+ export declare const GetValueCommand: MessageFns<GetValueCommand>;
445
+ export declare const QueryPinsCommand: MessageFns<QueryPinsCommand>;
446
+ export declare const QuerySignalsCommand: MessageFns<QuerySignalsCommand>;
447
+ export declare const QueryParamsCommand: MessageFns<QueryParamsCommand>;
448
+ export declare const QueryComponentsCommand: MessageFns<QueryComponentsCommand>;
449
+ export declare const ComponentExistsCommand: MessageFns<ComponentExistsCommand>;
450
+ export declare const ComponentReadyCommand: MessageFns<ComponentReadyCommand>;
451
+ export declare const PinHasWriterCommand: MessageFns<PinHasWriterCommand>;
452
+ export declare const HalCommand: MessageFns<HalCommand>;
453
+ export declare const HalCommandResponse: MessageFns<HalCommandResponse>;
454
+ export declare const GetValueResponse: MessageFns<GetValueResponse>;
455
+ export declare const BoolResponse: MessageFns<BoolResponse>;
456
+ export declare const QueryPinsResponse: MessageFns<QueryPinsResponse>;
457
+ export declare const QuerySignalsResponse: MessageFns<QuerySignalsResponse>;
458
+ export declare const QueryParamsResponse: MessageFns<QueryParamsResponse>;
459
+ export declare const QueryComponentsResponse: MessageFns<QueryComponentsResponse>;
460
+ export declare const WatchRequest: MessageFns<WatchRequest>;
461
+ export declare const ValueChange: MessageFns<ValueChange>;
462
+ export declare const ValueChangeBatch: MessageFns<ValueChangeBatch>;
463
+ export declare const GetSystemStatusRequest: MessageFns<GetSystemStatusRequest>;
464
+ export declare const HalStreamStatusRequest: MessageFns<HalStreamStatusRequest>;
465
+ export type HalServiceService = typeof HalServiceService;
466
+ export declare const HalServiceService: {
467
+ /** Get complete HAL system status */
468
+ readonly getSystemStatus: {
469
+ readonly path: "/hal.HalService/GetSystemStatus";
470
+ readonly requestStream: false;
471
+ readonly responseStream: false;
472
+ readonly requestSerialize: (value: GetSystemStatusRequest) => Buffer;
473
+ readonly requestDeserialize: (value: Buffer) => GetSystemStatusRequest;
474
+ readonly responseSerialize: (value: HalSystemStatus) => Buffer;
475
+ readonly responseDeserialize: (value: Buffer) => HalSystemStatus;
476
+ };
477
+ /** Send a command */
478
+ readonly sendCommand: {
479
+ readonly path: "/hal.HalService/SendCommand";
480
+ readonly requestStream: false;
481
+ readonly responseStream: false;
482
+ readonly requestSerialize: (value: HalCommand) => Buffer;
483
+ readonly requestDeserialize: (value: Buffer) => HalCommand;
484
+ readonly responseSerialize: (value: HalCommandResponse) => Buffer;
485
+ readonly responseDeserialize: (value: Buffer) => HalCommandResponse;
486
+ };
487
+ /** Get a single value */
488
+ readonly getValue: {
489
+ readonly path: "/hal.HalService/GetValue";
490
+ readonly requestStream: false;
491
+ readonly responseStream: false;
492
+ readonly requestSerialize: (value: GetValueCommand) => Buffer;
493
+ readonly requestDeserialize: (value: Buffer) => GetValueCommand;
494
+ readonly responseSerialize: (value: GetValueResponse) => Buffer;
495
+ readonly responseDeserialize: (value: Buffer) => GetValueResponse;
496
+ };
497
+ /** Query pins */
498
+ readonly queryPins: {
499
+ readonly path: "/hal.HalService/QueryPins";
500
+ readonly requestStream: false;
501
+ readonly responseStream: false;
502
+ readonly requestSerialize: (value: QueryPinsCommand) => Buffer;
503
+ readonly requestDeserialize: (value: Buffer) => QueryPinsCommand;
504
+ readonly responseSerialize: (value: QueryPinsResponse) => Buffer;
505
+ readonly responseDeserialize: (value: Buffer) => QueryPinsResponse;
506
+ };
507
+ /** Query signals */
508
+ readonly querySignals: {
509
+ readonly path: "/hal.HalService/QuerySignals";
510
+ readonly requestStream: false;
511
+ readonly responseStream: false;
512
+ readonly requestSerialize: (value: QuerySignalsCommand) => Buffer;
513
+ readonly requestDeserialize: (value: Buffer) => QuerySignalsCommand;
514
+ readonly responseSerialize: (value: QuerySignalsResponse) => Buffer;
515
+ readonly responseDeserialize: (value: Buffer) => QuerySignalsResponse;
516
+ };
517
+ /** Query parameters */
518
+ readonly queryParams: {
519
+ readonly path: "/hal.HalService/QueryParams";
520
+ readonly requestStream: false;
521
+ readonly responseStream: false;
522
+ readonly requestSerialize: (value: QueryParamsCommand) => Buffer;
523
+ readonly requestDeserialize: (value: Buffer) => QueryParamsCommand;
524
+ readonly responseSerialize: (value: QueryParamsResponse) => Buffer;
525
+ readonly responseDeserialize: (value: Buffer) => QueryParamsResponse;
526
+ };
527
+ /** Query components */
528
+ readonly queryComponents: {
529
+ readonly path: "/hal.HalService/QueryComponents";
530
+ readonly requestStream: false;
531
+ readonly responseStream: false;
532
+ readonly requestSerialize: (value: QueryComponentsCommand) => Buffer;
533
+ readonly requestDeserialize: (value: Buffer) => QueryComponentsCommand;
534
+ readonly responseSerialize: (value: QueryComponentsResponse) => Buffer;
535
+ readonly responseDeserialize: (value: Buffer) => QueryComponentsResponse;
536
+ };
537
+ /** Stream system status updates */
538
+ readonly streamStatus: {
539
+ readonly path: "/hal.HalService/StreamStatus";
540
+ readonly requestStream: false;
541
+ readonly responseStream: true;
542
+ readonly requestSerialize: (value: HalStreamStatusRequest) => Buffer;
543
+ readonly requestDeserialize: (value: Buffer) => HalStreamStatusRequest;
544
+ readonly responseSerialize: (value: HalSystemStatus) => Buffer;
545
+ readonly responseDeserialize: (value: Buffer) => HalSystemStatus;
546
+ };
547
+ /** Watch for value changes */
548
+ readonly watchValues: {
549
+ readonly path: "/hal.HalService/WatchValues";
550
+ readonly requestStream: false;
551
+ readonly responseStream: true;
552
+ readonly requestSerialize: (value: WatchRequest) => Buffer;
553
+ readonly requestDeserialize: (value: Buffer) => WatchRequest;
554
+ readonly responseSerialize: (value: ValueChangeBatch) => Buffer;
555
+ readonly responseDeserialize: (value: Buffer) => ValueChangeBatch;
556
+ };
557
+ };
558
+ export interface HalServiceServer extends UntypedServiceImplementation {
559
+ /** Get complete HAL system status */
560
+ getSystemStatus: handleUnaryCall<GetSystemStatusRequest, HalSystemStatus>;
561
+ /** Send a command */
562
+ sendCommand: handleUnaryCall<HalCommand, HalCommandResponse>;
563
+ /** Get a single value */
564
+ getValue: handleUnaryCall<GetValueCommand, GetValueResponse>;
565
+ /** Query pins */
566
+ queryPins: handleUnaryCall<QueryPinsCommand, QueryPinsResponse>;
567
+ /** Query signals */
568
+ querySignals: handleUnaryCall<QuerySignalsCommand, QuerySignalsResponse>;
569
+ /** Query parameters */
570
+ queryParams: handleUnaryCall<QueryParamsCommand, QueryParamsResponse>;
571
+ /** Query components */
572
+ queryComponents: handleUnaryCall<QueryComponentsCommand, QueryComponentsResponse>;
573
+ /** Stream system status updates */
574
+ streamStatus: handleServerStreamingCall<HalStreamStatusRequest, HalSystemStatus>;
575
+ /** Watch for value changes */
576
+ watchValues: handleServerStreamingCall<WatchRequest, ValueChangeBatch>;
577
+ }
578
+ export interface HalServiceClient extends Client {
579
+ /** Get complete HAL system status */
580
+ getSystemStatus(request: GetSystemStatusRequest, callback: (error: ServiceError | null, response: HalSystemStatus) => void): ClientUnaryCall;
581
+ getSystemStatus(request: GetSystemStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: HalSystemStatus) => void): ClientUnaryCall;
582
+ getSystemStatus(request: GetSystemStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: HalSystemStatus) => void): ClientUnaryCall;
583
+ /** Send a command */
584
+ sendCommand(request: HalCommand, callback: (error: ServiceError | null, response: HalCommandResponse) => void): ClientUnaryCall;
585
+ sendCommand(request: HalCommand, metadata: Metadata, callback: (error: ServiceError | null, response: HalCommandResponse) => void): ClientUnaryCall;
586
+ sendCommand(request: HalCommand, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: HalCommandResponse) => void): ClientUnaryCall;
587
+ /** Get a single value */
588
+ getValue(request: GetValueCommand, callback: (error: ServiceError | null, response: GetValueResponse) => void): ClientUnaryCall;
589
+ getValue(request: GetValueCommand, metadata: Metadata, callback: (error: ServiceError | null, response: GetValueResponse) => void): ClientUnaryCall;
590
+ getValue(request: GetValueCommand, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetValueResponse) => void): ClientUnaryCall;
591
+ /** Query pins */
592
+ queryPins(request: QueryPinsCommand, callback: (error: ServiceError | null, response: QueryPinsResponse) => void): ClientUnaryCall;
593
+ queryPins(request: QueryPinsCommand, metadata: Metadata, callback: (error: ServiceError | null, response: QueryPinsResponse) => void): ClientUnaryCall;
594
+ queryPins(request: QueryPinsCommand, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryPinsResponse) => void): ClientUnaryCall;
595
+ /** Query signals */
596
+ querySignals(request: QuerySignalsCommand, callback: (error: ServiceError | null, response: QuerySignalsResponse) => void): ClientUnaryCall;
597
+ querySignals(request: QuerySignalsCommand, metadata: Metadata, callback: (error: ServiceError | null, response: QuerySignalsResponse) => void): ClientUnaryCall;
598
+ querySignals(request: QuerySignalsCommand, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QuerySignalsResponse) => void): ClientUnaryCall;
599
+ /** Query parameters */
600
+ queryParams(request: QueryParamsCommand, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
601
+ queryParams(request: QueryParamsCommand, metadata: Metadata, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
602
+ queryParams(request: QueryParamsCommand, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
603
+ /** Query components */
604
+ queryComponents(request: QueryComponentsCommand, callback: (error: ServiceError | null, response: QueryComponentsResponse) => void): ClientUnaryCall;
605
+ queryComponents(request: QueryComponentsCommand, metadata: Metadata, callback: (error: ServiceError | null, response: QueryComponentsResponse) => void): ClientUnaryCall;
606
+ queryComponents(request: QueryComponentsCommand, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryComponentsResponse) => void): ClientUnaryCall;
607
+ /** Stream system status updates */
608
+ streamStatus(request: HalStreamStatusRequest, options?: Partial<CallOptions>): ClientReadableStream<HalSystemStatus>;
609
+ streamStatus(request: HalStreamStatusRequest, metadata?: Metadata, options?: Partial<CallOptions>): ClientReadableStream<HalSystemStatus>;
610
+ /** Watch for value changes */
611
+ watchValues(request: WatchRequest, options?: Partial<CallOptions>): ClientReadableStream<ValueChangeBatch>;
612
+ watchValues(request: WatchRequest, metadata?: Metadata, options?: Partial<CallOptions>): ClientReadableStream<ValueChangeBatch>;
613
+ }
614
+ export declare const HalServiceClient: {
615
+ new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): HalServiceClient;
616
+ service: typeof HalServiceService;
617
+ serviceName: string;
618
+ };
619
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
620
+ type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
621
+ [K in keyof T]?: DeepPartial<T[K]>;
622
+ } : Partial<T>;
623
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
624
+ type Exact<P, I extends P> = P extends Builtin ? P : P & {
625
+ [K in keyof P]: Exact<P[K], I[K]>;
626
+ } & {
627
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
628
+ };
629
+ interface MessageFns<T> {
630
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
631
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
632
+ fromJSON(object: any): T;
633
+ toJSON(message: T): unknown;
634
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
635
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
636
+ }
637
+ export {};