@viamrobotics/sdk 0.56.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 (76) 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 +21 -1
  4. package/dist/audio-common.d.ts +1 -1
  5. package/dist/events.d.ts +2 -1
  6. package/dist/gen/app/data/v1/data_connect.d.ts +12 -1
  7. package/dist/gen/app/data/v1/data_pb.d.ts +67 -0
  8. package/dist/gen/app/mltraining/v1/ml_training_connect.d.ts +12 -1
  9. package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +107 -0
  10. package/dist/gen/app/v1/app_pb.d.ts +65 -0
  11. package/dist/gen/app/v1/billing_pb.d.ts +10 -0
  12. package/dist/gen/app/v1/robot_pb.d.ts +7 -0
  13. package/dist/gen/common/v1/common_pb.d.ts +1 -1
  14. package/dist/gen/component/camera/v1/camera_pb.d.ts +8 -0
  15. package/dist/gen/component/gantry/v1/gantry_connect.d.ts +10 -1
  16. package/dist/gen/google/api/routing_pb.d.ts +508 -0
  17. package/dist/gen/google/iam/v1/iam_policy_connect.d.ts +102 -0
  18. package/dist/gen/google/iam/v1/iam_policy_pb.d.ts +179 -0
  19. package/dist/gen/google/iam/v1/options_pb.d.ts +67 -0
  20. package/dist/gen/google/iam/v1/policy_pb.d.ts +668 -0
  21. package/dist/gen/opentelemetry/proto/collector/logs/v1/logs_service_connect.d.ts +44 -0
  22. package/dist/gen/opentelemetry/proto/collector/logs/v1/logs_service_pb.d.ts +135 -0
  23. package/dist/gen/opentelemetry/proto/collector/metrics/v1/metrics_service_connect.d.ts +44 -0
  24. package/dist/gen/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.d.ts +135 -0
  25. package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_connect.d.ts +43 -0
  26. package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_pb.d.ts +142 -0
  27. package/dist/gen/opentelemetry/proto/collector/trace/v1/trace_service_connect.d.ts +44 -0
  28. package/dist/gen/opentelemetry/proto/collector/trace/v1/trace_service_pb.d.ts +135 -0
  29. package/dist/gen/opentelemetry/proto/common/v1/common_pb.d.ts +322 -0
  30. package/dist/gen/opentelemetry/proto/logs/v1/logs_pb.d.ts +479 -0
  31. package/dist/gen/opentelemetry/proto/metrics/v1/metrics_pb.d.ts +1349 -0
  32. package/dist/gen/opentelemetry/proto/profiles/v1development/profiles_pb.d.ts +890 -0
  33. package/dist/gen/opentelemetry/proto/resource/v1/resource_pb.d.ts +73 -0
  34. package/dist/gen/opentelemetry/proto/trace/v1/trace_pb.d.ts +683 -0
  35. package/dist/gen/robot/v1/robot_connect.d.ts +10 -1
  36. package/dist/gen/robot/v1/robot_pb.d.ts +83 -0
  37. package/dist/main.es.js +13572 -12946
  38. package/dist/main.umd.js +7 -7
  39. package/dist/robot/client.d.ts +33 -16
  40. package/dist/robot/robot.d.ts +19 -10
  41. package/dist/robot.d.ts +1 -1
  42. package/dist/services/motion/client.d.ts +1 -0
  43. package/dist/services/motion/motion.d.ts +1 -0
  44. package/package.json +11 -7
  45. package/dist/__fixtures__/credentials.d.ts +0 -5
  46. package/dist/__fixtures__/test-constants.d.ts +0 -4
  47. package/dist/__mocks__/transports.d.ts +0 -2
  48. package/dist/__mocks__/webrtc.d.ts +0 -2
  49. package/dist/app/app-client.spec.d.ts +0 -1
  50. package/dist/app/billing-client.spec.d.ts +0 -1
  51. package/dist/app/data-client.spec.d.ts +0 -1
  52. package/dist/app/ml-training-client.spec.d.ts +0 -1
  53. package/dist/app/provisioning-client.spec.d.ts +0 -1
  54. package/dist/app/viam-client.spec.d.ts +0 -1
  55. package/dist/components/audio-in/client.spec.d.ts +0 -1
  56. package/dist/components/audio-out/client.spec.d.ts +0 -1
  57. package/dist/components/board/client.spec.d.ts +0 -1
  58. package/dist/components/input-controller/client.spec.d.ts +0 -1
  59. package/dist/components/movement-sensor/client.spec.d.ts +0 -1
  60. package/dist/components/power-sensor/client.spec.d.ts +0 -1
  61. package/dist/extra/stream/client.spec.d.ts +0 -1
  62. package/dist/robot/__fixtures__/dial-configs.d.ts +0 -4
  63. package/dist/robot/__mocks__/robot-service.d.ts +0 -5
  64. package/dist/robot/__tests__/client.spec.d.ts +0 -1
  65. package/dist/robot/__tests__/grpc-connection-manager.spec.d.ts +0 -1
  66. package/dist/robot/__tests__/session-manager.spec.d.ts +0 -1
  67. package/dist/rpc/__fixtures__/dial-options.d.ts +0 -6
  68. package/dist/rpc/__fixtures__/dial-webrtc-options.d.ts +0 -8
  69. package/dist/rpc/__mocks__/signaling-exchanges.d.ts +0 -3
  70. package/dist/rpc/__tests__/dial.spec.d.ts +0 -1
  71. package/dist/services/discovery/client.spec.d.ts +0 -1
  72. package/dist/services/motion/client.spec.d.ts +0 -1
  73. package/dist/services/navigation/client.spec.d.ts +0 -1
  74. package/dist/services/slam/client.spec.d.ts +0 -1
  75. package/dist/services/vision/client.spec.d.ts +0 -1
  76. package/dist/services/world-state-store/client.spec.d.ts +0 -1
