@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.
- package/README.md +0 -5
- package/dist/api-version.d.ts +1 -1
- package/dist/app/data-client.d.ts +3 -1
- package/dist/audio-common.d.ts +1 -1
- package/dist/gen/app/v1/app_pb.d.ts +65 -0
- package/dist/gen/component/camera/v1/camera_pb.d.ts +8 -0
- package/dist/gen/opentelemetry/proto/collector/logs/v1/logs_service_connect.d.ts +44 -0
- package/dist/gen/opentelemetry/proto/collector/logs/v1/logs_service_pb.d.ts +135 -0
- package/dist/gen/opentelemetry/proto/collector/metrics/v1/metrics_service_connect.d.ts +44 -0
- package/dist/gen/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.d.ts +135 -0
- package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_connect.d.ts +43 -0
- package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_pb.d.ts +142 -0
- package/dist/gen/opentelemetry/proto/collector/trace/v1/trace_service_connect.d.ts +44 -0
- package/dist/gen/opentelemetry/proto/collector/trace/v1/trace_service_pb.d.ts +135 -0
- package/dist/gen/opentelemetry/proto/common/v1/common_pb.d.ts +322 -0
- package/dist/gen/opentelemetry/proto/logs/v1/logs_pb.d.ts +479 -0
- package/dist/gen/opentelemetry/proto/metrics/v1/metrics_pb.d.ts +1349 -0
- package/dist/gen/opentelemetry/proto/profiles/v1development/profiles_pb.d.ts +890 -0
- package/dist/gen/opentelemetry/proto/resource/v1/resource_pb.d.ts +73 -0
- package/dist/gen/opentelemetry/proto/trace/v1/trace_pb.d.ts +683 -0
- package/dist/gen/robot/v1/robot_connect.d.ts +10 -1
- package/dist/gen/robot/v1/robot_pb.d.ts +44 -0
- package/dist/main.es.js +12232 -11862
- package/dist/main.umd.js +7 -7
- package/dist/robot/client.d.ts +20 -16
- package/dist/robot/robot.d.ts +19 -10
- package/dist/robot.d.ts +1 -1
- package/dist/services/motion/client.d.ts +1 -0
- package/dist/services/motion/motion.d.ts +1 -0
- package/package.json +1 -1
- package/dist/app/app-client.spec.d.ts +0 -1
- package/dist/app/billing-client.spec.d.ts +0 -1
- package/dist/app/data-client.spec.d.ts +0 -1
- package/dist/app/ml-training-client.spec.d.ts +0 -1
- package/dist/app/provisioning-client.spec.d.ts +0 -1
- package/dist/app/viam-client.spec.d.ts +0 -1
- package/dist/components/audio-in/client.spec.d.ts +0 -1
- package/dist/components/audio-out/client.spec.d.ts +0 -1
- package/dist/components/board/client.spec.d.ts +0 -1
- package/dist/components/input-controller/client.spec.d.ts +0 -1
- package/dist/components/movement-sensor/client.spec.d.ts +0 -1
- package/dist/components/power-sensor/client.spec.d.ts +0 -1
- package/dist/extra/stream/client.spec.d.ts +0 -1
- package/dist/services/discovery/client.spec.d.ts +0 -1
- package/dist/services/motion/client.spec.d.ts +0 -1
- package/dist/services/navigation/client.spec.d.ts +0 -1
- package/dist/services/slam/client.spec.d.ts +0 -1
- package/dist/services/vision/client.spec.d.ts +0 -1
- package/dist/services/world-state-store/client.spec.d.ts +0 -1
package/README.md
CHANGED
|
@@ -6,11 +6,6 @@ Build and connect to robots with TypeScript
|
|
|
6
6
|
[](https://www.npmjs.com/package/@viamrobotics/sdk)
|
|
7
7
|
[](https://ts.viam.dev)
|
|
8
8
|
|
|
9
|
-
## (In)stability Notice
|
|
10
|
-
|
|
11
|
-
> **Warning**
|
|
12
|
-
> This is a beta release of the Viam TypeScript SDK. Stability is not guaranteed. Breaking changes are likely to occur, and occur often.
|
|
13
|
-
|
|
14
9
|
## Usage
|
|
15
10
|
|
|
16
11
|
### Installation
|
package/dist/api-version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const apiVersion = "v0.1.
|
|
1
|
+
export declare const apiVersion = "v0.1.500";
|
|
@@ -258,9 +258,11 @@ export declare class DataClient {
|
|
|
258
258
|
* API](https://docs.viam.com/dev/reference/apis/data-client/#binarydatabyids).
|
|
259
259
|
*
|
|
260
260
|
* @param ids The IDs of the requested binary data
|
|
261
|
+
* @param includeBinary Whether to include binary file data with each
|
|
262
|
+
* retrieved file
|
|
261
263
|
* @returns An array of data objects
|
|
262
264
|
*/
|
|
263
|
-
binaryDataByIds(ids: string[] | BinaryID[]): Promise<import("../gen/app/data/v1/data_pb").BinaryData[]>;
|
|
265
|
+
binaryDataByIds(ids: string[] | BinaryID[], includeBinary?: boolean): Promise<import("../gen/app/data/v1/data_pb").BinaryData[]>;
|
|
264
266
|
/**
|
|
265
267
|
* Create a signed URL for binary data.
|
|
266
268
|
*
|
package/dist/audio-common.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const AudioCodec: {
|
|
|
11
11
|
readonly MP3: "mp3";
|
|
12
12
|
readonly PCM16: "pcm16";
|
|
13
13
|
readonly PCM32: "pcm32";
|
|
14
|
-
readonly PCM32_FLOAT: "
|
|
14
|
+
readonly PCM32_FLOAT: "pcm32_float";
|
|
15
15
|
readonly AAC: "aac";
|
|
16
16
|
readonly OPUS: "opus";
|
|
17
17
|
readonly FLAC: "flac";
|
|
@@ -9,6 +9,31 @@ import type { LogEntry } from "../../common/v1/common_pb.js";
|
|
|
9
9
|
import type { ModelFramework, ModelType } from "../mltraining/v1/ml_training_pb.js";
|
|
10
10
|
import type { PackageType } from "../packages/v1/packages_pb.js";
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* @generated from enum viam.app.v1.OnlineState
|
|
14
|
+
*/
|
|
15
|
+
export declare enum OnlineState {
|
|
16
|
+
/**
|
|
17
|
+
* @generated from enum value: ONLINE_STATE_UNSPECIFIED = 0;
|
|
18
|
+
*/
|
|
19
|
+
UNSPECIFIED = 0,
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @generated from enum value: ONLINE_STATE_ONLINE = 1;
|
|
23
|
+
*/
|
|
24
|
+
ONLINE = 1,
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @generated from enum value: ONLINE_STATE_OFFLINE = 2;
|
|
28
|
+
*/
|
|
29
|
+
OFFLINE = 2,
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @generated from enum value: ONLINE_STATE_AWAITING_SETUP = 3;
|
|
33
|
+
*/
|
|
34
|
+
AWAITING_SETUP = 3,
|
|
35
|
+
}
|
|
36
|
+
|
|
12
37
|
/**
|
|
13
38
|
* @generated from enum viam.app.v1.AuthenticationType
|
|
14
39
|
*/
|
|
@@ -299,6 +324,16 @@ export declare class Robot extends Message<Robot> {
|
|
|
299
324
|
*/
|
|
300
325
|
createdOn?: Timestamp;
|
|
301
326
|
|
|
327
|
+
/**
|
|
328
|
+
* @generated from field: viam.app.v1.OnlineState online_state = 6;
|
|
329
|
+
*/
|
|
330
|
+
onlineState: OnlineState;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* @generated from field: int64 seconds_since_online = 7;
|
|
334
|
+
*/
|
|
335
|
+
secondsSinceOnline: bigint;
|
|
336
|
+
|
|
302
337
|
constructor(data?: PartialMessage<Robot>);
|
|
303
338
|
|
|
304
339
|
static readonly runtime: typeof proto3;
|
|
@@ -402,6 +437,16 @@ export declare class RobotPart extends Message<RobotPart> {
|
|
|
402
437
|
*/
|
|
403
438
|
lastUpdated?: Timestamp;
|
|
404
439
|
|
|
440
|
+
/**
|
|
441
|
+
* @generated from field: viam.app.v1.OnlineState online_state = 16;
|
|
442
|
+
*/
|
|
443
|
+
onlineState: OnlineState;
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* @generated from field: int64 seconds_since_online = 17;
|
|
447
|
+
*/
|
|
448
|
+
secondsSinceOnline: bigint;
|
|
449
|
+
|
|
405
450
|
constructor(data?: PartialMessage<RobotPart>);
|
|
406
451
|
|
|
407
452
|
static readonly runtime: typeof proto3;
|
|
@@ -3088,6 +3133,11 @@ export declare class GetRobotPartLogsRequest extends Message<GetRobotPartLogsReq
|
|
|
3088
3133
|
*/
|
|
3089
3134
|
source?: string;
|
|
3090
3135
|
|
|
3136
|
+
/**
|
|
3137
|
+
* @generated from field: optional bool user_facing_only = 10;
|
|
3138
|
+
*/
|
|
3139
|
+
userFacingOnly?: boolean;
|
|
3140
|
+
|
|
3091
3141
|
constructor(data?: PartialMessage<GetRobotPartLogsRequest>);
|
|
3092
3142
|
|
|
3093
3143
|
static readonly runtime: typeof proto3;
|
|
@@ -4930,6 +4980,21 @@ export declare class PartSummary extends Message<PartSummary> {
|
|
|
4930
4980
|
*/
|
|
4931
4981
|
isMainPart: boolean;
|
|
4932
4982
|
|
|
4983
|
+
/**
|
|
4984
|
+
* @generated from field: viam.app.v1.OnlineState online_state = 12;
|
|
4985
|
+
*/
|
|
4986
|
+
onlineState: OnlineState;
|
|
4987
|
+
|
|
4988
|
+
/**
|
|
4989
|
+
* @generated from field: int64 seconds_since_online = 13;
|
|
4990
|
+
*/
|
|
4991
|
+
secondsSinceOnline: bigint;
|
|
4992
|
+
|
|
4993
|
+
/**
|
|
4994
|
+
* @generated from field: optional google.protobuf.Timestamp last_access = 14;
|
|
4995
|
+
*/
|
|
4996
|
+
lastAccess?: Timestamp;
|
|
4997
|
+
|
|
4933
4998
|
/**
|
|
4934
4999
|
* @generated from field: optional google.protobuf.Timestamp last_online = 3;
|
|
4935
5000
|
*/
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Struct } from "@bufbuild/protobuf";
|
|
7
7
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
8
|
import type { ResponseMetadata } from "../../../common/v1/common_pb.js";
|
|
9
|
+
import type { Annotations } from "../../../app/data/v1/data_pb.js";
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* @generated from enum viam.component.camera.v1.Format
|
|
@@ -216,6 +217,13 @@ export declare class Image extends Message<Image> {
|
|
|
216
217
|
*/
|
|
217
218
|
mimeType: string;
|
|
218
219
|
|
|
220
|
+
/**
|
|
221
|
+
* annotations can be used to store additional information about the image
|
|
222
|
+
*
|
|
223
|
+
* @generated from field: viam.app.data.v1.Annotations annotations = 5;
|
|
224
|
+
*/
|
|
225
|
+
annotations?: Annotations;
|
|
226
|
+
|
|
219
227
|
constructor(data?: PartialMessage<Image>);
|
|
220
228
|
|
|
221
229
|
static readonly runtime: typeof proto3;
|
|
@@ -0,0 +1,44 @@
|
|
|
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-connect-es v1.5.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 { ExportLogsServiceRequest, ExportLogsServiceResponse } from "./logs_service_pb.js";
|
|
21
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Service that can be used to push logs between one Application instrumented with
|
|
25
|
+
* OpenTelemetry and an collector, or between an collector and a central collector (in this
|
|
26
|
+
* case logs are sent/received to/from multiple Applications).
|
|
27
|
+
*
|
|
28
|
+
* @generated from service opentelemetry.proto.collector.logs.v1.LogsService
|
|
29
|
+
*/
|
|
30
|
+
export declare const LogsService: {
|
|
31
|
+
readonly typeName: "opentelemetry.proto.collector.logs.v1.LogsService",
|
|
32
|
+
readonly methods: {
|
|
33
|
+
/**
|
|
34
|
+
* @generated from rpc opentelemetry.proto.collector.logs.v1.LogsService.Export
|
|
35
|
+
*/
|
|
36
|
+
readonly export: {
|
|
37
|
+
readonly name: "Export",
|
|
38
|
+
readonly I: typeof ExportLogsServiceRequest,
|
|
39
|
+
readonly O: typeof ExportLogsServiceResponse,
|
|
40
|
+
readonly kind: MethodKind.Unary,
|
|
41
|
+
},
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
@@ -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
|
+
|
package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_connect.d.ts
ADDED
|
@@ -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
|
+
|