// package: common // file: common/common.proto import * as jspb from "google-protobuf"; import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; export class Location extends jspb.Message { getLatitude(): number; setLatitude(value: number): void; getLongitude(): number; setLongitude(value: number): void; getAltitude(): number; setAltitude(value: number): void; getSource(): LocationSourceMap[keyof LocationSourceMap]; setSource(value: LocationSourceMap[keyof LocationSourceMap]): void; getAccuracy(): number; setAccuracy(value: number): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Location.AsObject; static toObject(includeInstance: boolean, msg: Location): Location.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; static serializeBinaryToWriter(message: Location, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): Location; static deserializeBinaryFromReader(message: Location, reader: jspb.BinaryReader): Location; } export namespace Location { export type AsObject = { latitude: number, longitude: number, altitude: number, source: LocationSourceMap[keyof LocationSourceMap], accuracy: number, } } export class KeyEnvelope extends jspb.Message { getKekLabel(): string; setKekLabel(value: string): void; getAesKey(): Uint8Array | string; getAesKey_asU8(): Uint8Array; getAesKey_asB64(): string; setAesKey(value: Uint8Array | string): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): KeyEnvelope.AsObject; static toObject(includeInstance: boolean, msg: KeyEnvelope): KeyEnvelope.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; static serializeBinaryToWriter(message: KeyEnvelope, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): KeyEnvelope; static deserializeBinaryFromReader(message: KeyEnvelope, reader: jspb.BinaryReader): KeyEnvelope; } export namespace KeyEnvelope { export type AsObject = { kekLabel: string, aesKey: Uint8Array | string, } } export class Metric extends jspb.Message { getName(): string; setName(value: string): void; clearTimestampsList(): void; getTimestampsList(): Array; setTimestampsList(value: Array): void; addTimestamps(value?: google_protobuf_timestamp_pb.Timestamp, index?: number): google_protobuf_timestamp_pb.Timestamp; clearDatasetsList(): void; getDatasetsList(): Array; setDatasetsList(value: Array): void; addDatasets(value?: MetricDataset, index?: number): MetricDataset; getKind(): MetricKindMap[keyof MetricKindMap]; setKind(value: MetricKindMap[keyof MetricKindMap]): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Metric.AsObject; static toObject(includeInstance: boolean, msg: Metric): Metric.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; static serializeBinaryToWriter(message: Metric, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): Metric; static deserializeBinaryFromReader(message: Metric, reader: jspb.BinaryReader): Metric; } export namespace Metric { export type AsObject = { name: string, timestampsList: Array, datasetsList: Array, kind: MetricKindMap[keyof MetricKindMap], } } export class MetricDataset extends jspb.Message { getLabel(): string; setLabel(value: string): void; clearDataList(): void; getDataList(): Array; setDataList(value: Array): void; addData(value: number, index?: number): number; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): MetricDataset.AsObject; static toObject(includeInstance: boolean, msg: MetricDataset): MetricDataset.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; static serializeBinaryToWriter(message: MetricDataset, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): MetricDataset; static deserializeBinaryFromReader(message: MetricDataset, reader: jspb.BinaryReader): MetricDataset; } export namespace MetricDataset { export type AsObject = { label: string, dataList: Array, } } export interface ModulationMap { LORA: 0; FSK: 1; LR_FHSS: 2; } export const Modulation: ModulationMap; export interface RegionMap { EU868: 0; US915: 2; CN779: 3; EU433: 4; AU915: 5; CN470: 6; AS923: 7; AS923_2: 12; AS923_3: 13; AS923_4: 14; KR920: 8; IN865: 9; RU864: 10; ISM2400: 11; } export const Region: RegionMap; export interface MTypeMap { JOIN_REQUEST: 0; JOIN_ACCEPT: 1; UNCONFIRMED_DATA_UP: 2; UNCONFIRMED_DATA_DOWN: 3; CONFIRMED_DATA_UP: 4; CONFIRMED_DATA_DOWN: 5; REJOIN_REQUEST: 6; PROPRIETARY: 7; } export const MType: MTypeMap; export interface MacVersionMap { LORAWAN_1_0_0: 0; LORAWAN_1_0_1: 1; LORAWAN_1_0_2: 2; LORAWAN_1_0_3: 3; LORAWAN_1_0_4: 4; LORAWAN_1_1_0: 5; } export const MacVersion: MacVersionMap; export interface RegParamsRevisionMap { A: 0; B: 1; RP002_1_0_0: 2; RP002_1_0_1: 3; RP002_1_0_2: 4; RP002_1_0_3: 5; } export const RegParamsRevision: RegParamsRevisionMap; export interface LocationSourceMap { UNKNOWN: 0; GPS: 1; CONFIG: 2; GEO_RESOLVER_TDOA: 3; GEO_RESOLVER_RSSI: 4; GEO_RESOLVER_GNSS: 5; GEO_RESOLVER_WIFI: 6; } export const LocationSource: LocationSourceMap; export interface AggregationMap { HOUR: 0; DAY: 1; MONTH: 2; } export const Aggregation: AggregationMap; export interface MetricKindMap { COUNTER: 0; ABSOLUTE: 1; GAUGE: 2; } export const MetricKind: MetricKindMap;