@@ -0,0 +1,890 @@
1
+ // Copyright 2023, 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
+ // This file includes work covered by the following copyright and permission notices:
16
+ //
17
+ // Copyright 2016 Google Inc. All Rights Reserved.
18
+ //
19
+ // Licensed under the Apache License, Version 2.0 (the "License");
20
+ // you may not use this file except in compliance with the License.
21
+ // You may obtain a copy of the License at
22
+ //
23
+ // http://www.apache.org/licenses/LICENSE-2.0
24
+ //
25
+ // Unless required by applicable law or agreed to in writing, software
26
+ // distributed under the License is distributed on an "AS IS" BASIS,
27
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
28
+ // See the License for the specific language governing permissions and
29
+ // limitations under the License.
30
+
31
+ // @generated by protoc-gen-es v1.10.0
32
+ // @generated from file opentelemetry/proto/profiles/v1development/profiles.proto (package opentelemetry.proto.profiles.v1development, syntax proto3)
33
+ /* eslint-disable */
34
+ // @ts-nocheck
35
+
36
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
37
+ import { Message, proto3 } from "@bufbuild/protobuf";
38
+ import type { Resource } from "../../resource/v1/resource_pb.js";
39
+ import type { AnyValue, InstrumentationScope } from "../../common/v1/common_pb.js";
40
+
41
+ /**
42
+ * ProfilesDictionary represents the profiles data shared across the
43
+ * entire message being sent. The following applies to all fields in this
44
+ * message:
45
+ *
46
+ * - A dictionary is an array of dictionary items. Users of the dictionary
47
+ * compactly reference the items using the index within the array.
48
+ *
49
+ * - A dictionary MUST have a zero value encoded as the first element. This
50
+ * allows for _index fields pointing into the dictionary to use a 0 pointer
51
+ * value to indicate 'null' / 'not set'. Unless otherwise defined, a 'zero
52
+ * value' message value is one with all default field values, so as to
53
+ * minimize wire encoded size.
54
+ *
55
+ * - There SHOULD NOT be dupes in a dictionary. The identity of dictionary
56
+ * items is based on their value, recursively as needed. If a particular
57
+ * implementation does emit duplicated items, it MUST NOT attempt to give them
58
+ * meaning based on the index or order. A profile processor may remove
59
+ * duplicate items and this MUST NOT have any observable effects for
60
+ * consumers.
61
+ *
62
+ * - There SHOULD NOT be orphaned (unreferenced) items in a dictionary. A
63
+ * profile processor may remove ("garbage-collect") orphaned items and this
64
+ * MUST NOT have any observable effects for consumers.
65
+ *
66
+ *
67
+ * @generated from message opentelemetry.proto.profiles.v1development.ProfilesDictionary
68
+ */
69
+ export declare class ProfilesDictionary extends Message<ProfilesDictionary> {
70
+ /**
71
+ * Mappings from address ranges to the image/binary/library mapped
72
+ * into that address range referenced by locations via Location.mapping_index.
73
+ *
74
+ * mapping_table[0] must always be zero value (Mapping{}) and present.
75
+ *
76
+ * @generated from field: repeated opentelemetry.proto.profiles.v1development.Mapping mapping_table = 1;
77
+ */
78
+ mappingTable: Mapping[];
79
+
80
+ /**
81
+ * Locations referenced by samples via Stack.location_indices.
82
+ *
83
+ * location_table[0] must always be zero value (Location{}) and present.
84
+ *
85
+ * @generated from field: repeated opentelemetry.proto.profiles.v1development.Location location_table = 2;
86
+ */
87
+ locationTable: Location[];
88
+
89
+ /**
90
+ * Functions referenced by locations via Line.function_index.
91
+ *
92
+ * function_table[0] must always be zero value (Function{}) and present.
93
+ *
94
+ * @generated from field: repeated opentelemetry.proto.profiles.v1development.Function function_table = 3;
95
+ */
96
+ functionTable: Function[];
97
+
98
+ /**
99
+ * Links referenced by samples via Sample.link_index.
100
+ *
101
+ * link_table[0] must always be zero value (Link{}) and present.
102
+ *
103
+ * @generated from field: repeated opentelemetry.proto.profiles.v1development.Link link_table = 4;
104
+ */
105
+ linkTable: Link[];
106
+
107
+ /**
108
+ * A common table for strings referenced by various messages.
109
+ *
110
+ * string_table[0] must always be "" and present.
111
+ *
112
+ * @generated from field: repeated string string_table = 5;
113
+ */
114
+ stringTable: string[];
115
+
116
+ /**
117
+ * A common table for attributes referenced by the Profile, Sample, Mapping
118
+ * and Location messages below through attribute_indices field. Each entry is
119
+ * a key/value pair with an optional unit. Since this is a dictionary table,
120
+ * multiple entries with the same key may be present, unlike direct attribute
121
+ * tables like Resource.attributes. The referencing attribute_indices fields,
122
+ * though, do maintain the key uniqueness requirement.
123
+ *
124
+ * It's recommended to use attributes for variables with bounded cardinality,
125
+ * such as categorical variables
126
+ * (https://en.wikipedia.org/wiki/Categorical_variable). Using an attribute of
127
+ * a floating point type (e.g., CPU time) in a sample can quickly make every
128
+ * attribute value unique, defeating the purpose of the dictionary and
129
+ * impractically increasing the profile size.
130
+ *
131
+ * Examples of attributes:
132
+ * "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
133
+ * "abc.com/myattribute": true
134
+ * "allocation_size": 128 bytes
135
+ *
136
+ * attribute_table[0] must always be zero value (KeyValueAndUnit{}) and present.
137
+ *
138
+ * @generated from field: repeated opentelemetry.proto.profiles.v1development.KeyValueAndUnit attribute_table = 6;
139
+ */
140
+ attributeTable: KeyValueAndUnit[];
141
+
142
+ /**
143
+ * Stacks referenced by samples via Sample.stack_index.
144
+ *
145
+ * stack_table[0] must always be zero value (Stack{}) and present.
146
+ *
147
+ * @generated from field: repeated opentelemetry.proto.profiles.v1development.Stack stack_table = 7;
148
+ */
149
+ stackTable: Stack[];
150
+
151
+ constructor(data?: PartialMessage<ProfilesDictionary>);
152
+
153
+ static readonly runtime: typeof proto3;
154
+ static readonly typeName = "opentelemetry.proto.profiles.v1development.ProfilesDictionary";
155
+ static readonly fields: FieldList;
156
+
157
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProfilesDictionary;
158
+
159
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProfilesDictionary;
160
+
161
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProfilesDictionary;
162
+
163
+ static equals(a: ProfilesDictionary | PlainMessage<ProfilesDictionary> | undefined, b: ProfilesDictionary | PlainMessage<ProfilesDictionary> | undefined): boolean;
164
+ }
165
+
166
+ /**
167
+ * ProfilesData represents the profiles data that can be stored in persistent storage,
168
+ * OR can be embedded by other protocols that transfer OTLP profiles data but do not
169
+ * implement the OTLP protocol.
170
+ *
171
+ * The main difference between this message and collector protocol is that
172
+ * in this message there will not be any "control" or "metadata" specific to
173
+ * OTLP protocol.
174
+ *
175
+ * When new fields are added into this message, the OTLP request MUST be updated
176
+ * as well.
177
+ *
178
+ * @generated from message opentelemetry.proto.profiles.v1development.ProfilesData
179
+ */
180
+ export declare class ProfilesData extends Message<ProfilesData> {
181
+ /**
182
+ * An array of ResourceProfiles.
183
+ * For data coming from an SDK profiler, this array will typically contain one
184
+ * element. Host-level profilers will usually create one ResourceProfile per
185
+ * container, as well as one additional ResourceProfile grouping all samples
186
+ * from non-containerized processes.
187
+ * Other resource groupings are possible as well and clarified via
188
+ * Resource.attributes and semantic conventions.
189
+ * Tools that visualize profiles should prefer displaying
190
+ * resources_profiles[0].scope_profiles[0].profiles[0] by default.
191
+ *
192
+ * @generated from field: repeated opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;
193
+ */
194
+ resourceProfiles: ResourceProfiles[];
195
+
196
+ /**
197
+ * One instance of ProfilesDictionary
198
+ *
199
+ * @generated from field: opentelemetry.proto.profiles.v1development.ProfilesDictionary dictionary = 2;
200
+ */
201
+ dictionary?: ProfilesDictionary;
202
+
203
+ constructor(data?: PartialMessage<ProfilesData>);
204
+
205
+ static readonly runtime: typeof proto3;
206
+ static readonly typeName = "opentelemetry.proto.profiles.v1development.ProfilesData";
207
+ static readonly fields: FieldList;
208
+
209
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProfilesData;
210
+
211
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProfilesData;
212
+
213
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProfilesData;
214
+
215
+ static equals(a: ProfilesData | PlainMessage<ProfilesData> | undefined, b: ProfilesData | PlainMessage<ProfilesData> | undefined): boolean;
216
+ }
217
+
218
+ /**
219
+ * A collection of ScopeProfiles from a Resource.
220
+ *
221
+ * @generated from message opentelemetry.proto.profiles.v1development.ResourceProfiles
222
+ */
223
+ export declare class ResourceProfiles extends Message<ResourceProfiles> {
224
+ /**
225
+ * The resource for the profiles in this message.
226
+ * If this field is not set then no resource info is known.
227
+ *
228
+ * @generated from field: opentelemetry.proto.resource.v1.Resource resource = 1;
229
+ */
230
+ resource?: Resource;
231
+
232
+ /**
233
+ * A list of ScopeProfiles that originate from a resource.
234
+ *
235
+ * @generated from field: repeated opentelemetry.proto.profiles.v1development.ScopeProfiles scope_profiles = 2;
236
+ */
237
+ scopeProfiles: ScopeProfiles[];
238
+
239
+ /**
240
+ * The Schema URL, if known. This is the identifier of the Schema that the resource data
241
+ * is recorded in. Notably, the last part of the URL path is the version number of the
242
+ * schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see
243
+ * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
244
+ * This schema_url applies to the data in the "resource" field. It does not apply
245
+ * to the data in the "scope_profiles" field which have their own schema_url field.
246
+ *
247
+ * @generated from field: string schema_url = 3;
248
+ */
249
+ schemaUrl: string;
250
+
251
+ constructor(data?: PartialMessage<ResourceProfiles>);
252
+
253
+ static readonly runtime: typeof proto3;
254
+ static readonly typeName = "opentelemetry.proto.profiles.v1development.ResourceProfiles";
255
+ static readonly fields: FieldList;
256
+
257
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResourceProfiles;
258
+
259
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResourceProfiles;
260
+
261
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResourceProfiles;
262
+
263
+ static equals(a: ResourceProfiles | PlainMessage<ResourceProfiles> | undefined, b: ResourceProfiles | PlainMessage<ResourceProfiles> | undefined): boolean;
264
+ }
265
+
266
+ /**
267
+ * A collection of Profiles produced by an InstrumentationScope.
268
+ *
269
+ * @generated from message opentelemetry.proto.profiles.v1development.ScopeProfiles
270
+ */
271
+ export declare class ScopeProfiles extends Message<ScopeProfiles> {
272
+ /**
273
+ * The instrumentation scope information for the profiles in this message.
274
+ * Semantically when InstrumentationScope isn't set, it is equivalent with
275
+ * an empty instrumentation scope name (unknown).
276
+ *
277
+ * @generated from field: opentelemetry.proto.common.v1.InstrumentationScope scope = 1;
278
+ */
279
+ scope?: InstrumentationScope;
280
+
281
+ /**
282
+ * A list of Profiles that originate from an instrumentation scope.
283
+ *
284
+ * @generated from field: repeated opentelemetry.proto.profiles.v1development.Profile profiles = 2;
285
+ */
286
+ profiles: Profile[];
287
+
288
+ /**
289
+ * The Schema URL, if known. This is the identifier of the Schema that the profile data
290
+ * is recorded in. Notably, the last part of the URL path is the version number of the
291
+ * schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see
292
+ * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
293
+ * This schema_url applies to the data in the "scope" field and all profiles in the
294
+ * "profiles" field.
295
+ *
296
+ * @generated from field: string schema_url = 3;
297
+ */
298
+ schemaUrl: string;
299
+
300
+ constructor(data?: PartialMessage<ScopeProfiles>);
301
+
302
+ static readonly runtime: typeof proto3;
303
+ static readonly typeName = "opentelemetry.proto.profiles.v1development.ScopeProfiles";
304
+ static readonly fields: FieldList;
305
+
306
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ScopeProfiles;
307
+
308
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ScopeProfiles;
309
+
310
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ScopeProfiles;
311
+
312
+ static equals(a: ScopeProfiles | PlainMessage<ScopeProfiles> | undefined, b: ScopeProfiles | PlainMessage<ScopeProfiles> | undefined): boolean;
313
+ }
314
+
315
+ /**
316
+ * Represents a complete profile, including sample types, samples, mappings to
317
+ * binaries, stacks, locations, functions, string table, and additional
318
+ * metadata. It modifies and annotates pprof Profile with OpenTelemetry
319
+ * specific fields.
320
+ *
321
+ * Note that whilst fields in this message retain the name and field id from pprof in most cases
322
+ * for ease of understanding data migration, it is not intended that pprof:Profile and
323
+ * OpenTelemetry:Profile encoding be wire compatible.
324
+ *
325
+ * @generated from message opentelemetry.proto.profiles.v1development.Profile
326
+ */
327
+ export declare class Profile extends Message<Profile> {
328
+ /**
329
+ * The type and unit of all Sample.values in this profile.
330
+ * For a cpu or off-cpu profile this might be:
331
+ * ["cpu","nanoseconds"] or ["off_cpu","nanoseconds"]
332
+ * For a heap profile, this might be:
333
+ * ["allocated_objects","count"] or ["allocated_space","bytes"],
334
+ *
335
+ * @generated from field: opentelemetry.proto.profiles.v1development.ValueType sample_type = 1;
336
+ */
337
+ sampleType?: ValueType;
338
+
339
+ /**
340
+ * The set of samples recorded in this profile.
341
+ *
342
+ * @generated from field: repeated opentelemetry.proto.profiles.v1development.Sample samples = 2;
343
+ */
344
+ samples: Sample[];
345
+
346
+ /**
347
+ * Time of collection (UTC) represented as nanoseconds past the epoch.
348
+ *
349
+ * @generated from field: fixed64 time_unix_nano = 3;
350
+ */
351
+ timeUnixNano: bigint;
352
+
353
+ /**
354
+ * Duration of the profile, if a duration makes sense.
355
+ *
356
+ * @generated from field: uint64 duration_nano = 4;
357
+ */
358
+ durationNano: bigint;
359
+
360
+ /**
361
+ * The kind of events between sampled occurrences.
362
+ * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
363
+ *
364
+ * @generated from field: opentelemetry.proto.profiles.v1development.ValueType period_type = 5;
365
+ */
366
+ periodType?: ValueType;
367
+
368
+ /**
369
+ * The number of events between sampled occurrences.
370
+ *
371
+ * @generated from field: int64 period = 6;
372
+ */
373
+ period: bigint;
374
+
375
+ /**
376
+ * A globally unique identifier for a profile. The ID is a 16-byte array. An ID with
377
+ * all zeroes is considered invalid. It may be used for deduplication and signal
378
+ * correlation purposes. It is acceptable to treat two profiles with different values
379
+ * in this field as not equal, even if they represented the same object at an earlier
380
+ * time.
381
+ * This field is optional; an ID may be assigned to an ID-less profile in a later step.
382
+ *
383
+ * @generated from field: bytes profile_id = 7;
384
+ */
385
+ profileId: Uint8Array;
386
+
387
+ /**
388
+ * The number of attributes that were discarded. Attributes
389
+ * can be discarded because their keys are too long or because there are too many
390
+ * attributes. If this value is 0, then no attributes were dropped.
391
+ *
392
+ * @generated from field: uint32 dropped_attributes_count = 8;
393
+ */
394
+ droppedAttributesCount: number;
395
+
396
+ /**
397
+ * The original payload format. See also original_payload. Optional, but the
398
+ * format and the bytes must be set or unset together.
399
+ *
400
+ * The allowed values for the format string are defined by the OpenTelemetry
401
+ * specification. Some examples are "jfr", "pprof", "linux_perf".
402
+ *
403
+ * The original payload may be optionally provided when the conversion to the
404
+ * OLTP format was done from a different format with some loss of the fidelity
405
+ * and the receiver may want to store the original payload to allow future
406
+ * lossless export or reinterpretation. Some examples of the original format
407
+ * are JFR (Java Flight Recorder), pprof, Linux perf.
408
+ *
409
+ * Even when the original payload is in a format that is semantically close to
410
+ * OTLP, such as pprof, a conversion may still be lossy in some cases (e.g. if
411
+ * the pprof file contains custom extensions or conventions).
412
+ *
413
+ * The original payload can be large in size, so including the original
414
+ * payload should be configurable by the profiler or collector options. The
415
+ * default behavior should be to not include the original payload.
416
+ *
417
+ * @generated from field: string original_payload_format = 9;
418
+ */
419
+ originalPayloadFormat: string;
420
+
421
+ /**
422
+ * The original payload bytes. See also original_payload_format. Optional, but
423
+ * format and the bytes must be set or unset together.
424
+ *
425
+ * @generated from field: bytes original_payload = 10;
426
+ */
427
+ originalPayload: Uint8Array;
428
+
429
+ /**
430
+ * References to attributes in attribute_table. [optional]
431
+ *
432
+ * @generated from field: repeated int32 attribute_indices = 11;
433
+ */
434
+ attributeIndices: number[];
435
+
436
+ constructor(data?: PartialMessage<Profile>);
437
+
438
+ static readonly runtime: typeof proto3;
439
+ static readonly typeName = "opentelemetry.proto.profiles.v1development.Profile";
440
+ static readonly fields: FieldList;
441
+
442
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Profile;
443
+
444
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Profile;
445
+
446
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Profile;
447
+
448
+ static equals(a: Profile | PlainMessage<Profile> | undefined, b: Profile | PlainMessage<Profile> | undefined): boolean;
449
+ }
450
+
451
+ /**
452
+ * A pointer from a profile Sample to a trace Span.
453
+ * Connects a profile sample to a trace span, identified by unique trace and span IDs.
454
+ *
455
+ * @generated from message opentelemetry.proto.profiles.v1development.Link
456
+ */
457
+ export declare class Link extends Message<Link> {
458
+ /**
459
+ * A unique identifier of a trace that this linked span is part of. The ID is a
460
+ * 16-byte array.
461
+ *
462
+ * @generated from field: bytes trace_id = 1;
463
+ */
464
+ traceId: Uint8Array;
465
+
466
+ /**
467
+ * A unique identifier for the linked span. The ID is an 8-byte array.
468
+ *
469
+ * @generated from field: bytes span_id = 2;
470
+ */
471
+ spanId: Uint8Array;
472
+
473
+ constructor(data?: PartialMessage<Link>);
474
+
475
+ static readonly runtime: typeof proto3;
476
+ static readonly typeName = "opentelemetry.proto.profiles.v1development.Link";
477
+ static readonly fields: FieldList;
478
+
479
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Link;
480
+
481
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Link;
482
+
483
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Link;
484
+
485
+ static equals(a: Link | PlainMessage<Link> | undefined, b: Link | PlainMessage<Link> | undefined): boolean;
486
+ }
487
+
488
+ /**
489
+ * ValueType describes the type and units of a value.
490
+ *
491
+ * @generated from message opentelemetry.proto.profiles.v1development.ValueType
492
+ */
493
+ export declare class ValueType extends Message<ValueType> {
494
+ /**
495
+ * Index into ProfilesDictionary.string_table.
496
+ *
497
+ * @generated from field: int32 type_strindex = 1;
498
+ */
499
+ typeStrindex: number;
500
+
501
+ /**
502
+ * Index into ProfilesDictionary.string_table.
503
+ *
504
+ * @generated from field: int32 unit_strindex = 2;
505
+ */
506
+ unitStrindex: number;
507
+
508
+ constructor(data?: PartialMessage<ValueType>);
509
+
510
+ static readonly runtime: typeof proto3;
511
+ static readonly typeName = "opentelemetry.proto.profiles.v1development.ValueType";
512
+ static readonly fields: FieldList;
513
+
514
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ValueType;
515
+
516
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ValueType;
517
+
518
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ValueType;
519
+
520
+ static equals(a: ValueType | PlainMessage<ValueType> | undefined, b: ValueType | PlainMessage<ValueType> | undefined): boolean;
521
+ }
522
+
523
+ /**
524
+ * Each Sample records values encountered in some program context. The program
525
+ * context is typically a stack trace, perhaps augmented with auxiliary
526
+ * information like the thread-id, some indicator of a higher level request
527
+ * being handled etc.
528
+ *
529
+ * A Sample MUST have have at least one values or timestamps_unix_nano entry. If
530
+ * both fields are populated, they MUST contain the same number of elements, and
531
+ * the elements at the same index MUST refer to the same event.
532
+ *
533
+ * Examples of different ways of representing a sample with the total value of 10:
534
+ *
535
+ * Report of a stacktrace at 10 timestamps (consumers must assume the value is 1 for each point):
536
+ * values: []
537
+ * timestamps_unix_nano: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
538
+ *
539
+ * Report of a stacktrace with an aggregated value without timestamps:
540
+ * values: [10]
541
+ * timestamps_unix_nano: []
542
+ *
543
+ * Report of a stacktrace at 4 timestamps where each point records a specific value:
544
+ * values: [2, 2, 3, 3]
545
+ * timestamps_unix_nano: [1, 2, 3, 4]
546
+ *
547
+ * @generated from message opentelemetry.proto.profiles.v1development.Sample
548
+ */
549
+ export declare class Sample extends Message<Sample> {
550
+ /**
551
+ * Reference to stack in ProfilesDictionary.stack_table.
552
+ *
553
+ * @generated from field: int32 stack_index = 1;
554
+ */
555
+ stackIndex: number;
556
+
557
+ /**
558
+ * The type and unit of each value is defined by Profile.sample_type.
559
+ *
560
+ * @generated from field: repeated int64 values = 2;
561
+ */
562
+ values: bigint[];
563
+
564
+ /**
565
+ * References to attributes in ProfilesDictionary.attribute_table. [optional]
566
+ *
567
+ * @generated from field: repeated int32 attribute_indices = 3;
568
+ */
569
+ attributeIndices: number[];
570
+
571
+ /**
572
+ * Reference to link in ProfilesDictionary.link_table. [optional]
573
+ * It can be unset / set to 0 if no link exists, as link_table[0] is always a 'null' default value.
574
+ *
575
+ * @generated from field: int32 link_index = 4;
576
+ */
577
+ linkIndex: number;
578
+
579
+ /**
580
+ * Timestamps associated with Sample represented in nanoseconds. These
581
+ * timestamps should fall within the Profile's time range.
582
+ *
583
+ * @generated from field: repeated fixed64 timestamps_unix_nano = 5;
584
+ */
585
+ timestampsUnixNano: bigint[];
586
+
587
+ constructor(data?: PartialMessage<Sample>);
588
+
589
+ static readonly runtime: typeof proto3;
590
+ static readonly typeName = "opentelemetry.proto.profiles.v1development.Sample";
591
+ static readonly fields: FieldList;
592
+
593
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Sample;
594
+
595
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Sample;
596
+
597
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Sample;
598
+
599
+ static equals(a: Sample | PlainMessage<Sample> | undefined, b: Sample | PlainMessage<Sample> | undefined): boolean;
600
+ }
601
+
602
+ /**
603
+ * Describes the mapping of a binary in memory, including its address range,
604
+ * file offset, and metadata like build ID
605
+ *
606
+ * @generated from message opentelemetry.proto.profiles.v1development.Mapping
607
+ */
608
+ export declare class Mapping extends Message<Mapping> {
609
+ /**
610
+ * Address at which the binary (or DLL) is loaded into memory.
611
+ *
612
+ * @generated from field: uint64 memory_start = 1;
613
+ */
614
+ memoryStart: bigint;
615
+
616
+ /**
617
+ * The limit of the address range occupied by this mapping.
618
+ *
619
+ * @generated from field: uint64 memory_limit = 2;
620
+ */
621
+ memoryLimit: bigint;
622
+
623
+ /**
624
+ * Offset in the binary that corresponds to the first mapped address.
625
+ *
626
+ * @generated from field: uint64 file_offset = 3;
627
+ */
628
+ fileOffset: bigint;
629
+
630
+ /**
631
+ * The object this entry is loaded from. This can be a filename on
632
+ * disk for the main binary and shared libraries, or virtual
633
+ * abstractions like "[vdso]".
634
+ *
635
+ * Index into ProfilesDictionary.string_table.
636
+ *
637
+ * @generated from field: int32 filename_strindex = 4;
638
+ */
639
+ filenameStrindex: number;
640
+
641
+ /**
642
+ * References to attributes in ProfilesDictionary.attribute_table. [optional]
643
+ *
644
+ * @generated from field: repeated int32 attribute_indices = 5;
645
+ */
646
+ attributeIndices: number[];
647
+
648
+ constructor(data?: PartialMessage<Mapping>);
649
+
650
+ static readonly runtime: typeof proto3;
651
+ static readonly typeName = "opentelemetry.proto.profiles.v1development.Mapping";
652
+ static readonly fields: FieldList;
653
+
654
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Mapping;
655
+
656
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Mapping;
657
+
658
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Mapping;
659
+
660
+ static equals(a: Mapping | PlainMessage<Mapping> | undefined, b: Mapping | PlainMessage<Mapping> | undefined): boolean;
661
+ }
662
+
663
+ /**
664
+ * A Stack represents a stack trace as a list of locations.
665
+ *
666
+ * @generated from message opentelemetry.proto.profiles.v1development.Stack
667
+ */
668
+ export declare class Stack extends Message<Stack> {
669
+ /**
670
+ * References to locations in ProfilesDictionary.location_table.
671
+ * The first location is the leaf frame.
672
+ *
673
+ * @generated from field: repeated int32 location_indices = 1;
674
+ */
675
+ locationIndices: number[];
676
+
677
+ constructor(data?: PartialMessage<Stack>);
678
+
679
+ static readonly runtime: typeof proto3;
680
+ static readonly typeName = "opentelemetry.proto.profiles.v1development.Stack";
681
+ static readonly fields: FieldList;
682
+
683
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Stack;
684
+
685
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Stack;
686
+
687
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Stack;
688
+
689
+ static equals(a: Stack | PlainMessage<Stack> | undefined, b: Stack | PlainMessage<Stack> | undefined): boolean;
690
+ }
691
+
692
+ /**
693
+ * Describes function and line table debug information.
694
+ *
695
+ * @generated from message opentelemetry.proto.profiles.v1development.Location
696
+ */
697
+ export declare class Location extends Message<Location> {
698
+ /**
699
+ * Reference to mapping in ProfilesDictionary.mapping_table.
700
+ * It can be unset / set to 0 if the mapping is unknown or not applicable for
701
+ * this profile type, as mapping_table[0] is always a 'null' default mapping.
702
+ *
703
+ * @generated from field: int32 mapping_index = 1;
704
+ */
705
+ mappingIndex: number;
706
+
707
+ /**
708
+ * The instruction address for this location, if available. It
709
+ * should be within [Mapping.memory_start...Mapping.memory_limit]
710
+ * for the corresponding mapping. A non-leaf address may be in the
711
+ * middle of a call instruction. It is up to display tools to find
712
+ * the beginning of the instruction if necessary.
713
+ *
714
+ * @generated from field: uint64 address = 2;
715
+ */
716
+ address: bigint;
717
+
718
+ /**
719
+ * Multiple line indicates this location has inlined functions,
720
+ * where the last entry represents the caller into which the
721
+ * preceding entries were inlined.
722
+ *
723
+ * E.g., if memcpy() is inlined into printf:
724
+ * lines[0].function_name == "memcpy"
725
+ * lines[1].function_name == "printf"
726
+ *
727
+ * @generated from field: repeated opentelemetry.proto.profiles.v1development.Line lines = 3;
728
+ */
729
+ lines: Line[];
730
+
731
+ /**
732
+ * References to attributes in ProfilesDictionary.attribute_table. [optional]
733
+ *
734
+ * @generated from field: repeated int32 attribute_indices = 4;
735
+ */
736
+ attributeIndices: number[];
737
+
738
+ constructor(data?: PartialMessage<Location>);
739
+
740
+ static readonly runtime: typeof proto3;
741
+ static readonly typeName = "opentelemetry.proto.profiles.v1development.Location";
742
+ static readonly fields: FieldList;
743
+
744
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Location;
745
+
746
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Location;
747
+
748
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Location;
749
+
750
+ static equals(a: Location | PlainMessage<Location> | undefined, b: Location | PlainMessage<Location> | undefined): boolean;
751
+ }
752
+
753
+ /**
754
+ * Details a specific line in a source code, linked to a function.
755
+ *
756
+ * @generated from message opentelemetry.proto.profiles.v1development.Line
757
+ */
758
+ export declare class Line extends Message<Line> {
759
+ /**
760
+ * Reference to function in ProfilesDictionary.function_table.
761
+ *
762
+ * @generated from field: int32 function_index = 1;
763
+ */
764
+ functionIndex: number;
765
+
766
+ /**
767
+ * Line number in source code. 0 means unset.
768
+ *
769
+ * @generated from field: int64 line = 2;
770
+ */
771
+ line: bigint;
772
+
773
+ /**
774
+ * Column number in source code. 0 means unset.
775
+ *
776
+ * @generated from field: int64 column = 3;
777
+ */
778
+ column: bigint;
779
+
780
+ constructor(data?: PartialMessage<Line>);
781
+
782
+ static readonly runtime: typeof proto3;
783
+ static readonly typeName = "opentelemetry.proto.profiles.v1development.Line";
784
+ static readonly fields: FieldList;
785
+
786
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Line;
787
+
788
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Line;
789
+
790
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Line;
791
+
792
+ static equals(a: Line | PlainMessage<Line> | undefined, b: Line | PlainMessage<Line> | undefined): boolean;
793
+ }
794
+
795
+ /**
796
+ * Describes a function, including its human-readable name, system name,
797
+ * source file, and starting line number in the source.
798
+ *
799
+ * @generated from message opentelemetry.proto.profiles.v1development.Function
800
+ */
801
+ export declare class Function extends Message<Function> {
802
+ /**
803
+ * The function name. Empty string if not available.
804
+ *
805
+ * @generated from field: int32 name_strindex = 1;
806
+ */
807
+ nameStrindex: number;
808
+
809
+ /**
810
+ * Function name, as identified by the system. For instance,
811
+ * it can be a C++ mangled name. Empty string if not available.
812
+ *
813
+ * @generated from field: int32 system_name_strindex = 2;
814
+ */
815
+ systemNameStrindex: number;
816
+
817
+ /**
818
+ * Source file containing the function. Empty string if not available.
819
+ *
820
+ * @generated from field: int32 filename_strindex = 3;
821
+ */
822
+ filenameStrindex: number;
823
+
824
+ /**
825
+ * Line number in source file. 0 means unset.
826
+ *
827
+ * @generated from field: int64 start_line = 4;
828
+ */
829
+ startLine: bigint;
830
+
831
+ constructor(data?: PartialMessage<Function>);
832
+
833
+ static readonly runtime: typeof proto3;
834
+ static readonly typeName = "opentelemetry.proto.profiles.v1development.Function";
835
+ static readonly fields: FieldList;
836
+
837
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Function;
838
+
839
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Function;
840
+
841
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Function;
842
+
843
+ static equals(a: Function | PlainMessage<Function> | undefined, b: Function | PlainMessage<Function> | undefined): boolean;
844
+ }
845
+
846
+ /**
847
+ * A custom 'dictionary native' style of encoding attributes which is more convenient
848
+ * for profiles than opentelemetry.proto.common.v1.KeyValue
849
+ * Specifically, uses the string table for keys and allows optional unit information.
850
+ *
851
+ * @generated from message opentelemetry.proto.profiles.v1development.KeyValueAndUnit
852
+ */
853
+ export declare class KeyValueAndUnit extends Message<KeyValueAndUnit> {
854
+ /**
855
+ * The index into the string table for the attribute's key.
856
+ *
857
+ * @generated from field: int32 key_strindex = 1;
858
+ */
859
+ keyStrindex: number;
860
+
861
+ /**
862
+ * The value of the attribute.
863
+ *
864
+ * @generated from field: opentelemetry.proto.common.v1.AnyValue value = 2;
865
+ */
866
+ value?: AnyValue;
867
+
868
+ /**
869
+ * The index into the string table for the attribute's unit.
870
+ * zero indicates implicit (by semconv) or non-defined unit.
871
+ *
872
+ * @generated from field: int32 unit_strindex = 3;
873
+ */
874
+ unitStrindex: number;
875
+
876
+ constructor(data?: PartialMessage<KeyValueAndUnit>);
877
+
878
+ static readonly runtime: typeof proto3;
879
+ static readonly typeName = "opentelemetry.proto.profiles.v1development.KeyValueAndUnit";
880
+ static readonly fields: FieldList;
881
+
882
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): KeyValueAndUnit;
883
+
884
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): KeyValueAndUnit;
885
+
886
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): KeyValueAndUnit;
887
+
888
+ static equals(a: KeyValueAndUnit | PlainMessage<KeyValueAndUnit> | undefined, b: KeyValueAndUnit | PlainMessage<KeyValueAndUnit> | undefined): boolean;
889
+ }
890
+