@viamrobotics/sdk 0.57.0 → 0.59.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/datasync/v1/data_sync_pb.d.ts +5 -0
- package/dist/gen/app/v1/app_pb.d.ts +139 -0
- package/dist/gen/app/v1/robot_pb.d.ts +55 -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 +13348 -12911
- 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/dist/services/video/client.d.ts +20 -0
- package/dist/services/video/index.d.ts +3 -0
- package/dist/services/video/types.d.ts +9 -0
- package/dist/services/video/video.d.ts +44 -0
- package/dist/services/video.d.ts +3 -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.504";
|
|
@@ -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;
|
|
@@ -822,6 +867,30 @@ export declare class GetOrganizationNamespaceAvailabilityResponse extends Messag
|
|
|
822
867
|
static equals(a: GetOrganizationNamespaceAvailabilityResponse | PlainMessage<GetOrganizationNamespaceAvailabilityResponse> | undefined, b: GetOrganizationNamespaceAvailabilityResponse | PlainMessage<GetOrganizationNamespaceAvailabilityResponse> | undefined): boolean;
|
|
823
868
|
}
|
|
824
869
|
|
|
870
|
+
/**
|
|
871
|
+
* @generated from message viam.app.v1.FragmentImportList
|
|
872
|
+
*/
|
|
873
|
+
export declare class FragmentImportList extends Message<FragmentImportList> {
|
|
874
|
+
/**
|
|
875
|
+
* @generated from field: repeated viam.app.v1.FragmentImport imports = 1;
|
|
876
|
+
*/
|
|
877
|
+
imports: FragmentImport[];
|
|
878
|
+
|
|
879
|
+
constructor(data?: PartialMessage<FragmentImportList>);
|
|
880
|
+
|
|
881
|
+
static readonly runtime: typeof proto3;
|
|
882
|
+
static readonly typeName = "viam.app.v1.FragmentImportList";
|
|
883
|
+
static readonly fields: FieldList;
|
|
884
|
+
|
|
885
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FragmentImportList;
|
|
886
|
+
|
|
887
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FragmentImportList;
|
|
888
|
+
|
|
889
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FragmentImportList;
|
|
890
|
+
|
|
891
|
+
static equals(a: FragmentImportList | PlainMessage<FragmentImportList> | undefined, b: FragmentImportList | PlainMessage<FragmentImportList> | undefined): boolean;
|
|
892
|
+
}
|
|
893
|
+
|
|
825
894
|
/**
|
|
826
895
|
* @generated from message viam.app.v1.UpdateOrganizationRequest
|
|
827
896
|
*/
|
|
@@ -853,6 +922,11 @@ export declare class UpdateOrganizationRequest extends Message<UpdateOrganizatio
|
|
|
853
922
|
*/
|
|
854
923
|
cid?: string;
|
|
855
924
|
|
|
925
|
+
/**
|
|
926
|
+
* @generated from field: optional viam.app.v1.FragmentImportList fragment_imports = 6;
|
|
927
|
+
*/
|
|
928
|
+
fragmentImports?: FragmentImportList;
|
|
929
|
+
|
|
856
930
|
constructor(data?: PartialMessage<UpdateOrganizationRequest>);
|
|
857
931
|
|
|
858
932
|
static readonly runtime: typeof proto3;
|
|
@@ -3088,6 +3162,11 @@ export declare class GetRobotPartLogsRequest extends Message<GetRobotPartLogsReq
|
|
|
3088
3162
|
*/
|
|
3089
3163
|
source?: string;
|
|
3090
3164
|
|
|
3165
|
+
/**
|
|
3166
|
+
* @generated from field: optional bool user_facing_only = 10;
|
|
3167
|
+
*/
|
|
3168
|
+
userFacingOnly?: boolean;
|
|
3169
|
+
|
|
3091
3170
|
constructor(data?: PartialMessage<GetRobotPartLogsRequest>);
|
|
3092
3171
|
|
|
3093
3172
|
static readonly runtime: typeof proto3;
|
|
@@ -3863,6 +3942,51 @@ export declare class FragmentUsage extends Message<FragmentUsage> {
|
|
|
3863
3942
|
static equals(a: FragmentUsage | PlainMessage<FragmentUsage> | undefined, b: FragmentUsage | PlainMessage<FragmentUsage> | undefined): boolean;
|
|
3864
3943
|
}
|
|
3865
3944
|
|
|
3945
|
+
/**
|
|
3946
|
+
* @generated from message viam.app.v1.FragmentImport
|
|
3947
|
+
*/
|
|
3948
|
+
export declare class FragmentImport extends Message<FragmentImport> {
|
|
3949
|
+
/**
|
|
3950
|
+
* @generated from field: string fragment_id = 1;
|
|
3951
|
+
*/
|
|
3952
|
+
fragmentId: string;
|
|
3953
|
+
|
|
3954
|
+
/**
|
|
3955
|
+
* revision or tag
|
|
3956
|
+
*
|
|
3957
|
+
* @generated from field: string version = 2;
|
|
3958
|
+
*/
|
|
3959
|
+
version: string;
|
|
3960
|
+
|
|
3961
|
+
/**
|
|
3962
|
+
* namespace prefix
|
|
3963
|
+
*
|
|
3964
|
+
* @generated from field: optional string prefix = 3;
|
|
3965
|
+
*/
|
|
3966
|
+
prefix?: string;
|
|
3967
|
+
|
|
3968
|
+
/**
|
|
3969
|
+
* key-value pairs for fragment variables
|
|
3970
|
+
*
|
|
3971
|
+
* @generated from field: map<string, string> variables = 4;
|
|
3972
|
+
*/
|
|
3973
|
+
variables: { [key: string]: string };
|
|
3974
|
+
|
|
3975
|
+
constructor(data?: PartialMessage<FragmentImport>);
|
|
3976
|
+
|
|
3977
|
+
static readonly runtime: typeof proto3;
|
|
3978
|
+
static readonly typeName = "viam.app.v1.FragmentImport";
|
|
3979
|
+
static readonly fields: FieldList;
|
|
3980
|
+
|
|
3981
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FragmentImport;
|
|
3982
|
+
|
|
3983
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FragmentImport;
|
|
3984
|
+
|
|
3985
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FragmentImport;
|
|
3986
|
+
|
|
3987
|
+
static equals(a: FragmentImport | PlainMessage<FragmentImport> | undefined, b: FragmentImport | PlainMessage<FragmentImport> | undefined): boolean;
|
|
3988
|
+
}
|
|
3989
|
+
|
|
3866
3990
|
/**
|
|
3867
3991
|
* @generated from message viam.app.v1.ResolvedFragment
|
|
3868
3992
|
*/
|
|
@@ -4930,6 +5054,21 @@ export declare class PartSummary extends Message<PartSummary> {
|
|
|
4930
5054
|
*/
|
|
4931
5055
|
isMainPart: boolean;
|
|
4932
5056
|
|
|
5057
|
+
/**
|
|
5058
|
+
* @generated from field: viam.app.v1.OnlineState online_state = 12;
|
|
5059
|
+
*/
|
|
5060
|
+
onlineState: OnlineState;
|
|
5061
|
+
|
|
5062
|
+
/**
|
|
5063
|
+
* @generated from field: int64 seconds_since_online = 13;
|
|
5064
|
+
*/
|
|
5065
|
+
secondsSinceOnline: bigint;
|
|
5066
|
+
|
|
5067
|
+
/**
|
|
5068
|
+
* @generated from field: optional google.protobuf.Timestamp last_access = 14;
|
|
5069
|
+
*/
|
|
5070
|
+
lastAccess?: Timestamp;
|
|
5071
|
+
|
|
4933
5072
|
/**
|
|
4934
5073
|
* @generated from field: optional google.protobuf.Timestamp last_online = 3;
|
|
4935
5074
|
*/
|
|
@@ -140,6 +140,11 @@ export declare class RobotConfig extends Message<RobotConfig> {
|
|
|
140
140
|
*/
|
|
141
141
|
jobs: JobConfig[];
|
|
142
142
|
|
|
143
|
+
/**
|
|
144
|
+
* @generated from field: optional viam.app.v1.TracingConfig tracing = 19;
|
|
145
|
+
*/
|
|
146
|
+
tracing?: TracingConfig;
|
|
147
|
+
|
|
143
148
|
constructor(data?: PartialMessage<RobotConfig>);
|
|
144
149
|
|
|
145
150
|
static readonly runtime: typeof proto3;
|
|
@@ -250,6 +255,56 @@ export declare class JobConfig extends Message<JobConfig> {
|
|
|
250
255
|
static equals(a: JobConfig | PlainMessage<JobConfig> | undefined, b: JobConfig | PlainMessage<JobConfig> | undefined): boolean;
|
|
251
256
|
}
|
|
252
257
|
|
|
258
|
+
/**
|
|
259
|
+
* TracingConfig configures whether viam-server will record traces and if so
|
|
260
|
+
* where it will export them.
|
|
261
|
+
*
|
|
262
|
+
* @generated from message viam.app.v1.TracingConfig
|
|
263
|
+
*/
|
|
264
|
+
export declare class TracingConfig extends Message<TracingConfig> {
|
|
265
|
+
/**
|
|
266
|
+
* Globally enable or disable tracing support.
|
|
267
|
+
*
|
|
268
|
+
* @generated from field: bool enabled = 1;
|
|
269
|
+
*/
|
|
270
|
+
enabled: boolean;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Save trace spans to a file on disk.
|
|
274
|
+
*
|
|
275
|
+
* @generated from field: bool disk = 2;
|
|
276
|
+
*/
|
|
277
|
+
disk: boolean;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Print trace spans to the console.
|
|
281
|
+
*
|
|
282
|
+
* @generated from field: bool console = 3;
|
|
283
|
+
*/
|
|
284
|
+
console: boolean;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Send trace spans to an OTLP gRPC endpoint.
|
|
288
|
+
*
|
|
289
|
+
* @generated from field: string otlp_endpoint = 4;
|
|
290
|
+
*/
|
|
291
|
+
otlpEndpoint: string;
|
|
292
|
+
|
|
293
|
+
constructor(data?: PartialMessage<TracingConfig>);
|
|
294
|
+
|
|
295
|
+
static readonly runtime: typeof proto3;
|
|
296
|
+
static readonly typeName = "viam.app.v1.TracingConfig";
|
|
297
|
+
static readonly fields: FieldList;
|
|
298
|
+
|
|
299
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TracingConfig;
|
|
300
|
+
|
|
301
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TracingConfig;
|
|
302
|
+
|
|
303
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TracingConfig;
|
|
304
|
+
|
|
305
|
+
static equals(a: TracingConfig | PlainMessage<TracingConfig> | undefined, b: TracingConfig | PlainMessage<TracingConfig> | undefined): boolean;
|
|
306
|
+
}
|
|
307
|
+
|
|
253
308
|
/**
|
|
254
309
|
* Valid location secret that can be used for authentication to the robot.
|
|
255
310
|
*
|
|
@@ -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
|
+
|