@viamrobotics/sdk 0.26.0 → 0.26.2

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 (40) hide show
  1. package/README.md +5 -2
  2. package/dist/api-version.d.ts +1 -1
  3. package/dist/components/arm/client.d.ts +9 -7
  4. package/dist/components/base/base.d.ts +1 -1
  5. package/dist/components/base/client.d.ts +10 -8
  6. package/dist/components/board/client.d.ts +14 -12
  7. package/dist/components/camera/client.d.ts +7 -5
  8. package/dist/components/encoder/client.d.ts +6 -4
  9. package/dist/components/gantry/client.d.ts +9 -7
  10. package/dist/components/generic/client.d.ts +3 -1
  11. package/dist/components/gripper/client.d.ts +7 -5
  12. package/dist/components/input-controller/client.d.ts +5 -3
  13. package/dist/components/motor/client.d.ts +13 -11
  14. package/dist/components/movement-sensor/client.d.ts +12 -10
  15. package/dist/components/power-sensor/client.d.ts +7 -5
  16. package/dist/components/sensor/client.d.ts +4 -2
  17. package/dist/components/servo/client.d.ts +7 -5
  18. package/dist/gen/app/build/v1/build_pb.d.ts +14 -0
  19. package/dist/gen/app/mlinference/v1/ml_inference_connect.d.ts +26 -0
  20. package/dist/gen/app/mlinference/v1/ml_inference_pb.d.ts +71 -0
  21. package/dist/gen/app/v1/app_pb.d.ts +35 -0
  22. package/dist/gen/app/v1/billing_pb.d.ts +177 -90
  23. package/dist/gen/app/v1/robot_pb.d.ts +7 -0
  24. package/dist/gen/proto/rpc/webrtc/v1/signaling_pb.d.ts +29 -0
  25. package/dist/gen/robot/v1/robot_pb.d.ts +5 -0
  26. package/dist/main.d.ts +1 -1
  27. package/dist/main.es.js +4175 -4102
  28. package/dist/main.umd.js +6 -6
  29. package/dist/rpc/base-channel.d.ts +1 -2
  30. package/dist/rpc/signaling-exchange.d.ts +1 -1
  31. package/dist/services/data-manager/client.d.ts +4 -2
  32. package/dist/services/generic/client.d.ts +3 -1
  33. package/dist/services/motion/client.d.ts +10 -8
  34. package/dist/services/navigation/client.d.ts +12 -10
  35. package/dist/services/slam/client.d.ts +7 -5
  36. package/dist/services/vision/client.d.ts +10 -8
  37. package/dist/utils.d.ts +5 -1
  38. package/package.json +10 -4
  39. package/dist/gen/proto/rpc/examples/fileupload/v1/fileupload_connect.d.ts +0 -26
  40. package/dist/gen/proto/rpc/examples/fileupload/v1/fileupload_pb.d.ts +0 -73
@@ -22,112 +22,79 @@ export declare enum PaymentMethodType {
22
22
  }
23
23
 
24
24
  /**
25
- * @generated from message viam.app.v1.InvoiceSummary
25
+ * @generated from enum viam.app.v1.UsageCostType
26
26
  */
