@viamrobotics/sdk 0.3.3 → 0.4.0-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/data-client.d.ts +24 -0
- package/dist/app/viam-client.d.ts +11 -0
- package/dist/app/viam-transport.d.ts +10 -0
- package/dist/gen/app/cloudslam/v1/cloud_slam_pb.d.ts +494 -0
- package/dist/gen/app/cloudslam/v1/cloud_slam_pb_service.d.ts +177 -0
- package/dist/gen/app/data/v1/data_pb.d.ts +1342 -0
- package/dist/gen/app/data/v1/data_pb_service.d.ts +386 -0
- package/dist/gen/app/dataset/v1/dataset_pb.d.ts +246 -0
- package/dist/gen/app/dataset/v1/dataset_pb_service.d.ts +139 -0
- package/dist/gen/app/datasync/v1/data_sync_pb.d.ts +425 -0
- package/dist/gen/app/datasync/v1/data_sync_pb_service.d.ts +85 -0
- package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +270 -0
- package/dist/gen/app/mltraining/v1/ml_training_pb_service.d.ts +120 -0
- package/dist/gen/app/packages/v1/packages_pb.d.ts +368 -0
- package/dist/gen/app/packages/v1/packages_pb_service.d.ts +112 -0
- package/dist/gen/app/v1/app_pb.d.ts +3801 -0
- package/dist/gen/app/v1/app_pb_service.d.ts +1225 -0
- package/dist/gen/app/v1/billing_pb.d.ts +753 -0
- package/dist/gen/app/v1/billing_pb_service.d.ts +207 -0
- package/dist/gen/app/v1/end_user_pb.d.ts +81 -0
- package/dist/gen/app/v1/end_user_pb_service.d.ts +82 -0
- package/dist/gen/app/v1/robot_pb.d.ts +1245 -0
- package/dist/gen/app/v1/robot_pb_service.d.ts +120 -0
- package/dist/gen/service/motion/v1/motion_pb.d.ts +442 -0
- package/dist/gen/service/motion/v1/motion_pb_service.d.ts +76 -0
- package/dist/main.d.ts +12 -0
- package/dist/main.es.js +35569 -25557
- package/dist/main.umd.js +20 -18
- package/dist/robot/dial.d.ts +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
// package: viam.app.cloudslam.v1
|
|
2
|
+
// file: app/cloudslam/v1/cloud_slam.proto
|
|
3
|
+
|
|
4
|
+
import * as app_cloudslam_v1_cloud_slam_pb from "../../../app/cloudslam/v1/cloud_slam_pb";
|
|
5
|
+
import {grpc} from "@improbable-eng/grpc-web";
|
|
6
|
+
|
|
7
|
+
type CloudSLAMServiceStartMappingSession = {
|
|
8
|
+
readonly methodName: string;
|
|
9
|
+
readonly service: typeof CloudSLAMService;
|
|
10
|
+
readonly requestStream: false;
|
|
11
|
+
readonly responseStream: false;
|
|
12
|
+
readonly requestType: typeof app_cloudslam_v1_cloud_slam_pb.StartMappingSessionRequest;
|
|
13
|
+
readonly responseType: typeof app_cloudslam_v1_cloud_slam_pb.StartMappingSessionResponse;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
type CloudSLAMServiceGetActiveMappingSessionsForRobot = {
|
|
17
|
+
readonly methodName: string;
|
|
18
|
+
readonly service: typeof CloudSLAMService;
|
|
19
|
+
readonly requestStream: false;
|
|
20
|
+
readonly responseStream: false;
|
|
21
|
+
readonly requestType: typeof app_cloudslam_v1_cloud_slam_pb.GetActiveMappingSessionsForRobotRequest;
|
|
22
|
+
readonly responseType: typeof app_cloudslam_v1_cloud_slam_pb.GetActiveMappingSessionsForRobotResponse;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
type CloudSLAMServiceGetMappingSessionPointCloud = {
|
|
26
|
+
readonly methodName: string;
|
|
27
|
+
readonly service: typeof CloudSLAMService;
|
|
28
|
+
readonly requestStream: false;
|
|
29
|
+
readonly responseStream: false;
|
|
30
|
+
readonly requestType: typeof app_cloudslam_v1_cloud_slam_pb.GetMappingSessionPointCloudRequest;
|
|
31
|
+
readonly responseType: typeof app_cloudslam_v1_cloud_slam_pb.GetMappingSessionPointCloudResponse;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
type CloudSLAMServiceListMappingSessions = {
|
|
35
|
+
readonly methodName: string;
|
|
36
|
+
readonly service: typeof CloudSLAMService;
|
|
37
|
+
readonly requestStream: false;
|
|
38
|
+
readonly responseStream: false;
|
|
39
|
+
readonly requestType: typeof app_cloudslam_v1_cloud_slam_pb.ListMappingSessionsRequest;
|
|
40
|
+
readonly responseType: typeof app_cloudslam_v1_cloud_slam_pb.ListMappingSessionsResponse;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
type CloudSLAMServiceStopMappingSession = {
|
|
44
|
+
readonly methodName: string;
|
|
45
|
+
readonly service: typeof CloudSLAMService;
|
|
46
|
+
readonly requestStream: false;
|
|
47
|
+
readonly responseStream: false;
|
|
48
|
+
readonly requestType: typeof app_cloudslam_v1_cloud_slam_pb.StopMappingSessionRequest;
|
|
49
|
+
readonly responseType: typeof app_cloudslam_v1_cloud_slam_pb.StopMappingSessionResponse;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
type CloudSLAMServiceGetMappingSessionMetadataByID = {
|
|
53
|
+
readonly methodName: string;
|
|
54
|
+
readonly service: typeof CloudSLAMService;
|
|
55
|
+
readonly requestStream: false;
|
|
56
|
+
readonly responseStream: false;
|
|
57
|
+
readonly requestType: typeof app_cloudslam_v1_cloud_slam_pb.GetMappingSessionMetadataByIDRequest;
|
|
58
|
+
readonly responseType: typeof app_cloudslam_v1_cloud_slam_pb.GetMappingSessionMetadataByIDResponse;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
type CloudSLAMServiceUpdateMappingSessionMetadataByID = {
|
|
62
|
+
readonly methodName: string;
|
|
63
|
+
readonly service: typeof CloudSLAMService;
|
|
64
|
+
readonly requestStream: false;
|
|
65
|
+
readonly responseStream: false;
|
|
66
|
+
readonly requestType: typeof app_cloudslam_v1_cloud_slam_pb.UpdateMappingSessionMetadataByIDRequest;
|
|
67
|
+
readonly responseType: typeof app_cloudslam_v1_cloud_slam_pb.UpdateMappingSessionMetadataByIDResponse;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export class CloudSLAMService {
|
|
71
|
+
static readonly serviceName: string;
|
|
72
|
+
static readonly StartMappingSession: CloudSLAMServiceStartMappingSession;
|
|
73
|
+
static readonly GetActiveMappingSessionsForRobot: CloudSLAMServiceGetActiveMappingSessionsForRobot;
|
|
74
|
+
static readonly GetMappingSessionPointCloud: CloudSLAMServiceGetMappingSessionPointCloud;
|
|
75
|
+
static readonly ListMappingSessions: CloudSLAMServiceListMappingSessions;
|
|
76
|
+
static readonly StopMappingSession: CloudSLAMServiceStopMappingSession;
|
|
77
|
+
static readonly GetMappingSessionMetadataByID: CloudSLAMServiceGetMappingSessionMetadataByID;
|
|
78
|
+
static readonly UpdateMappingSessionMetadataByID: CloudSLAMServiceUpdateMappingSessionMetadataByID;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
82
|
+
export type Status = { details: string, code: number; metadata: grpc.Metadata }
|
|
83
|
+
|
|
84
|
+
interface UnaryResponse {
|
|
85
|
+
cancel(): void;
|
|
86
|
+
}
|
|
87
|
+
interface ResponseStream<T> {
|
|
88
|
+
cancel(): void;
|
|
89
|
+
on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
|
|
90
|
+
on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
|
|
91
|
+
on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
|
|
92
|
+
}
|
|
93
|
+
interface RequestStream<T> {
|
|
94
|
+
write(message: T): RequestStream<T>;
|
|
95
|
+
end(): void;
|
|
96
|
+
cancel(): void;
|
|
97
|
+
on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
|
|
98
|
+
on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
|
|
99
|
+
}
|
|
100
|
+
interface BidirectionalStream<ReqT, ResT> {
|
|
101
|
+
write(message: ReqT): BidirectionalStream<ReqT, ResT>;
|
|
102
|
+
end(): void;
|
|
103
|
+
cancel(): void;
|
|
104
|
+
on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
|
|
105
|
+
on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
106
|
+
on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export class CloudSLAMServiceClient {
|
|
110
|
+
readonly serviceHost: string;
|
|
111
|
+
|
|
112
|
+
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
113
|
+
startMappingSession(
|
|
114
|
+
requestMessage: app_cloudslam_v1_cloud_slam_pb.StartMappingSessionRequest,
|
|
115
|
+
metadata: grpc.Metadata,
|
|
116
|
+
callback: (error: ServiceError|null, responseMessage: app_cloudslam_v1_cloud_slam_pb.StartMappingSessionResponse|null) => void
|
|
117
|
+
): UnaryResponse;
|
|
118
|
+
startMappingSession(
|
|
119
|
+
requestMessage: app_cloudslam_v1_cloud_slam_pb.StartMappingSessionRequest,
|
|
120
|
+
callback: (error: ServiceError|null, responseMessage: app_cloudslam_v1_cloud_slam_pb.StartMappingSessionResponse|null) => void
|
|
121
|
+
): UnaryResponse;
|
|
122
|
+
getActiveMappingSessionsForRobot(
|
|
123
|
+
requestMessage: app_cloudslam_v1_cloud_slam_pb.GetActiveMappingSessionsForRobotRequest,
|
|
124
|
+
metadata: grpc.Metadata,
|
|
125
|
+
callback: (error: ServiceError|null, responseMessage: app_cloudslam_v1_cloud_slam_pb.GetActiveMappingSessionsForRobotResponse|null) => void
|
|
126
|
+
): UnaryResponse;
|
|
127
|
+
getActiveMappingSessionsForRobot(
|
|
128
|
+
requestMessage: app_cloudslam_v1_cloud_slam_pb.GetActiveMappingSessionsForRobotRequest,
|
|
129
|
+
callback: (error: ServiceError|null, responseMessage: app_cloudslam_v1_cloud_slam_pb.GetActiveMappingSessionsForRobotResponse|null) => void
|
|
130
|
+
): UnaryResponse;
|
|
131
|
+
getMappingSessionPointCloud(
|
|
132
|
+
requestMessage: app_cloudslam_v1_cloud_slam_pb.GetMappingSessionPointCloudRequest,
|
|
133
|
+
metadata: grpc.Metadata,
|
|
134
|
+
callback: (error: ServiceError|null, responseMessage: app_cloudslam_v1_cloud_slam_pb.GetMappingSessionPointCloudResponse|null) => void
|
|
135
|
+
): UnaryResponse;
|
|
136
|
+
getMappingSessionPointCloud(
|
|
137
|
+
requestMessage: app_cloudslam_v1_cloud_slam_pb.GetMappingSessionPointCloudRequest,
|
|
138
|
+
callback: (error: ServiceError|null, responseMessage: app_cloudslam_v1_cloud_slam_pb.GetMappingSessionPointCloudResponse|null) => void
|
|
139
|
+
): UnaryResponse;
|
|
140
|
+
listMappingSessions(
|
|
141
|
+
requestMessage: app_cloudslam_v1_cloud_slam_pb.ListMappingSessionsRequest,
|
|
142
|
+
metadata: grpc.Metadata,
|
|
143
|
+
callback: (error: ServiceError|null, responseMessage: app_cloudslam_v1_cloud_slam_pb.ListMappingSessionsResponse|null) => void
|
|
144
|
+
): UnaryResponse;
|
|
145
|
+
listMappingSessions(
|
|
146
|
+
requestMessage: app_cloudslam_v1_cloud_slam_pb.ListMappingSessionsRequest,
|
|
147
|
+
callback: (error: ServiceError|null, responseMessage: app_cloudslam_v1_cloud_slam_pb.ListMappingSessionsResponse|null) => void
|
|
148
|
+
): UnaryResponse;
|
|
149
|
+
stopMappingSession(
|
|
150
|
+
requestMessage: app_cloudslam_v1_cloud_slam_pb.StopMappingSessionRequest,
|
|
151
|
+
metadata: grpc.Metadata,
|
|
152
|
+
callback: (error: ServiceError|null, responseMessage: app_cloudslam_v1_cloud_slam_pb.StopMappingSessionResponse|null) => void
|
|
153
|
+
): UnaryResponse;
|
|
154
|
+
stopMappingSession(
|
|
155
|
+
requestMessage: app_cloudslam_v1_cloud_slam_pb.StopMappingSessionRequest,
|
|
156
|
+
callback: (error: ServiceError|null, responseMessage: app_cloudslam_v1_cloud_slam_pb.StopMappingSessionResponse|null) => void
|
|
157
|
+
): UnaryResponse;
|
|
158
|
+
getMappingSessionMetadataByID(
|
|
159
|
+
requestMessage: app_cloudslam_v1_cloud_slam_pb.GetMappingSessionMetadataByIDRequest,
|
|
160
|
+
metadata: grpc.Metadata,
|
|
161
|
+
callback: (error: ServiceError|null, responseMessage: app_cloudslam_v1_cloud_slam_pb.GetMappingSessionMetadataByIDResponse|null) => void
|
|
162
|
+
): UnaryResponse;
|
|
163
|
+
getMappingSessionMetadataByID(
|
|
164
|
+
requestMessage: app_cloudslam_v1_cloud_slam_pb.GetMappingSessionMetadataByIDRequest,
|
|
165
|
+
callback: (error: ServiceError|null, responseMessage: app_cloudslam_v1_cloud_slam_pb.GetMappingSessionMetadataByIDResponse|null) => void
|
|
166
|
+
): UnaryResponse;
|
|
167
|
+
updateMappingSessionMetadataByID(
|
|
168
|
+
requestMessage: app_cloudslam_v1_cloud_slam_pb.UpdateMappingSessionMetadataByIDRequest,
|
|
169
|
+
metadata: grpc.Metadata,
|
|
170
|
+
callback: (error: ServiceError|null, responseMessage: app_cloudslam_v1_cloud_slam_pb.UpdateMappingSessionMetadataByIDResponse|null) => void
|
|
171
|
+
): UnaryResponse;
|
|
172
|
+
updateMappingSessionMetadataByID(
|
|
173
|
+
requestMessage: app_cloudslam_v1_cloud_slam_pb.UpdateMappingSessionMetadataByIDRequest,
|
|
174
|
+
callback: (error: ServiceError|null, responseMessage: app_cloudslam_v1_cloud_slam_pb.UpdateMappingSessionMetadataByIDResponse|null) => void
|
|
175
|
+
): UnaryResponse;
|
|
176
|
+
}
|
|
177
|
+
|