@viamrobotics/sdk 0.19.0 → 0.19.1-rc.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.
- package/dist/app/app-client.d.ts +19 -7
- package/dist/gen/app/v1/app_pb.d.ts +144 -0
- package/dist/gen/app/v1/app_pb_service.d.ts +38 -0
- package/dist/gen/app/v1/robot_pb.d.ts +34 -0
- package/dist/gen/robot/v1/robot_pb.d.ts +80 -0
- package/dist/gen/robot/v1/robot_pb_service.d.ts +19 -0
- package/dist/main.es.js +23615 -22962
- package/dist/main.umd.js +19 -19
- package/package.json +1 -1
package/dist/app/app-client.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { type LogEntry } from '../gen/common/v1/common_pb';
|
|
|
3
3
|
import { type RpcOptions } from '@improbable-eng/grpc-web/dist/typings/client.d';
|
|
4
4
|
import type { StructType } from '../types';
|
|
5
5
|
import { type PackageTypeMap } from '../gen/app/packages/v1/packages_pb';
|
|
6
|
+
import type { FragmentVisibilityMap } from '../gen/app/v1/app_pb';
|
|
6
7
|
/**
|
|
7
8
|
* Creates an Authorization object from auth details.
|
|
8
9
|
*
|
|
@@ -380,11 +381,17 @@ export declare class AppClient {
|
|
|
380
381
|
* Lists all fragments within an organization.
|
|
381
382
|
*
|
|
382
383
|
* @param orgId The ID of the organization to list fragments for
|
|
383
|
-
* @param publicOnly Optional
|
|
384
|
-
* be listed. Defaults to
|
|
384
|
+
* @param publicOnly Optional, deprecated boolean. Use fragmentVisibilities
|
|
385
|
+
* instead. If true then only public fragments will be listed. Defaults to
|
|
386
|
+
* true
|
|
387
|
+
* @param fragmentVisibilities Optional list of fragment visibilities to
|
|
388
|
+
* include in returned list. An empty fragmentVisibilities list defaults to
|
|
389
|
+
* normal publicOnly behavior (discludes unlisted public fragments)
|
|
390
|
+
* Otherwise, fragment visibilities should contain one of the three
|
|
391
|
+
* visibilities and takes precendence over the publicOnly field
|
|
385
392
|
* @returns The list of fragment objects
|
|
386
393
|
*/
|
|
387
|
-
listFragments(orgId: string, publicOnly?: boolean): Promise<pb.Fragment.AsObject[]>;
|
|
394
|
+
listFragments(orgId: string, publicOnly?: boolean, fragmentVisibilities?: FragmentVisibilityMap[keyof FragmentVisibilityMap][]): Promise<pb.Fragment.AsObject[]>;
|
|
388
395
|
/**
|
|
389
396
|
* Looks up a fragment by ID.
|
|
390
397
|
*
|
|
@@ -407,12 +414,17 @@ export declare class AppClient {
|
|
|
407
414
|
* @param id The ID of the fragment to update
|
|
408
415
|
* @param name The name to update the fragment to
|
|
409
416
|
* @param config The config to update the fragment to
|
|
410
|
-
* @param makePublic Optional boolean specifying whether the
|
|
411
|
-
* be public or not. If not passed the visibility will be
|
|
412
|
-
* Fragments are private by default when created
|
|
417
|
+
* @param makePublic Optional, deprecated boolean specifying whether the
|
|
418
|
+
* fragment should be public or not. If not passed, the visibility will be
|
|
419
|
+
* unchanged. Fragments are private by default when created
|
|
420
|
+
* @param visibility Optional FragmentVisibility specifying the updated
|
|
421
|
+
* fragment visibility. If not passed, the visibility will be unchanged. If
|
|
422
|
+
* visibility is not set and makePublic is set, makePublic takes effect. If
|
|
423
|
+
* makePublic and visibility are set, they must not be conflicting. If
|
|
424
|
+
* neither is set, the fragment visibility will remain unchanged.
|
|
413
425
|
* @returns The updated fragment
|
|
414
426
|
*/
|
|
415
|
-
updateFragment(id: string, name: string, config: StructType, makePublic?: boolean): Promise<pb.UpdateFragmentResponse.AsObject>;
|
|
427
|
+
updateFragment(id: string, name: string, config: StructType, makePublic?: boolean, visibility?: keyof pb.FragmentVisibilityMap): Promise<pb.UpdateFragmentResponse.AsObject>;
|
|
416
428
|
/**
|
|
417
429
|
* Deletes a fragment.
|
|
418
430
|
*
|
|
@@ -2189,6 +2189,44 @@ export namespace Fragment {
|
|
|
2189
2189
|
}
|
|
2190
2190
|
}
|
|
2191
2191
|
|
|
2192
|
+
export class FragmentHistoryEntry extends jspb.Message {
|
|
2193
|
+
getFragment(): string;
|
|
2194
|
+
setFragment(value: string): void;
|
|
2195
|
+
|
|
2196
|
+
hasEditedOn(): boolean;
|
|
2197
|
+
clearEditedOn(): void;
|
|
2198
|
+
getEditedOn(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
2199
|
+
setEditedOn(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
2200
|
+
|
|
2201
|
+
hasOld(): boolean;
|
|
2202
|
+
clearOld(): void;
|
|
2203
|
+
getOld(): Fragment | undefined;
|
|
2204
|
+
setOld(value?: Fragment): void;
|
|
2205
|
+
|
|
2206
|
+
hasEditedBy(): boolean;
|
|
2207
|
+
clearEditedBy(): void;
|
|
2208
|
+
getEditedBy(): AuthenticatorInfo | undefined;
|
|
2209
|
+
setEditedBy(value?: AuthenticatorInfo): void;
|
|
2210
|
+
|
|
2211
|
+
serializeBinary(): Uint8Array;
|
|
2212
|
+
toObject(includeInstance?: boolean): FragmentHistoryEntry.AsObject;
|
|
2213
|
+
static toObject(includeInstance: boolean, msg: FragmentHistoryEntry): FragmentHistoryEntry.AsObject;
|
|
2214
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
2215
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
2216
|
+
static serializeBinaryToWriter(message: FragmentHistoryEntry, writer: jspb.BinaryWriter): void;
|
|
2217
|
+
static deserializeBinary(bytes: Uint8Array): FragmentHistoryEntry;
|
|
2218
|
+
static deserializeBinaryFromReader(message: FragmentHistoryEntry, reader: jspb.BinaryReader): FragmentHistoryEntry;
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
export namespace FragmentHistoryEntry {
|
|
2222
|
+
export type AsObject = {
|
|
2223
|
+
fragment: string,
|
|
2224
|
+
editedOn?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
2225
|
+
old?: Fragment.AsObject,
|
|
2226
|
+
editedBy?: AuthenticatorInfo.AsObject,
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2229
|
+
|
|
2192
2230
|
export class ListFragmentsRequest extends jspb.Message {
|
|
2193
2231
|
getOrganizationId(): string;
|
|
2194
2232
|
setOrganizationId(value: string): void;
|
|
@@ -2435,6 +2473,64 @@ export namespace DeleteFragmentResponse {
|
|
|
2435
2473
|
}
|
|
2436
2474
|
}
|
|
2437
2475
|
|
|
2476
|
+
export class GetFragmentHistoryRequest extends jspb.Message {
|
|
2477
|
+
getId(): string;
|
|
2478
|
+
setId(value: string): void;
|
|
2479
|
+
|
|
2480
|
+
hasPageToken(): boolean;
|
|
2481
|
+
clearPageToken(): void;
|
|
2482
|
+
getPageToken(): string;
|
|
2483
|
+
setPageToken(value: string): void;
|
|
2484
|
+
|
|
2485
|
+
hasPageLimit(): boolean;
|
|
2486
|
+
clearPageLimit(): void;
|
|
2487
|
+
getPageLimit(): number;
|
|
2488
|
+
setPageLimit(value: number): void;
|
|
2489
|
+
|
|
2490
|
+
serializeBinary(): Uint8Array;
|
|
2491
|
+
toObject(includeInstance?: boolean): GetFragmentHistoryRequest.AsObject;
|
|
2492
|
+
static toObject(includeInstance: boolean, msg: GetFragmentHistoryRequest): GetFragmentHistoryRequest.AsObject;
|
|
2493
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
2494
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
2495
|
+
static serializeBinaryToWriter(message: GetFragmentHistoryRequest, writer: jspb.BinaryWriter): void;
|
|
2496
|
+
static deserializeBinary(bytes: Uint8Array): GetFragmentHistoryRequest;
|
|
2497
|
+
static deserializeBinaryFromReader(message: GetFragmentHistoryRequest, reader: jspb.BinaryReader): GetFragmentHistoryRequest;
|
|
2498
|
+
}
|
|
2499
|
+
|
|
2500
|
+
export namespace GetFragmentHistoryRequest {
|
|
2501
|
+
export type AsObject = {
|
|
2502
|
+
id: string,
|
|
2503
|
+
pageToken: string,
|
|
2504
|
+
pageLimit: number,
|
|
2505
|
+
}
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
export class GetFragmentHistoryResponse extends jspb.Message {
|
|
2509
|
+
clearHistoryList(): void;
|
|
2510
|
+
getHistoryList(): Array<FragmentHistoryEntry>;
|
|
2511
|
+
setHistoryList(value: Array<FragmentHistoryEntry>): void;
|
|
2512
|
+
addHistory(value?: FragmentHistoryEntry, index?: number): FragmentHistoryEntry;
|
|
2513
|
+
|
|
2514
|
+
getNextPageToken(): string;
|
|
2515
|
+
setNextPageToken(value: string): void;
|
|
2516
|
+
|
|
2517
|
+
serializeBinary(): Uint8Array;
|
|
2518
|
+
toObject(includeInstance?: boolean): GetFragmentHistoryResponse.AsObject;
|
|
2519
|
+
static toObject(includeInstance: boolean, msg: GetFragmentHistoryResponse): GetFragmentHistoryResponse.AsObject;
|
|
2520
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
2521
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
2522
|
+
static serializeBinaryToWriter(message: GetFragmentHistoryResponse, writer: jspb.BinaryWriter): void;
|
|
2523
|
+
static deserializeBinary(bytes: Uint8Array): GetFragmentHistoryResponse;
|
|
2524
|
+
static deserializeBinaryFromReader(message: GetFragmentHistoryResponse, reader: jspb.BinaryReader): GetFragmentHistoryResponse;
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
export namespace GetFragmentHistoryResponse {
|
|
2528
|
+
export type AsObject = {
|
|
2529
|
+
historyList: Array<FragmentHistoryEntry.AsObject>,
|
|
2530
|
+
nextPageToken: string,
|
|
2531
|
+
}
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2438
2534
|
export class ListRobotsRequest extends jspb.Message {
|
|
2439
2535
|
getLocationId(): string;
|
|
2440
2536
|
setLocationId(value: string): void;
|
|
@@ -2455,6 +2551,54 @@ export namespace ListRobotsRequest {
|
|
|
2455
2551
|
}
|
|
2456
2552
|
}
|
|
2457
2553
|
|
|
2554
|
+
export class ListMachineFragmentsRequest extends jspb.Message {
|
|
2555
|
+
getMachineId(): string;
|
|
2556
|
+
setMachineId(value: string): void;
|
|
2557
|
+
|
|
2558
|
+
clearAdditionalFragmentIdsList(): void;
|
|
2559
|
+
getAdditionalFragmentIdsList(): Array<string>;
|
|
2560
|
+
setAdditionalFragmentIdsList(value: Array<string>): void;
|
|
2561
|
+
addAdditionalFragmentIds(value: string, index?: number): string;
|
|
2562
|
+
|
|
2563
|
+
serializeBinary(): Uint8Array;
|
|
2564
|
+
toObject(includeInstance?: boolean): ListMachineFragmentsRequest.AsObject;
|
|
2565
|
+
static toObject(includeInstance: boolean, msg: ListMachineFragmentsRequest): ListMachineFragmentsRequest.AsObject;
|
|
2566
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
2567
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
2568
|
+
static serializeBinaryToWriter(message: ListMachineFragmentsRequest, writer: jspb.BinaryWriter): void;
|
|
2569
|
+
static deserializeBinary(bytes: Uint8Array): ListMachineFragmentsRequest;
|
|
2570
|
+
static deserializeBinaryFromReader(message: ListMachineFragmentsRequest, reader: jspb.BinaryReader): ListMachineFragmentsRequest;
|
|
2571
|
+
}
|
|
2572
|
+
|
|
2573
|
+
export namespace ListMachineFragmentsRequest {
|
|
2574
|
+
export type AsObject = {
|
|
2575
|
+
machineId: string,
|
|
2576
|
+
additionalFragmentIdsList: Array<string>,
|
|
2577
|
+
}
|
|
2578
|
+
}
|
|
2579
|
+
|
|
2580
|
+
export class ListMachineFragmentsResponse extends jspb.Message {
|
|
2581
|
+
clearFragmentsList(): void;
|
|
2582
|
+
getFragmentsList(): Array<Fragment>;
|
|
2583
|
+
setFragmentsList(value: Array<Fragment>): void;
|
|
2584
|
+
addFragments(value?: Fragment, index?: number): Fragment;
|
|
2585
|
+
|
|
2586
|
+
serializeBinary(): Uint8Array;
|
|
2587
|
+
toObject(includeInstance?: boolean): ListMachineFragmentsResponse.AsObject;
|
|
2588
|
+
static toObject(includeInstance: boolean, msg: ListMachineFragmentsResponse): ListMachineFragmentsResponse.AsObject;
|
|
2589
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
2590
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
2591
|
+
static serializeBinaryToWriter(message: ListMachineFragmentsResponse, writer: jspb.BinaryWriter): void;
|
|
2592
|
+
static deserializeBinary(bytes: Uint8Array): ListMachineFragmentsResponse;
|
|
2593
|
+
static deserializeBinaryFromReader(message: ListMachineFragmentsResponse, reader: jspb.BinaryReader): ListMachineFragmentsResponse;
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2596
|
+
export namespace ListMachineFragmentsResponse {
|
|
2597
|
+
export type AsObject = {
|
|
2598
|
+
fragmentsList: Array<Fragment.AsObject>,
|
|
2599
|
+
}
|
|
2600
|
+
}
|
|
2601
|
+
|
|
2458
2602
|
export class ListRobotsResponse extends jspb.Message {
|
|
2459
2603
|
clearRobotsList(): void;
|
|
2460
2604
|
getRobotsList(): Array<Robot>;
|
|
@@ -445,6 +445,24 @@ type AppServiceDeleteFragment = {
|
|
|
445
445
|
readonly responseType: typeof app_v1_app_pb.DeleteFragmentResponse;
|
|
446
446
|
};
|
|
447
447
|
|
|
448
|
+
type AppServiceListMachineFragments = {
|
|
449
|
+
readonly methodName: string;
|
|
450
|
+
readonly service: typeof AppService;
|
|
451
|
+
readonly requestStream: false;
|
|
452
|
+
readonly responseStream: false;
|
|
453
|
+
readonly requestType: typeof app_v1_app_pb.ListMachineFragmentsRequest;
|
|
454
|
+
readonly responseType: typeof app_v1_app_pb.ListMachineFragmentsResponse;
|
|
455
|
+
};
|
|
456
|
+
|
|
457
|
+
type AppServiceGetFragmentHistory = {
|
|
458
|
+
readonly methodName: string;
|
|
459
|
+
readonly service: typeof AppService;
|
|
460
|
+
readonly requestStream: false;
|
|
461
|
+
readonly responseStream: false;
|
|
462
|
+
readonly requestType: typeof app_v1_app_pb.GetFragmentHistoryRequest;
|
|
463
|
+
readonly responseType: typeof app_v1_app_pb.GetFragmentHistoryResponse;
|
|
464
|
+
};
|
|
465
|
+
|
|
448
466
|
type AppServiceAddRole = {
|
|
449
467
|
readonly methodName: string;
|
|
450
468
|
readonly service: typeof AppService;
|
|
@@ -694,6 +712,8 @@ export class AppService {
|
|
|
694
712
|
static readonly CreateFragment: AppServiceCreateFragment;
|
|
695
713
|
static readonly UpdateFragment: AppServiceUpdateFragment;
|
|
696
714
|
static readonly DeleteFragment: AppServiceDeleteFragment;
|
|
715
|
+
static readonly ListMachineFragments: AppServiceListMachineFragments;
|
|
716
|
+
static readonly GetFragmentHistory: AppServiceGetFragmentHistory;
|
|
697
717
|
static readonly AddRole: AppServiceAddRole;
|
|
698
718
|
static readonly RemoveRole: AppServiceRemoveRole;
|
|
699
719
|
static readonly ChangeRole: AppServiceChangeRole;
|
|
@@ -1183,6 +1203,24 @@ export class AppServiceClient {
|
|
|
1183
1203
|
requestMessage: app_v1_app_pb.DeleteFragmentRequest,
|
|
1184
1204
|
callback: (error: ServiceError|null, responseMessage: app_v1_app_pb.DeleteFragmentResponse|null) => void
|
|
1185
1205
|
): UnaryResponse;
|
|
1206
|
+
listMachineFragments(
|
|
1207
|
+
requestMessage: app_v1_app_pb.ListMachineFragmentsRequest,
|
|
1208
|
+
metadata: grpc.Metadata,
|
|
1209
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_app_pb.ListMachineFragmentsResponse|null) => void
|
|
1210
|
+
): UnaryResponse;
|
|
1211
|
+
listMachineFragments(
|
|
1212
|
+
requestMessage: app_v1_app_pb.ListMachineFragmentsRequest,
|
|
1213
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_app_pb.ListMachineFragmentsResponse|null) => void
|
|
1214
|
+
): UnaryResponse;
|
|
1215
|
+
getFragmentHistory(
|
|
1216
|
+
requestMessage: app_v1_app_pb.GetFragmentHistoryRequest,
|
|
1217
|
+
metadata: grpc.Metadata,
|
|
1218
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_app_pb.GetFragmentHistoryResponse|null) => void
|
|
1219
|
+
): UnaryResponse;
|
|
1220
|
+
getFragmentHistory(
|
|
1221
|
+
requestMessage: app_v1_app_pb.GetFragmentHistoryRequest,
|
|
1222
|
+
callback: (error: ServiceError|null, responseMessage: app_v1_app_pb.GetFragmentHistoryResponse|null) => void
|
|
1223
|
+
): UnaryResponse;
|
|
1186
1224
|
addRole(
|
|
1187
1225
|
requestMessage: app_v1_app_pb.AddRoleRequest,
|
|
1188
1226
|
metadata: grpc.Metadata,
|
|
@@ -71,6 +71,14 @@ export class RobotConfig extends jspb.Message {
|
|
|
71
71
|
getEnableWebProfile(): boolean;
|
|
72
72
|
setEnableWebProfile(value: boolean): void;
|
|
73
73
|
|
|
74
|
+
clearLogList(): void;
|
|
75
|
+
getLogList(): Array<LogPatternConfig>;
|
|
76
|
+
setLogList(value: Array<LogPatternConfig>): void;
|
|
77
|
+
addLog(value?: LogPatternConfig, index?: number): LogPatternConfig;
|
|
78
|
+
|
|
79
|
+
getRevision(): string;
|
|
80
|
+
setRevision(value: string): void;
|
|
81
|
+
|
|
74
82
|
serializeBinary(): Uint8Array;
|
|
75
83
|
toObject(includeInstance?: boolean): RobotConfig.AsObject;
|
|
76
84
|
static toObject(includeInstance: boolean, msg: RobotConfig): RobotConfig.AsObject;
|
|
@@ -96,6 +104,32 @@ export namespace RobotConfig {
|
|
|
96
104
|
packagesList: Array<PackageConfig.AsObject>,
|
|
97
105
|
overwriteFragmentStatusList: Array<AppValidationStatus.AsObject>,
|
|
98
106
|
enableWebProfile: boolean,
|
|
107
|
+
logList: Array<LogPatternConfig.AsObject>,
|
|
108
|
+
revision: string,
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export class LogPatternConfig extends jspb.Message {
|
|
113
|
+
getPattern(): string;
|
|
114
|
+
setPattern(value: string): void;
|
|
115
|
+
|
|
116
|
+
getLevel(): string;
|
|
117
|
+
setLevel(value: string): void;
|
|
118
|
+
|
|
119
|
+
serializeBinary(): Uint8Array;
|
|
120
|
+
toObject(includeInstance?: boolean): LogPatternConfig.AsObject;
|
|
121
|
+
static toObject(includeInstance: boolean, msg: LogPatternConfig): LogPatternConfig.AsObject;
|
|
122
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
123
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
124
|
+
static serializeBinaryToWriter(message: LogPatternConfig, writer: jspb.BinaryWriter): void;
|
|
125
|
+
static deserializeBinary(bytes: Uint8Array): LogPatternConfig;
|
|
126
|
+
static deserializeBinaryFromReader(message: LogPatternConfig, reader: jspb.BinaryReader): LogPatternConfig;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export namespace LogPatternConfig {
|
|
130
|
+
export type AsObject = {
|
|
131
|
+
pattern: string,
|
|
132
|
+
level: string,
|
|
99
133
|
}
|
|
100
134
|
}
|
|
101
135
|
|
|
@@ -1081,6 +1081,86 @@ export namespace ShutdownResponse {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
}
|
|
1083
1083
|
|
|
1084
|
+
export class GetMachineStatusRequest extends jspb.Message {
|
|
1085
|
+
serializeBinary(): Uint8Array;
|
|
1086
|
+
toObject(includeInstance?: boolean): GetMachineStatusRequest.AsObject;
|
|
1087
|
+
static toObject(includeInstance: boolean, msg: GetMachineStatusRequest): GetMachineStatusRequest.AsObject;
|
|
1088
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1089
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1090
|
+
static serializeBinaryToWriter(message: GetMachineStatusRequest, writer: jspb.BinaryWriter): void;
|
|
1091
|
+
static deserializeBinary(bytes: Uint8Array): GetMachineStatusRequest;
|
|
1092
|
+
static deserializeBinaryFromReader(message: GetMachineStatusRequest, reader: jspb.BinaryReader): GetMachineStatusRequest;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
export namespace GetMachineStatusRequest {
|
|
1096
|
+
export type AsObject = {
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
export class GetMachineStatusResponse extends jspb.Message {
|
|
1101
|
+
clearResourcesList(): void;
|
|
1102
|
+
getResourcesList(): Array<ResourceStatus>;
|
|
1103
|
+
setResourcesList(value: Array<ResourceStatus>): void;
|
|
1104
|
+
addResources(value?: ResourceStatus, index?: number): ResourceStatus;
|
|
1105
|
+
|
|
1106
|
+
serializeBinary(): Uint8Array;
|
|
1107
|
+
toObject(includeInstance?: boolean): GetMachineStatusResponse.AsObject;
|
|
1108
|
+
static toObject(includeInstance: boolean, msg: GetMachineStatusResponse): GetMachineStatusResponse.AsObject;
|
|
1109
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1110
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1111
|
+
static serializeBinaryToWriter(message: GetMachineStatusResponse, writer: jspb.BinaryWriter): void;
|
|
1112
|
+
static deserializeBinary(bytes: Uint8Array): GetMachineStatusResponse;
|
|
1113
|
+
static deserializeBinaryFromReader(message: GetMachineStatusResponse, reader: jspb.BinaryReader): GetMachineStatusResponse;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
export namespace GetMachineStatusResponse {
|
|
1117
|
+
export type AsObject = {
|
|
1118
|
+
resourcesList: Array<ResourceStatus.AsObject>,
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
export class ResourceStatus extends jspb.Message {
|
|
1123
|
+
hasName(): boolean;
|
|
1124
|
+
clearName(): void;
|
|
1125
|
+
getName(): common_v1_common_pb.ResourceName | undefined;
|
|
1126
|
+
setName(value?: common_v1_common_pb.ResourceName): void;
|
|
1127
|
+
|
|
1128
|
+
getState(): ResourceStatus.StateMap[keyof ResourceStatus.StateMap];
|
|
1129
|
+
setState(value: ResourceStatus.StateMap[keyof ResourceStatus.StateMap]): void;
|
|
1130
|
+
|
|
1131
|
+
hasLastUpdated(): boolean;
|
|
1132
|
+
clearLastUpdated(): void;
|
|
1133
|
+
getLastUpdated(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
1134
|
+
setLastUpdated(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
1135
|
+
|
|
1136
|
+
serializeBinary(): Uint8Array;
|
|
1137
|
+
toObject(includeInstance?: boolean): ResourceStatus.AsObject;
|
|
1138
|
+
static toObject(includeInstance: boolean, msg: ResourceStatus): ResourceStatus.AsObject;
|
|
1139
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1140
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1141
|
+
static serializeBinaryToWriter(message: ResourceStatus, writer: jspb.BinaryWriter): void;
|
|
1142
|
+
static deserializeBinary(bytes: Uint8Array): ResourceStatus;
|
|
1143
|
+
static deserializeBinaryFromReader(message: ResourceStatus, reader: jspb.BinaryReader): ResourceStatus;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
export namespace ResourceStatus {
|
|
1147
|
+
export type AsObject = {
|
|
1148
|
+
name?: common_v1_common_pb.ResourceName.AsObject,
|
|
1149
|
+
state: ResourceStatus.StateMap[keyof ResourceStatus.StateMap],
|
|
1150
|
+
lastUpdated?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
export interface StateMap {
|
|
1154
|
+
STATE_UNSPECIFIED: 0;
|
|
1155
|
+
STATE_UNCONFIGURED: 1;
|
|
1156
|
+
STATE_CONFIGURING: 2;
|
|
1157
|
+
STATE_READY: 3;
|
|
1158
|
+
STATE_REMOVING: 4;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
export const State: StateMap;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1084
1164
|
export interface PeerConnectionTypeMap {
|
|
1085
1165
|
PEER_CONNECTION_TYPE_UNSPECIFIED: 0;
|
|
1086
1166
|
PEER_CONNECTION_TYPE_GRPC: 1;
|
|
@@ -175,6 +175,15 @@ type RobotServiceShutdown = {
|
|
|
175
175
|
readonly responseType: typeof robot_v1_robot_pb.ShutdownResponse;
|
|
176
176
|
};
|
|
177
177
|
|
|
178
|
+
type RobotServiceGetMachineStatus = {
|
|
179
|
+
readonly methodName: string;
|
|
180
|
+
readonly service: typeof RobotService;
|
|
181
|
+
readonly requestStream: false;
|
|
182
|
+
readonly responseStream: false;
|
|
183
|
+
readonly requestType: typeof robot_v1_robot_pb.GetMachineStatusRequest;
|
|
184
|
+
readonly responseType: typeof robot_v1_robot_pb.GetMachineStatusResponse;
|
|
185
|
+
};
|
|
186
|
+
|
|
178
187
|
export class RobotService {
|
|
179
188
|
static readonly serviceName: string;
|
|
180
189
|
static readonly GetOperations: RobotServiceGetOperations;
|
|
@@ -196,6 +205,7 @@ export class RobotService {
|
|
|
196
205
|
static readonly GetCloudMetadata: RobotServiceGetCloudMetadata;
|
|
197
206
|
static readonly RestartModule: RobotServiceRestartModule;
|
|
198
207
|
static readonly Shutdown: RobotServiceShutdown;
|
|
208
|
+
static readonly GetMachineStatus: RobotServiceGetMachineStatus;
|
|
199
209
|
}
|
|
200
210
|
|
|
201
211
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -393,5 +403,14 @@ export class RobotServiceClient {
|
|
|
393
403
|
requestMessage: robot_v1_robot_pb.ShutdownRequest,
|
|
394
404
|
callback: (error: ServiceError|null, responseMessage: robot_v1_robot_pb.ShutdownResponse|null) => void
|
|
395
405
|
): UnaryResponse;
|
|
406
|
+
getMachineStatus(
|
|
407
|
+
requestMessage: robot_v1_robot_pb.GetMachineStatusRequest,
|
|
408
|
+
metadata: grpc.Metadata,
|
|
409
|
+
callback: (error: ServiceError|null, responseMessage: robot_v1_robot_pb.GetMachineStatusResponse|null) => void
|
|
410
|
+
): UnaryResponse;
|
|
411
|
+
getMachineStatus(
|
|
412
|
+
requestMessage: robot_v1_robot_pb.GetMachineStatusRequest,
|
|
413
|
+
callback: (error: ServiceError|null, responseMessage: robot_v1_robot_pb.GetMachineStatusResponse|null) => void
|
|
414
|
+
): UnaryResponse;
|
|
396
415
|
}
|
|
397
416
|
|