27
- export declare class InvoiceSummary extends Message<InvoiceSummary> {
27
+ export declare enum UsageCostType {
28
28
  /**
29
- * @generated from field: string id = 1;
29
+ * @generated from enum value: USAGE_COST_TYPE_UNSPECIFIED = 0;
30
30
  */
31
- id: string;
31
+ UNSPECIFIED = 0,
32
32
 
33
33
  /**
34
- * @generated from field: google.protobuf.Timestamp invoice_date = 2;
34
+ * @generated from enum value: USAGE_COST_TYPE_DATA_UPLOAD = 1;
35
35
  */
36
- invoiceDate?: Timestamp;
36
+ DATA_UPLOAD = 1,
37
37
 
38
38
  /**
39
- * @generated from field: double invoice_amount = 3;
39
+ * @generated from enum value: USAGE_COST_TYPE_DATA_EGRESS = 2;
40
40
  */
41
- invoiceAmount: number;
41
+ DATA_EGRESS = 2,
42
42
 
43
43
  /**
44
- * @generated from field: string status = 4;
44
+ * @generated from enum value: USAGE_COST_TYPE_REMOTE_CONTROL = 3;
45
45
  */
46
- status: string;
46
+ REMOTE_CONTROL = 3,
47
47
 
48
48
  /**
49
- * @generated from field: google.protobuf.Timestamp due_date = 5;
49
+ * @generated from enum value: USAGE_COST_TYPE_STANDARD_COMPUTE = 4;
50
50
  */
51
- dueDate?: Timestamp;
51
+ STANDARD_COMPUTE = 4,
52
52
 
53
53
  /**
54
- * @generated from field: google.protobuf.Timestamp paid_date = 6;
54
+ * @generated from enum value: USAGE_COST_TYPE_CLOUD_STORAGE = 5;
55
55
  */
56
- paidDate?: Timestamp;
57
-
58
- constructor(data?: PartialMessage<InvoiceSummary>);
56
+ CLOUD_STORAGE = 5,
59
57
 
60
- static readonly runtime: typeof proto3;
61
- static readonly typeName = "viam.app.v1.InvoiceSummary";
62
- static readonly fields: FieldList;
63
-
64
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InvoiceSummary;
65
-
66
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InvoiceSummary;
67
-
68
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InvoiceSummary;
69
-
70
- static equals(a: InvoiceSummary | PlainMessage<InvoiceSummary> | undefined, b: InvoiceSummary | PlainMessage<InvoiceSummary> | undefined): boolean;
71
- }
72
-
73
- /**
74
- * @generated from message viam.app.v1.BillableResourceEvent
75
- */
76
- export declare class BillableResourceEvent extends Message<BillableResourceEvent> {
77
58
  /**
78
- * @generated from field: string id = 1;
59
+ * @generated from enum value: USAGE_COST_TYPE_BINARY_DATA_CLOUD_STORAGE = 6;
79
60
  */
80
- id: string;
81
-
82
- /**
83
- * @generated from field: string type = 2;
84
- */
85
- type: string;
61
+ BINARY_DATA_CLOUD_STORAGE = 6,
86
62
 
87
63
  /**
88
- * @generated from field: double usage_quantity = 3;
64
+ * @generated from enum value: USAGE_COST_TYPE_OTHER_CLOUD_STORAGE = 7;
89
65
  */
90
- usageQuantity: number;
66
+ OTHER_CLOUD_STORAGE = 7,
91
67
 
92
68
  /**
93
- * @generated from field: string usage_quantity_unit = 4;
69
+ * @generated from enum value: USAGE_COST_TYPE_PER_MACHINE = 8;
94
70
  */
95
- usageQuantityUnit: string;
71
+ PER_MACHINE = 8,
72
+ }
96
73
 
74
+ /**
75
+ * @generated from enum viam.app.v1.SourceType
76
+ */
77
+ export declare enum SourceType {
97
78
  /**
98
- * @generated from field: string usage_cost = 5;
79
+ * @generated from enum value: SOURCE_TYPE_UNSPECIFIED = 0;
99
80
  */
100
- usageCost: string;
81
+ UNSPECIFIED = 0,
101
82
 
102
83
  /**
103
- * @generated from field: google.protobuf.Timestamp occurred_at = 6;
84
+ * @generated from enum value: SOURCE_TYPE_ORG = 1;
104
85
  */
105
- occurredAt?: Timestamp;
86
+ ORG = 1,
106
87
 
107
88
  /**
108
- * @generated from field: string user_name = 7;
89
+ * @generated from enum value: SOURCE_TYPE_FRAGMENT = 2;
109
90
  */
110
- userName: string;
111
-
112
- constructor(data?: PartialMessage<BillableResourceEvent>);
113
-
114
- static readonly runtime: typeof proto3;
115
- static readonly typeName = "viam.app.v1.BillableResourceEvent";
116
- static readonly fields: FieldList;
117
-
118
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BillableResourceEvent;
119
-
120
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BillableResourceEvent;
121
-
122
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BillableResourceEvent;
123
-
124
- static equals(a: BillableResourceEvent | PlainMessage<BillableResourceEvent> | undefined, b: BillableResourceEvent | PlainMessage<BillableResourceEvent> | undefined): boolean;
91
+ FRAGMENT = 2,
125
92
  }
126
93
 
127
94
  /**
128
- * @generated from message viam.app.v1.Invoice
95
+ * @generated from message viam.app.v1.InvoiceSummary
129
96
  */
130
- export declare class Invoice extends Message<Invoice> {
97
+ export declare class InvoiceSummary extends Message<InvoiceSummary> {
131
98
  /**
132
99
  * @generated from field: string id = 1;
133
100
  */
@@ -154,28 +121,23 @@ export declare class Invoice extends Message<Invoice> {
154
121
  dueDate?: Timestamp;
155
122
 
156
123
  /**
157
- * @generated from field: repeated viam.app.v1.BillableResourceEvent items = 6;
158
- */
159
- items: BillableResourceEvent[];
160
-
161
- /**
162
- * @generated from field: string emailed_to = 7;
124
+ * @generated from field: google.protobuf.Timestamp paid_date = 6;
163
125
  */
164
- emailedTo: string;
126
+ paidDate?: Timestamp;
165
127
 
166
- constructor(data?: PartialMessage<Invoice>);
128
+ constructor(data?: PartialMessage<InvoiceSummary>);
167
129
 
168
130
  static readonly runtime: typeof proto3;
169
- static readonly typeName = "viam.app.v1.Invoice";
131
+ static readonly typeName = "viam.app.v1.InvoiceSummary";
170
132
  static readonly fields: FieldList;
171
133
 
172
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Invoice;
134
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InvoiceSummary;
173
135
 
174
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Invoice;
136
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InvoiceSummary;
175
137
 
176
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Invoice;
138
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InvoiceSummary;
177
139
 
178
- static equals(a: Invoice | PlainMessage<Invoice> | undefined, b: Invoice | PlainMessage<Invoice> | undefined): boolean;
140
+ static equals(a: InvoiceSummary | PlainMessage<InvoiceSummary> | undefined, b: InvoiceSummary | PlainMessage<InvoiceSummary> | undefined): boolean;
179
141
  }
180
142
 
181
143
  /**
@@ -231,6 +193,108 @@ export declare class GetCurrentMonthUsageRequest extends Message<GetCurrentMonth
231
193
  static equals(a: GetCurrentMonthUsageRequest | PlainMessage<GetCurrentMonthUsageRequest> | undefined, b: GetCurrentMonthUsageRequest | PlainMessage<GetCurrentMonthUsageRequest> | undefined): boolean;
232
194
  }
233
195
 
196
+ /**
197
+ * @generated from message viam.app.v1.UsageCost
198
+ */
199
+ export declare class UsageCost extends Message<UsageCost> {
200
+ /**
201
+ * @generated from field: viam.app.v1.UsageCostType resource_type = 1;
202
+ */
203
+ resourceType: UsageCostType;
204
+
205
+ /**
206
+ * @generated from field: double cost = 2;
207
+ */
208
+ cost: number;
209
+
210
+ constructor(data?: PartialMessage<UsageCost>);
211
+
212
+ static readonly runtime: typeof proto3;
213
+ static readonly typeName = "viam.app.v1.UsageCost";
214
+ static readonly fields: FieldList;
215
+
216
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UsageCost;
217
+
218
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UsageCost;
219
+
220
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UsageCost;
221
+
222
+ static equals(a: UsageCost | PlainMessage<UsageCost> | undefined, b: UsageCost | PlainMessage<UsageCost> | undefined): boolean;
223
+ }
224
+
225
+ /**
226
+ * @generated from message viam.app.v1.ResourceUsageCostsBySource
227
+ */
228
+ export declare class ResourceUsageCostsBySource extends Message<ResourceUsageCostsBySource> {
229
+ /**
230
+ * @generated from field: viam.app.v1.SourceType source_type = 1;
231
+ */
232
+ sourceType: SourceType;
233
+
234
+ /**
235
+ * @generated from field: viam.app.v1.ResourceUsageCosts resource_usage_costs = 2;
236
+ */
237
+ resourceUsageCosts?: ResourceUsageCosts;
238
+
239
+ /**
240
+ * @generated from field: string tier_name = 3;
241
+ */
242
+ tierName: string;
243
+
244
+ constructor(data?: PartialMessage<ResourceUsageCostsBySource>);
245
+
246
+ static readonly runtime: typeof proto3;
247
+ static readonly typeName = "viam.app.v1.ResourceUsageCostsBySource";
248
+ static readonly fields: FieldList;
249
+
250
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResourceUsageCostsBySource;
251
+
252
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResourceUsageCostsBySource;
253
+
254
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResourceUsageCostsBySource;
255
+
256
+ static equals(a: ResourceUsageCostsBySource | PlainMessage<ResourceUsageCostsBySource> | undefined, b: ResourceUsageCostsBySource | PlainMessage<ResourceUsageCostsBySource> | undefined): boolean;
257
+ }
258
+
259
+ /**
260
+ * @generated from message viam.app.v1.ResourceUsageCosts
261
+ */
262
+ export declare class ResourceUsageCosts extends Message<ResourceUsageCosts> {
263
+ /**
264
+ * @generated from field: repeated viam.app.v1.UsageCost usage_costs = 1;
265
+ */
266
+ usageCosts: UsageCost[];
267
+
268
+ /**
269
+ * @generated from field: double discount = 2;
270
+ */
271
+ discount: number;
272
+
273
+ /**
274
+ * @generated from field: double total_with_discount = 3;
275
+ */
276
+ totalWithDiscount: number;
277
+
278
+ /**
279
+ * @generated from field: double total_without_discount = 4;
280
+ */
281
+ totalWithoutDiscount: number;
282
+
283
+ constructor(data?: PartialMessage<ResourceUsageCosts>);
284
+
285
+ static readonly runtime: typeof proto3;
286
+ static readonly typeName = "viam.app.v1.ResourceUsageCosts";
287
+ static readonly fields: FieldList;
288
+
289
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResourceUsageCosts;
290
+
291
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResourceUsageCosts;
292
+
293
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResourceUsageCosts;
294
+
295
+ static equals(a: ResourceUsageCosts | PlainMessage<ResourceUsageCosts> | undefined, b: ResourceUsageCosts | PlainMessage<ResourceUsageCosts> | undefined): boolean;
296
+ }
297
+
234
298
  /**
235
299
  * @generated from message viam.app.v1.GetCurrentMonthUsageResponse
236
300
  */
@@ -246,57 +310,80 @@ export declare class GetCurrentMonthUsageResponse extends Message<GetCurrentMont
246
310
  endDate?: Timestamp;
247
311
 
248
312
  /**
249
- * @generated from field: double cloud_storage_usage_cost = 3;
313
+ * @generated from field: repeated viam.app.v1.ResourceUsageCostsBySource resource_usage_costs_by_source = 14;
314
+ */
315
+ resourceUsageCostsBySource: ResourceUsageCostsBySource[];
316
+
317
+ /**
318
+ * @generated from field: double subtotal = 15;
319
+ */
320
+ subtotal: number;
321
+
322
+ /**
323
+ * all fields below are deprecated
324
+ *
325
+ * @generated from field: double cloud_storage_usage_cost = 3 [deprecated = true];
326
+ * @deprecated
250
327
  */
251
328
  cloudStorageUsageCost: number;
252
329
 
253
330
  /**
254
- * @generated from field: double data_upload_usage_cost = 4;
331
+ * @generated from field: double data_upload_usage_cost = 4 [deprecated = true];
332
+ * @deprecated
255
333
  */
256
334
  dataUploadUsageCost: number;
257
335
 
258
336
  /**
259
- * @generated from field: double data_egres_usage_cost = 5;
337
+ * @generated from field: double data_egres_usage_cost = 5 [deprecated = true];
338
+ * @deprecated
260
339
  */
261
340
  dataEgresUsageCost: number;
262
341
 
263
342
  /**
264
- * @generated from field: double remote_control_usage_cost = 6;
343
+ * @generated from field: double remote_control_usage_cost = 6 [deprecated = true];
344
+ * @deprecated
265
345
  */
266
346
  remoteControlUsageCost: number;
267
347
 
268
348
  /**
269
- * @generated from field: double standard_compute_usage_cost = 7;
349
+ * @generated from field: double standard_compute_usage_cost = 7 [deprecated = true];
350
+ * @deprecated
270
351
  */
271
352
  standardComputeUsageCost: number;
272
353
 
273
354
  /**
274
- * @generated from field: double discount_amount = 8;
355
+ * @generated from field: double discount_amount = 8 [deprecated = true];
356
+ * @deprecated
275
357
  */
276
358
  discountAmount: number;
277
359
 
278
360
  /**
279
- * @generated from field: double total_usage_with_discount = 9;
361
+ * @generated from field: double total_usage_with_discount = 9 [deprecated = true];
362
+ * @deprecated
280
363
  */
281
364
  totalUsageWithDiscount: number;
282
365
 
283
366
  /**
284
- * @generated from field: double total_usage_without_discount = 10;
367
+ * @generated from field: double total_usage_without_discount = 10 [deprecated = true];
368
+ * @deprecated
285
369
  */
286
370
  totalUsageWithoutDiscount: number;
287
371
 
288
372
  /**
289
- * @generated from field: double per_machine_usage_cost = 11;
373
+ * @generated from field: double per_machine_usage_cost = 11 [deprecated = true];
374
+ * @deprecated
290
375
  */
291
376
  perMachineUsageCost: number;
292
377
 
293
378
  /**
294
- * @generated from field: double binary_data_cloud_storage_usage_cost = 12;
379
+ * @generated from field: double binary_data_cloud_storage_usage_cost = 12 [deprecated = true];
380
+ * @deprecated
295
381
  */
296
382
  binaryDataCloudStorageUsageCost: number;
297
383
 
298
384
  /**
299
- * @generated from field: double other_cloud_storage_usage_cost = 13;
385
+ * @generated from field: double other_cloud_storage_usage_cost = 13 [deprecated = true];
386
+ * @deprecated
300
387
  */
301
388
  otherCloudStorageUsageCost: number;
302
389
 
@@ -1620,6 +1620,13 @@ export declare class ModuleConfig extends Message<ModuleConfig> {
1620
1620
  */
1621
1621
  status?: AppValidationStatus;
1622
1622
 
1623
+ /**
1624
+ * timeout for first_run script
1625
+ *
1626
+ * @generated from field: google.protobuf.Duration first_run_timeout = 8;
1627
+ */
1628
+ firstRunTimeout?: Duration;
1629
+
1623
1630
  constructor(data?: PartialMessage<ModuleConfig>);
1624
1631
 
1625
1632
  static readonly runtime: typeof proto3;
@@ -432,6 +432,27 @@ export declare class AnswerRequestErrorStage extends Message<AnswerRequestErrorS
432
432
  static equals(a: AnswerRequestErrorStage | PlainMessage<AnswerRequestErrorStage> | undefined, b: AnswerRequestErrorStage | PlainMessage<AnswerRequestErrorStage> | undefined): boolean;
433
433
  }
434
434
 
435
+ /**
436
+ * AnswerRequestHeartbeatStage is sent periodically to verify liveness of answerer.
437
+ *
438
+ * @generated from message proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage
439
+ */
440
+ export declare class AnswerRequestHeartbeatStage extends Message<AnswerRequestHeartbeatStage> {
441
+ constructor(data?: PartialMessage<AnswerRequestHeartbeatStage>);
442
+
443
+ static readonly runtime: typeof proto3;
444
+ static readonly typeName = "proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage";
445
+ static readonly fields: FieldList;
446
+
447
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AnswerRequestHeartbeatStage;
448
+
449
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AnswerRequestHeartbeatStage;
450
+
451
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AnswerRequestHeartbeatStage;
452
+
453
+ static equals(a: AnswerRequestHeartbeatStage | PlainMessage<AnswerRequestHeartbeatStage> | undefined, b: AnswerRequestHeartbeatStage | PlainMessage<AnswerRequestHeartbeatStage> | undefined): boolean;
454
+ }
455
+
435
456
  /**
436
457
  * AnswerRequest is the SDP offer that the controlling side is making via the answering
437
458
  * stream.
@@ -475,6 +496,14 @@ export declare class AnswerRequest extends Message<AnswerRequest> {
475
496
  */
476
497
  value: AnswerRequestErrorStage;
477
498
  case: "error";
499
+ } | {
500
+ /**
501
+ * heartbeat is sent periodically to verify liveness of answerer
502
+ *
503
+ * @generated from field: proto.rpc.webrtc.v1.AnswerRequestHeartbeatStage heartbeat = 6;
504
+ */
505
+ value: AnswerRequestHeartbeatStage;
506
+ case: "heartbeat";
478
507
  } | { case: undefined; value?: undefined };
479
508
 
480
509
  constructor(data?: PartialMessage<AnswerRequest>);
@@ -651,6 +651,11 @@ export declare class DiscoveryQuery extends Message<DiscoveryQuery> {
651
651
  */
652
652
  model: string;
653
653
 
654
+ /**
655
+ * @generated from field: google.protobuf.Struct extra = 99;
656
+ */
657
+ extra?: Struct;
658
+
654
659
  constructor(data?: PartialMessage<DiscoveryQuery>);
655
660
 
656
661
  static readonly runtime: typeof proto3;
package/dist/main.d.ts CHANGED
@@ -330,5 +330,5 @@ export { GenericClient as GenericServiceClient, type Generic as GenericService,
330
330
  */
331
331
  export * as commonApi from './gen/common/v1/common_pb';
332
332
  export * from './types';
333
- export { doCommandFromClient } from './utils';
333
+ export { addMetadata, deleteMetadata, disableDebugLogging, doCommandFromClient, enableDebugLogging, } from './utils';
334
334
  export { MachineConnectionEvent } from './events';