@viamrobotics/sdk 0.57.0 → 0.58.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.
Files changed (49) hide show
  1. package/README.md +0 -5
  2. package/dist/api-version.d.ts +1 -1
  3. package/dist/app/data-client.d.ts +3 -1
  4. package/dist/audio-common.d.ts +1 -1
  5. package/dist/gen/app/v1/app_pb.d.ts +65 -0
  6. package/dist/gen/component/camera/v1/camera_pb.d.ts +8 -0
  7. package/dist/gen/opentelemetry/proto/collector/logs/v1/logs_service_connect.d.ts +44 -0
  8. package/dist/gen/opentelemetry/proto/collector/logs/v1/logs_service_pb.d.ts +135 -0
  9. package/dist/gen/opentelemetry/proto/collector/metrics/v1/metrics_service_connect.d.ts +44 -0
  10. package/dist/gen/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.d.ts +135 -0
  11. package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_connect.d.ts +43 -0
  12. package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_pb.d.ts +142 -0
  13. package/dist/gen/opentelemetry/proto/collector/trace/v1/trace_service_connect.d.ts +44 -0
  14. package/dist/gen/opentelemetry/proto/collector/trace/v1/trace_service_pb.d.ts +135 -0
  15. package/dist/gen/opentelemetry/proto/common/v1/common_pb.d.ts +322 -0
  16. package/dist/gen/opentelemetry/proto/logs/v1/logs_pb.d.ts +479 -0
  17. package/dist/gen/opentelemetry/proto/metrics/v1/metrics_pb.d.ts +1349 -0
  18. package/dist/gen/opentelemetry/proto/profiles/v1development/profiles_pb.d.ts +890 -0
  19. package/dist/gen/opentelemetry/proto/resource/v1/resource_pb.d.ts +73 -0
  20. package/dist/gen/opentelemetry/proto/trace/v1/trace_pb.d.ts +683 -0
  21. package/dist/gen/robot/v1/robot_connect.d.ts +10 -1
  22. package/dist/gen/robot/v1/robot_pb.d.ts +44 -0
  23. package/dist/main.es.js +12232 -11862
  24. package/dist/main.umd.js +7 -7
  25. package/dist/robot/client.d.ts +20 -16
  26. package/dist/robot/robot.d.ts +19 -10
  27. package/dist/robot.d.ts +1 -1
  28. package/dist/services/motion/client.d.ts +1 -0
  29. package/dist/services/motion/motion.d.ts +1 -0
  30. package/package.json +1 -1
  31. package/dist/app/app-client.spec.d.ts +0 -1
  32. package/dist/app/billing-client.spec.d.ts +0 -1
  33. package/dist/app/data-client.spec.d.ts +0 -1
  34. package/dist/app/ml-training-client.spec.d.ts +0 -1
  35. package/dist/app/provisioning-client.spec.d.ts +0 -1
  36. package/dist/app/viam-client.spec.d.ts +0 -1
  37. package/dist/components/audio-in/client.spec.d.ts +0 -1
  38. package/dist/components/audio-out/client.spec.d.ts +0 -1
  39. package/dist/components/board/client.spec.d.ts +0 -1
  40. package/dist/components/input-controller/client.spec.d.ts +0 -1
  41. package/dist/components/movement-sensor/client.spec.d.ts +0 -1
  42. package/dist/components/power-sensor/client.spec.d.ts +0 -1
  43. package/dist/extra/stream/client.spec.d.ts +0 -1
  44. package/dist/services/discovery/client.spec.d.ts +0 -1
  45. package/dist/services/motion/client.spec.d.ts +0 -1
  46. package/dist/services/navigation/client.spec.d.ts +0 -1
  47. package/dist/services/slam/client.spec.d.ts +0 -1
  48. package/dist/services/vision/client.spec.d.ts +0 -1
  49. package/dist/services/world-state-store/client.spec.d.ts +0 -1
