@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,135 @@
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/collector/logs/v1/logs_service.proto (package opentelemetry.proto.collector.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 { ResourceLogs } from "../../../logs/v1/logs_pb.js";
23
+
24
+ /**
25
+ * @generated from message opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest
26
+ */
27
+ export declare class ExportLogsServiceRequest extends Message<ExportLogsServiceRequest> {
28
+ /**
29
+ * An array of ResourceLogs.
30
+ * For data coming from a single resource this array will typically contain one
31
+ * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
32
+ * data from multiple origins typically batch the data before forwarding further and
33
+ * in that case this array will contain multiple elements.
34
+ *
35
+ * @generated from field: repeated opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;
36
+ */
37
+ resourceLogs: ResourceLogs[];
38
+
39
+ constructor(data?: PartialMessage<ExportLogsServiceRequest>);
40
+
41
+ static readonly runtime: typeof proto3;
42
+ static readonly typeName = "opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest";
43
+ static readonly fields: FieldList;
44
+
45
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExportLogsServiceRequest;
46
+
47
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExportLogsServiceRequest;
48
+
49
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExportLogsServiceRequest;
50
+
51
+ static equals(a: ExportLogsServiceRequest | PlainMessage<ExportLogsServiceRequest> | undefined, b: ExportLogsServiceRequest | PlainMessage<ExportLogsServiceRequest> | undefined): boolean;
52
+ }
53
+
54
+ /**
55
+ * @generated from message opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse
56
+ */
57
+ export declare class ExportLogsServiceResponse extends Message<ExportLogsServiceResponse> {
58
+ /**
59
+ * The details of a partially successful export request.
60
+ *
61
+ * If the request is only partially accepted
62
+ * (i.e. when the server accepts only parts of the data and rejects the rest)
63
+ * the server MUST initialize the `partial_success` field and MUST
64
+ * set the `rejected_<signal>` with the number of items it rejected.
65
+ *
66
+ * Servers MAY also make use of the `partial_success` field to convey
67
+ * warnings/suggestions to senders even when the request was fully accepted.
68
+ * In such cases, the `rejected_<signal>` MUST have a value of `0` and
69
+ * the `error_message` MUST be non-empty.
70
+ *
71
+ * A `partial_success` message with an empty value (rejected_<signal> = 0 and
72
+ * `error_message` = "") is equivalent to it not being set/present. Senders
73
+ * SHOULD interpret it the same way as in the full success case.
74
+ *
75
+ * @generated from field: opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess partial_success = 1;
76
+ */
77
+ partialSuccess?: ExportLogsPartialSuccess;
78
+
79
+ constructor(data?: PartialMessage<ExportLogsServiceResponse>);
80
+
81
+ static readonly runtime: typeof proto3;
82
+ static readonly typeName = "opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse";
83
+ static readonly fields: FieldList;
84
+
85
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExportLogsServiceResponse;
86
+
87
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExportLogsServiceResponse;
88
+
89
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExportLogsServiceResponse;
90
+
91
+ static equals(a: ExportLogsServiceResponse | PlainMessage<ExportLogsServiceResponse> | undefined, b: ExportLogsServiceResponse | PlainMessage<ExportLogsServiceResponse> | undefined): boolean;
92
+ }
93
+
94
+ /**
95
+ * @generated from message opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess
96
+ */
97
+ export declare class ExportLogsPartialSuccess extends Message<ExportLogsPartialSuccess> {
98
+ /**
99
+ * The number of rejected log records.
100
+ *
101
+ * A `rejected_<signal>` field holding a `0` value indicates that the
102
+ * request was fully accepted.
103
+ *
104
+ * @generated from field: int64 rejected_log_records = 1;
105
+ */
106
+ rejectedLogRecords: bigint;
107
+
108
+ /**
109
+ * A developer-facing human-readable message in English. It should be used
110
+ * either to explain why the server rejected parts of the data during a partial
111
+ * success or to convey warnings/suggestions during a full success. The message
112
+ * should offer guidance on how users can address such issues.
113
+ *
114
+ * error_message is an optional field. An error_message with an empty value
115
+ * is equivalent to it not being set.
116
+ *
117
+ * @generated from field: string error_message = 2;
118
+ */
119
+ errorMessage: string;
120
+
121
+ constructor(data?: PartialMessage<ExportLogsPartialSuccess>);
122
+
123
+ static readonly runtime: typeof proto3;
124
+ static readonly typeName = "opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess";
125
+ static readonly fields: FieldList;
126
+
127
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExportLogsPartialSuccess;
128
+
129
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExportLogsPartialSuccess;
130
+
131
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExportLogsPartialSuccess;
132
+
133
+ static equals(a: ExportLogsPartialSuccess | PlainMessage<ExportLogsPartialSuccess> | undefined, b: ExportLogsPartialSuccess | PlainMessage<ExportLogsPartialSuccess> | undefined): boolean;
134
+ }
135
+
@@ -0,0 +1,44 @@
1
+ // Copyright 2019, 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-connect-es v1.5.0
16
+ // @generated from file opentelemetry/proto/collector/metrics/v1/metrics_service.proto (package opentelemetry.proto.collector.metrics.v1, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import { ExportMetricsServiceRequest, ExportMetricsServiceResponse } from "./metrics_service_pb.js";
21
+ import { MethodKind } from "@bufbuild/protobuf";
22
+
23
+ /**
24
+ * Service that can be used to push metrics between one Application
25
+ * instrumented with OpenTelemetry and a collector, or between a collector and a
26
+ * central collector.
27
+ *
28
+ * @generated from service opentelemetry.proto.collector.metrics.v1.MetricsService
29
+ */
30
+ export declare const MetricsService: {
31
+ readonly typeName: "opentelemetry.proto.collector.metrics.v1.MetricsService",
32
+ readonly methods: {
33
+ /**
34
+ * @generated from rpc opentelemetry.proto.collector.metrics.v1.MetricsService.Export
35
+ */
36
+ readonly export: {
37
+ readonly name: "Export",
38
+ readonly I: typeof ExportMetricsServiceRequest,
39
+ readonly O: typeof ExportMetricsServiceResponse,
40
+ readonly kind: MethodKind.Unary,
41
+ },
42
+ }
43
+ };
44
+
@@ -0,0 +1,135 @@
1
+ // Copyright 2019, 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/collector/metrics/v1/metrics_service.proto (package opentelemetry.proto.collector.metrics.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 { ResourceMetrics } from "../../../metrics/v1/metrics_pb.js";
23
+
24
+ /**
25
+ * @generated from message opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest
26
+ */
27
+ export declare class ExportMetricsServiceRequest extends Message<ExportMetricsServiceRequest> {
28
+ /**
29
+ * An array of ResourceMetrics.
30
+ * For data coming from a single resource this array will typically contain one
31
+ * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
32
+ * data from multiple origins typically batch the data before forwarding further and
33
+ * in that case this array will contain multiple elements.
34
+ *
35
+ * @generated from field: repeated opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1;
36
+ */
37
+ resourceMetrics: ResourceMetrics[];
38
+
39
+ constructor(data?: PartialMessage<ExportMetricsServiceRequest>);
40
+
41
+ static readonly runtime: typeof proto3;
42
+ static readonly typeName = "opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest";
43
+ static readonly fields: FieldList;
44
+
45
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExportMetricsServiceRequest;
46
+
47
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExportMetricsServiceRequest;
48
+
49
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExportMetricsServiceRequest;
50
+
51
+ static equals(a: ExportMetricsServiceRequest | PlainMessage<ExportMetricsServiceRequest> | undefined, b: ExportMetricsServiceRequest | PlainMessage<ExportMetricsServiceRequest> | undefined): boolean;
52
+ }
53
+
54
+ /**
55
+ * @generated from message opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse
56
+ */
57
+ export declare class ExportMetricsServiceResponse extends Message<ExportMetricsServiceResponse> {
58
+ /**
59
+ * The details of a partially successful export request.
60
+ *
61
+ * If the request is only partially accepted
62
+ * (i.e. when the server accepts only parts of the data and rejects the rest)
63
+ * the server MUST initialize the `partial_success` field and MUST
64
+ * set the `rejected_<signal>` with the number of items it rejected.
65
+ *
66
+ * Servers MAY also make use of the `partial_success` field to convey
67
+ * warnings/suggestions to senders even when the request was fully accepted.
68
+ * In such cases, the `rejected_<signal>` MUST have a value of `0` and
69
+ * the `error_message` MUST be non-empty.
70
+ *
71
+ * A `partial_success` message with an empty value (rejected_<signal> = 0 and
72
+ * `error_message` = "") is equivalent to it not being set/present. Senders
73
+ * SHOULD interpret it the same way as in the full success case.
74
+ *
75
+ * @generated from field: opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess partial_success = 1;
76
+ */
77
+ partialSuccess?: ExportMetricsPartialSuccess;
78
+
79
+ constructor(data?: PartialMessage<ExportMetricsServiceResponse>);
80
+
81
+ static readonly runtime: typeof proto3;
82
+ static readonly typeName = "opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse";
83
+ static readonly fields: FieldList;
84
+
85
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExportMetricsServiceResponse;
86
+
87
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExportMetricsServiceResponse;
88
+
89
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExportMetricsServiceResponse;
90
+
91
+ static equals(a: ExportMetricsServiceResponse | PlainMessage<ExportMetricsServiceResponse> | undefined, b: ExportMetricsServiceResponse | PlainMessage<ExportMetricsServiceResponse> | undefined): boolean;
92
+ }
93
+
94
+ /**
95
+ * @generated from message opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess
96
+ */
97
+ export declare class ExportMetricsPartialSuccess extends Message<ExportMetricsPartialSuccess> {
98
+ /**
99
+ * The number of rejected data points.
100
+ *
101
+ * A `rejected_<signal>` field holding a `0` value indicates that the
102
+ * request was fully accepted.
103
+ *
104
+ * @generated from field: int64 rejected_data_points = 1;
105
+ */
106
+ rejectedDataPoints: bigint;
107
+
108
+ /**
109
+ * A developer-facing human-readable message in English. It should be used
110
+ * either to explain why the server rejected parts of the data during a partial
111
+ * success or to convey warnings/suggestions during a full success. The message
112
+ * should offer guidance on how users can address such issues.
113
+ *
114
+ * error_message is an optional field. An error_message with an empty value
115
+ * is equivalent to it not being set.
116
+ *
117
+ * @generated from field: string error_message = 2;
118
+ */
119
+ errorMessage: string;
120
+
121
+ constructor(data?: PartialMessage<ExportMetricsPartialSuccess>);
122
+
123
+ static readonly runtime: typeof proto3;
124
+ static readonly typeName = "opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess";
125
+ static readonly fields: FieldList;
126
+
127
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExportMetricsPartialSuccess;
128
+
129
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExportMetricsPartialSuccess;
130
+
131
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExportMetricsPartialSuccess;
132
+
133
+ static equals(a: ExportMetricsPartialSuccess | PlainMessage<ExportMetricsPartialSuccess> | undefined, b: ExportMetricsPartialSuccess | PlainMessage<ExportMetricsPartialSuccess> | undefined): boolean;
134
+ }
135
+
@@ -0,0 +1,43 @@
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
+ // @generated by protoc-gen-connect-es v1.5.0
16
+ // @generated from file opentelemetry/proto/collector/profiles/v1development/profiles_service.proto (package opentelemetry.proto.collector.profiles.v1development, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import { ExportProfilesServiceRequest, ExportProfilesServiceResponse } from "./profiles_service_pb.js";
21
+ import { MethodKind } from "@bufbuild/protobuf";
22
+
23
+ /**
24
+ * Service that can be used to push profiles between one Application instrumented with
25
+ * OpenTelemetry and a collector, or between a collector and a central collector.
26
+ *
27
+ * @generated from service opentelemetry.proto.collector.profiles.v1development.ProfilesService
28
+ */
29
+ export declare const ProfilesService: {
30
+ readonly typeName: "opentelemetry.proto.collector.profiles.v1development.ProfilesService",
31
+ readonly methods: {
32
+ /**
33
+ * @generated from rpc opentelemetry.proto.collector.profiles.v1development.ProfilesService.Export
34
+ */
35
+ readonly export: {
36
+ readonly name: "Export",
37
+ readonly I: typeof ExportProfilesServiceRequest,
38
+ readonly O: typeof ExportProfilesServiceResponse,
39
+ readonly kind: MethodKind.Unary,
40
+ },
41
+ }
42
+ };
43
+
@@ -0,0 +1,142 @@
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
+ // @generated by protoc-gen-es v1.10.0
16
+ // @generated from file opentelemetry/proto/collector/profiles/v1development/profiles_service.proto (package opentelemetry.proto.collector.profiles.v1development, 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 { ProfilesDictionary, ResourceProfiles } from "../../../profiles/v1development/profiles_pb.js";
23
+
24
+ /**
25
+ * @generated from message opentelemetry.proto.collector.profiles.v1development.ExportProfilesServiceRequest
26
+ */
27
+ export declare class ExportProfilesServiceRequest extends Message<ExportProfilesServiceRequest> {
28
+ /**
29
+ * An array of ResourceProfiles.
30
+ * For data coming from a single resource this array will typically contain one
31
+ * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
32
+ * data from multiple origins typically batch the data before forwarding further and
33
+ * in that case this array will contain multiple elements.
34
+ *
35
+ * @generated from field: repeated opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;
36
+ */
37
+ resourceProfiles: ResourceProfiles[];
38
+
39
+ /**
40
+ * The reference table containing all data shared by profiles across the message being sent.
41
+ *
42
+ * @generated from field: opentelemetry.proto.profiles.v1development.ProfilesDictionary dictionary = 2;
43
+ */
44
+ dictionary?: ProfilesDictionary;
45
+
46
+ constructor(data?: PartialMessage<ExportProfilesServiceRequest>);
47
+
48
+ static readonly runtime: typeof proto3;
49
+ static readonly typeName = "opentelemetry.proto.collector.profiles.v1development.ExportProfilesServiceRequest";
50
+ static readonly fields: FieldList;
51
+
52
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExportProfilesServiceRequest;
53
+
54
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExportProfilesServiceRequest;
55
+
56
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExportProfilesServiceRequest;
57
+
58
+ static equals(a: ExportProfilesServiceRequest | PlainMessage<ExportProfilesServiceRequest> | undefined, b: ExportProfilesServiceRequest | PlainMessage<ExportProfilesServiceRequest> | undefined): boolean;
59
+ }
60
+
61
+ /**
62
+ * @generated from message opentelemetry.proto.collector.profiles.v1development.ExportProfilesServiceResponse
63
+ */
64
+ export declare class ExportProfilesServiceResponse extends Message<ExportProfilesServiceResponse> {
65
+ /**
66
+ * The details of a partially successful export request.
67
+ *
68
+ * If the request is only partially accepted
69
+ * (i.e. when the server accepts only parts of the data and rejects the rest)
70
+ * the server MUST initialize the `partial_success` field and MUST
71
+ * set the `rejected_<signal>` with the number of items it rejected.
72
+ *
73
+ * Servers MAY also make use of the `partial_success` field to convey
74
+ * warnings/suggestions to senders even when the request was fully accepted.
75
+ * In such cases, the `rejected_<signal>` MUST have a value of `0` and
76
+ * the `error_message` MUST be non-empty.
77
+ *
78
+ * A `partial_success` message with an empty value (rejected_<signal> = 0 and
79
+ * `error_message` = "") is equivalent to it not being set/present. Senders
80
+ * SHOULD interpret it the same way as in the full success case.
81
+ *
82
+ * @generated from field: opentelemetry.proto.collector.profiles.v1development.ExportProfilesPartialSuccess partial_success = 1;
83
+ */
84
+ partialSuccess?: ExportProfilesPartialSuccess;
85
+
86
+ constructor(data?: PartialMessage<ExportProfilesServiceResponse>);
87
+
88
+ static readonly runtime: typeof proto3;
89
+ static readonly typeName = "opentelemetry.proto.collector.profiles.v1development.ExportProfilesServiceResponse";
90
+ static readonly fields: FieldList;
91
+
92
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExportProfilesServiceResponse;
93
+
94
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExportProfilesServiceResponse;
95
+
96
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExportProfilesServiceResponse;
97
+
98
+ static equals(a: ExportProfilesServiceResponse | PlainMessage<ExportProfilesServiceResponse> | undefined, b: ExportProfilesServiceResponse | PlainMessage<ExportProfilesServiceResponse> | undefined): boolean;
99
+ }
100
+
101
+ /**
102
+ * @generated from message opentelemetry.proto.collector.profiles.v1development.ExportProfilesPartialSuccess
103
+ */
104
+ export declare class ExportProfilesPartialSuccess extends Message<ExportProfilesPartialSuccess> {
105
+ /**
106
+ * The number of rejected profiles.
107
+ *
108
+ * A `rejected_<signal>` field holding a `0` value indicates that the
109
+ * request was fully accepted.
110
+ *
111
+ * @generated from field: int64 rejected_profiles = 1;
112
+ */
113
+ rejectedProfiles: bigint;
114
+
115
+ /**
116
+ * A developer-facing human-readable message in English. It should be used
117
+ * either to explain why the server rejected parts of the data during a partial
118
+ * success or to convey warnings/suggestions during a full success. The message
119
+ * should offer guidance on how users can address such issues.
120
+ *
121
+ * error_message is an optional field. An error_message with an empty value
122
+ * is equivalent to it not being set.
123
+ *
124
+ * @generated from field: string error_message = 2;
125
+ */
126
+ errorMessage: string;
127
+
128
+ constructor(data?: PartialMessage<ExportProfilesPartialSuccess>);
129
+
130
+ static readonly runtime: typeof proto3;
131
+ static readonly typeName = "opentelemetry.proto.collector.profiles.v1development.ExportProfilesPartialSuccess";
132
+ static readonly fields: FieldList;
133
+
134
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExportProfilesPartialSuccess;
135
+
136
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExportProfilesPartialSuccess;
137
+
138
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExportProfilesPartialSuccess;
139
+
140
+ static equals(a: ExportProfilesPartialSuccess | PlainMessage<ExportProfilesPartialSuccess> | undefined, b: ExportProfilesPartialSuccess | PlainMessage<ExportProfilesPartialSuccess> | undefined): boolean;
141
+ }
142
+
@@ -0,0 +1,44 @@
1
+ // Copyright 2019, 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-connect-es v1.5.0
16
+ // @generated from file opentelemetry/proto/collector/trace/v1/trace_service.proto (package opentelemetry.proto.collector.trace.v1, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import { ExportTraceServiceRequest, ExportTraceServiceResponse } from "./trace_service_pb.js";
21
+ import { MethodKind } from "@bufbuild/protobuf";
22
+
23
+ /**
24
+ * Service that can be used to push spans between one Application instrumented with
25
+ * OpenTelemetry and a collector, or between a collector and a central collector (in this
26
+ * case spans are sent/received to/from multiple Applications).
27
+ *
28
+ * @generated from service opentelemetry.proto.collector.trace.v1.TraceService
29
+ */
30
+ export declare const TraceService: {
31
+ readonly typeName: "opentelemetry.proto.collector.trace.v1.TraceService",
32
+ readonly methods: {
33
+ /**
34
+ * @generated from rpc opentelemetry.proto.collector.trace.v1.TraceService.Export
35
+ */
36
+ readonly export: {
37
+ readonly name: "Export",
38
+ readonly I: typeof ExportTraceServiceRequest,
39
+ readonly O: typeof ExportTraceServiceResponse,
40
+ readonly kind: MethodKind.Unary,
41
+ },
42
+ }
43
+ };
44
+