@@ -0,0 +1,479 @@
1
+ // Copyright 2020, OpenTelemetry Authors
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // @generated by protoc-gen-es v1.10.0
16
+ // @generated from file opentelemetry/proto/logs/v1/logs.proto (package opentelemetry.proto.logs.v1, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
21
+ import { Message, proto3 } from "@bufbuild/protobuf";
22
+ import type { Resource } from "../../resource/v1/resource_pb.js";
23
+ import type { AnyValue, InstrumentationScope, KeyValue } from "../../common/v1/common_pb.js";
24
+
25
+ /**
26
+ * Possible values for LogRecord.SeverityNumber.
27
+ *
28
+ * @generated from enum opentelemetry.proto.logs.v1.SeverityNumber
29
+ */
30
+ export declare enum SeverityNumber {
31
+ /**
32
+ * UNSPECIFIED is the default SeverityNumber, it MUST NOT be used.
33
+ *
34
+ * @generated from enum value: SEVERITY_NUMBER_UNSPECIFIED = 0;
35
+ */
36
+ UNSPECIFIED = 0,
37
+
38
+ /**
39
+ * @generated from enum value: SEVERITY_NUMBER_TRACE = 1;
40
+ */
41
+ TRACE = 1,
42
+
43
+ /**
44
+ * @generated from enum value: SEVERITY_NUMBER_TRACE2 = 2;
45
+ */
46
+ TRACE2 = 2,
47
+
48
+ /**
49
+ * @generated from enum value: SEVERITY_NUMBER_TRACE3 = 3;
50
+ */
51
+ TRACE3 = 3,
52
+
53
+ /**
54
+ * @generated from enum value: SEVERITY_NUMBER_TRACE4 = 4;
55
+ */
56
+ TRACE4 = 4,
57
+
58
+ /**
59
+ * @generated from enum value: SEVERITY_NUMBER_DEBUG = 5;
60
+ */
61
+ DEBUG = 5,
62
+
63
+ /**
64
+ * @generated from enum value: SEVERITY_NUMBER_DEBUG2 = 6;
65
+ */
66
+ DEBUG2 = 6,
67
+
68
+ /**
69
+ * @generated from enum value: SEVERITY_NUMBER_DEBUG3 = 7;
70
+ */
71
+ DEBUG3 = 7,
72
+
73
+ /**
74
+ * @generated from enum value: SEVERITY_NUMBER_DEBUG4 = 8;
75
+ */
76
+ DEBUG4 = 8,
77
+
78
+ /**
79
+ * @generated from enum value: SEVERITY_NUMBER_INFO = 9;
80
+ */
81
+ INFO = 9,
82
+
83
+ /**
84
+ * @generated from enum value: SEVERITY_NUMBER_INFO2 = 10;
85
+ */
86
+ INFO2 = 10,
87
+
88
+ /**
89
+ * @generated from enum value: SEVERITY_NUMBER_INFO3 = 11;
90
+ */
91
+ INFO3 = 11,
92
+
93
+ /**
94
+ * @generated from enum value: SEVERITY_NUMBER_INFO4 = 12;
95
+ */
96
+ INFO4 = 12,
97
+
98
+ /**
99
+ * @generated from enum value: SEVERITY_NUMBER_WARN = 13;
100
+ */
101
+ WARN = 13,
102
+
103
+ /**
104
+ * @generated from enum value: SEVERITY_NUMBER_WARN2 = 14;
105
+ */
106
+ WARN2 = 14,
107
+
108
+ /**
109
+ * @generated from enum value: SEVERITY_NUMBER_WARN3 = 15;
110
+ */
111
+ WARN3 = 15,
112
+
113
+ /**
114
+ * @generated from enum value: SEVERITY_NUMBER_WARN4 = 16;
115
+ */
116
+ WARN4 = 16,
117
+
118
+ /**
119
+ * @generated from enum value: SEVERITY_NUMBER_ERROR = 17;
120
+ */
121
+ ERROR = 17,
122
+
123
+ /**
124
+ * @generated from enum value: SEVERITY_NUMBER_ERROR2 = 18;
125
+ */
126
+ ERROR2 = 18,
127
+
128
+ /**
129
+ * @generated from enum value: SEVERITY_NUMBER_ERROR3 = 19;
130
+ */
131
+ ERROR3 = 19,
132
+
133
+ /**
134
+ * @generated from enum value: SEVERITY_NUMBER_ERROR4 = 20;
135
+ */
136
+ ERROR4 = 20,
137
+
138
+ /**
139
+ * @generated from enum value: SEVERITY_NUMBER_FATAL = 21;
140
+ */
141
+ FATAL = 21,
142
+
143
+ /**
144
+ * @generated from enum value: SEVERITY_NUMBER_FATAL2 = 22;
145
+ */
146
+ FATAL2 = 22,
147
+
148
+ /**
149
+ * @generated from enum value: SEVERITY_NUMBER_FATAL3 = 23;
150
+ */
151
+ FATAL3 = 23,
152
+
153
+ /**
154
+ * @generated from enum value: SEVERITY_NUMBER_FATAL4 = 24;
155
+ */
156
+ FATAL4 = 24,
157
+ }
158
+
159
+ /**
160
+ * LogRecordFlags represents constants used to interpret the
161
+ * LogRecord.flags field, which is protobuf 'fixed32' type and is to
162
+ * be used as bit-fields. Each non-zero value defined in this enum is
163
+ * a bit-mask. To extract the bit-field, for example, use an
164
+ * expression like:
165
+ *
166
+ * (logRecord.flags & LOG_RECORD_FLAGS_TRACE_FLAGS_MASK)
167
+ *
168
+ *
169
+ * @generated from enum opentelemetry.proto.logs.v1.LogRecordFlags
170
+ */
171
+ export declare enum LogRecordFlags {
172
+ /**
173
+ * The zero value for the enum. Should not be used for comparisons.
174
+ * Instead use bitwise "and" with the appropriate mask as shown above.
175
+ *
176
+ * @generated from enum value: LOG_RECORD_FLAGS_DO_NOT_USE = 0;
177
+ */
178
+ DO_NOT_USE = 0,
179
+
180
+ /**
181
+ * Bits 0-7 are used for trace flags.
182
+ *
183
+ * @generated from enum value: LOG_RECORD_FLAGS_TRACE_FLAGS_MASK = 255;
184
+ */
185
+ TRACE_FLAGS_MASK = 255,
186
+ }
187
+
188
+ /**
189
+ * LogsData represents the logs data that can be stored in a persistent storage,
190
+ * OR can be embedded by other protocols that transfer OTLP logs data but do not
191
+ * implement the OTLP protocol.
192
+ *
193
+ * The main difference between this message and collector protocol is that
194
+ * in this message there will not be any "control" or "metadata" specific to
195
+ * OTLP protocol.
196
+ *
197
+ * When new fields are added into this message, the OTLP request MUST be updated
198
+ * as well.
199
+ *
200
+ * @generated from message opentelemetry.proto.logs.v1.LogsData
201
+ */
202
+ export declare class LogsData extends Message<LogsData> {
203
+ /**
204
+ * An array of ResourceLogs.
205
+ * For data coming from a single resource this array will typically contain
206
+ * one element. Intermediary nodes that receive data from multiple origins
207
+ * typically batch the data before forwarding further and in that case this
208
+ * array will contain multiple elements.
209
+ *
210
+ * @generated from field: repeated opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;
211
+ */
212
+ resourceLogs: ResourceLogs[];
213
+
214
+ constructor(data?: PartialMessage<LogsData>);
215
+
216
+ static readonly runtime: typeof proto3;
217
+ static readonly typeName = "opentelemetry.proto.logs.v1.LogsData";
218
+ static readonly fields: FieldList;
219
+
220
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LogsData;
221
+
222
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LogsData;
223
+
224
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LogsData;
225
+
226
+ static equals(a: LogsData | PlainMessage<LogsData> | undefined, b: LogsData | PlainMessage<LogsData> | undefined): boolean;
227
+ }
228
+
229
+ /**
230
+ * A collection of ScopeLogs from a Resource.
231
+ *
232
+ * @generated from message opentelemetry.proto.logs.v1.ResourceLogs
233
+ */
234
+ export declare class ResourceLogs extends Message<ResourceLogs> {
235
+ /**
236
+ * The resource for the logs in this message.
237
+ * If this field is not set then resource info is unknown.
238
+ *
239
+ * @generated from field: opentelemetry.proto.resource.v1.Resource resource = 1;
240
+ */
241
+ resource?: Resource;
242
+
243
+ /**
244
+ * A list of ScopeLogs that originate from a resource.
245
+ *
246
+ * @generated from field: repeated opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
247
+ */
248
+ scopeLogs: ScopeLogs[];
249
+
250
+ /**
251
+ * The Schema URL, if known. This is the identifier of the Schema that the resource data
252
+ * is recorded in. Notably, the last part of the URL path is the version number of the
253
+ * schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see
254
+ * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
255
+ * This schema_url applies to the data in the "resource" field. It does not apply
256
+ * to the data in the "scope_logs" field which have their own schema_url field.
257
+ *
258
+ * @generated from field: string schema_url = 3;
259
+ */
260
+ schemaUrl: string;
261
+
262
+ constructor(data?: PartialMessage<ResourceLogs>);
263
+
264
+ static readonly runtime: typeof proto3;
265
+ static readonly typeName = "opentelemetry.proto.logs.v1.ResourceLogs";
266
+ static readonly fields: FieldList;
267
+
268
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResourceLogs;
269
+
270
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResourceLogs;
271
+
272
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResourceLogs;
273
+
274
+ static equals(a: ResourceLogs | PlainMessage<ResourceLogs> | undefined, b: ResourceLogs | PlainMessage<ResourceLogs> | undefined): boolean;
275
+ }
276
+
277
+ /**
278
+ * A collection of Logs produced by a Scope.
279
+ *
280
+ * @generated from message opentelemetry.proto.logs.v1.ScopeLogs
281
+ */
282
+ export declare class ScopeLogs extends Message<ScopeLogs> {
283
+ /**
284
+ * The instrumentation scope information for the logs in this message.
285
+ * Semantically when InstrumentationScope isn't set, it is equivalent with
286
+ * an empty instrumentation scope name (unknown).
287
+ *
288
+ * @generated from field: opentelemetry.proto.common.v1.InstrumentationScope scope = 1;
289
+ */
290
+ scope?: InstrumentationScope;
291
+
292
+ /**
293
+ * A list of log records.
294
+ *
295
+ * @generated from field: repeated opentelemetry.proto.logs.v1.LogRecord log_records = 2;
296
+ */
297
+ logRecords: LogRecord[];
298
+
299
+ /**
300
+ * The Schema URL, if known. This is the identifier of the Schema that the log data
301
+ * is recorded in. Notably, the last part of the URL path is the version number of the
302
+ * schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see
303
+ * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
304
+ * This schema_url applies to the data in the "scope" field and all logs in the
305
+ * "log_records" field.
306
+ *
307
+ * @generated from field: string schema_url = 3;
308
+ */
309
+ schemaUrl: string;
310
+
311
+ constructor(data?: PartialMessage<ScopeLogs>);
312
+
313
+ static readonly runtime: typeof proto3;
314
+ static readonly typeName = "opentelemetry.proto.logs.v1.ScopeLogs";
315
+ static readonly fields: FieldList;
316
+
317
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ScopeLogs;
318
+
319
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ScopeLogs;
320
+
321
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ScopeLogs;
322
+
323
+ static equals(a: ScopeLogs | PlainMessage<ScopeLogs> | undefined, b: ScopeLogs | PlainMessage<ScopeLogs> | undefined): boolean;
324
+ }
325
+
326
+ /**
327
+ * A log record according to OpenTelemetry Log Data Model:
328
+ * https://github.com/open-telemetry/oteps/blob/main/text/logs/0097-log-data-model.md
329
+ *
330
+ * @generated from message opentelemetry.proto.logs.v1.LogRecord
331
+ */
332
+ export declare class LogRecord extends Message<LogRecord> {
333
+ /**
334
+ * time_unix_nano is the time when the event occurred.
335
+ * Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
336
+ * Value of 0 indicates unknown or missing timestamp.
337
+ *
338
+ * @generated from field: fixed64 time_unix_nano = 1;
339
+ */
340
+ timeUnixNano: bigint;
341
+
342
+ /**
343
+ * Time when the event was observed by the collection system.
344
+ * For events that originate in OpenTelemetry (e.g. using OpenTelemetry Logging SDK)
345
+ * this timestamp is typically set at the generation time and is equal to Timestamp.
346
+ * For events originating externally and collected by OpenTelemetry (e.g. using
347
+ * Collector) this is the time when OpenTelemetry's code observed the event measured
348
+ * by the clock of the OpenTelemetry code. This field MUST be set once the event is
349
+ * observed by OpenTelemetry.
350
+ *
351
+ * For converting OpenTelemetry log data to formats that support only one timestamp or
352
+ * when receiving OpenTelemetry log data by recipients that support only one timestamp
353
+ * internally the following logic is recommended:
354
+ * - Use time_unix_nano if it is present, otherwise use observed_time_unix_nano.
355
+ *
356
+ * Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
357
+ * Value of 0 indicates unknown or missing timestamp.
358
+ *
359
+ * @generated from field: fixed64 observed_time_unix_nano = 11;
360
+ */
361
+ observedTimeUnixNano: bigint;
362
+
363
+ /**
364
+ * Numerical value of the severity, normalized to values described in Log Data Model.
365
+ * [Optional].
366
+ *
367
+ * @generated from field: opentelemetry.proto.logs.v1.SeverityNumber severity_number = 2;
368
+ */
369
+ severityNumber: SeverityNumber;
370
+
371
+ /**
372
+ * The severity text (also known as log level). The original string representation as
373
+ * it is known at the source. [Optional].
374
+ *
375
+ * @generated from field: string severity_text = 3;
376
+ */
377
+ severityText: string;
378
+
379
+ /**
380
+ * A value containing the body of the log record. Can be for example a human-readable
381
+ * string message (including multi-line) describing the event in a free form or it can
382
+ * be a structured data composed of arrays and maps of other values. [Optional].
383
+ *
384
+ * @generated from field: opentelemetry.proto.common.v1.AnyValue body = 5;
385
+ */
386
+ body?: AnyValue;
387
+
388
+ /**
389
+ * Additional attributes that describe the specific event occurrence. [Optional].
390
+ * Attribute keys MUST be unique (it is not allowed to have more than one
391
+ * attribute with the same key).
392
+ * The behavior of software that receives duplicated keys can be unpredictable.
393
+ *
394
+ * @generated from field: repeated opentelemetry.proto.common.v1.KeyValue attributes = 6;
395
+ */
396
+ attributes: KeyValue[];
397
+
398
+ /**
399
+ * @generated from field: uint32 dropped_attributes_count = 7;
400
+ */
401
+ droppedAttributesCount: number;
402
+
403
+ /**
404
+ * Flags, a bit field. 8 least significant bits are the trace flags as
405
+ * defined in W3C Trace Context specification. 24 most significant bits are reserved
406
+ * and must be set to 0. Readers must not assume that 24 most significant bits
407
+ * will be zero and must correctly mask the bits when reading 8-bit trace flag (use
408
+ * flags & LOG_RECORD_FLAGS_TRACE_FLAGS_MASK). [Optional].
409
+ *
410
+ * @generated from field: fixed32 flags = 8;
411
+ */
412
+ flags: number;
413
+
414
+ /**
415
+ * A unique identifier for a trace. All logs from the same trace share
416
+ * the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes OR
417
+ * of length other than 16 bytes is considered invalid (empty string in OTLP/JSON
418
+ * is zero-length and thus is also invalid).
419
+ *
420
+ * This field is optional.
421
+ *
422
+ * The receivers SHOULD assume that the log record is not associated with a
423
+ * trace if any of the following is true:
424
+ * - the field is not present,
425
+ * - the field contains an invalid value.
426
+ *
427
+ * @generated from field: bytes trace_id = 9;
428
+ */
429
+ traceId: Uint8Array;
430
+
431
+ /**
432
+ * A unique identifier for a span within a trace, assigned when the span
433
+ * is created. The ID is an 8-byte array. An ID with all zeroes OR of length
434
+ * other than 8 bytes is considered invalid (empty string in OTLP/JSON
435
+ * is zero-length and thus is also invalid).
436
+ *
437
+ * This field is optional. If the sender specifies a valid span_id then it SHOULD also
438
+ * specify a valid trace_id.
439
+ *
440
+ * The receivers SHOULD assume that the log record is not associated with a
441
+ * span if any of the following is true:
442
+ * - the field is not present,
443
+ * - the field contains an invalid value.
444
+ *
445
+ * @generated from field: bytes span_id = 10;
446
+ */
447
+ spanId: Uint8Array;
448
+
449
+ /**
450
+ * A unique identifier of event category/type.
451
+ * All events with the same event_name are expected to conform to the same
452
+ * schema for both their attributes and their body.
453
+ *
454
+ * Recommended to be fully qualified and short (no longer than 256 characters).
455
+ *
456
+ * Presence of event_name on the log record identifies this record
457
+ * as an event.
458
+ *
459
+ * [Optional].
460
+ *
461
+ * @generated from field: string event_name = 12;
462
+ */
463
+ eventName: string;
464
+
465
+ constructor(data?: PartialMessage<LogRecord>);
466
+
467
+ static readonly runtime: typeof proto3;
468
+ static readonly typeName = "opentelemetry.proto.logs.v1.LogRecord";
469
+ static readonly fields: FieldList;
470
+
471
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LogRecord;
472
+
473
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LogRecord;
474
+
475
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LogRecord;
476
+
477
+ static equals(a: LogRecord | PlainMessage<LogRecord> | undefined, b: LogRecord | PlainMessage<LogRecord> | undefined): boolean;
478
+ }
479
+