import _m0 from 'protobufjs/minimal'; import { LogLevel_Level } from '../../../../../yandex/cloud/logging/v1/log_entry'; export declare const protobufPackage = "yandex.cloud.iot.devices.v1"; /** A registry. For more information, see [Registry](/docs/iot-core/concepts/index#registry). */ export interface Registry { /** ID of the registry. */ id: string; /** ID of the folder that the registry belongs to. */ folderId: string; /** Creation timestamp. */ createdAt?: Date; /** Name of the registry. The name is unique within the folder. */ name: string; /** Description of the registry. 0-256 characters long. */ description: string; /** Resource labels as `key:value` pairs. Maximum of 64 per resource. */ labels: { [key: string]: string; }; /** Status of the registry. */ status: Registry_Status; /** ID of the logs group for the specified registry. */ logGroupId: string; /** Options for logging registry events */ logOptions?: LogOptions; } export declare enum Registry_Status { STATUS_UNSPECIFIED = 0, /** CREATING - Registry is being created. */ CREATING = 1, /** ACTIVE - Registry is ready to use. */ ACTIVE = 2, /** DELETING - Registry is being deleted. */ DELETING = 3, /** DISABLED - Registry is disabled. */ DISABLED = 4, UNRECOGNIZED = -1 } export declare function registry_StatusFromJSON(object: any): Registry_Status; export declare function registry_StatusToJSON(object: Registry_Status): string; export interface Registry_LabelsEntry { key: string; value: string; } /** A registry certificate. For more information, see [Managing registry certificates](/docs/iot-core/operations/certificates/registry-certificates). */ export interface RegistryCertificate { /** ID of the registry that the certificate belongs to. */ registryId: string; /** SHA256 hash of the certificates. */ fingerprint: string; /** Public part of the certificate. */ certificateData: string; /** Creation timestamp. */ createdAt?: Date; } /** * A device topic alias. * * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/abcdef/events`. For more information, see [Using topic aliases](/docs/iot-core/concepts/topic#aliases). */ export interface DeviceAlias { /** ID of the device that the alias belongs to. */ deviceId: string; /** Prefix of a canonical topic name to be aliased, e.g. `$devices/abcdef`. */ topicPrefix: string; /** Alias of a device topic. */ alias: string; } /** A registry password. */ export interface RegistryPassword { /** ID of the registry that the password belongs to. */ registryId: string; /** ID of the password. */ id: string; /** Creation timestamp. */ createdAt?: Date; } /** A Yandex Data Streams export. */ export interface DataStreamExport { /** ID of the YDS export. */ id: string; /** Name of the YDS export. */ name: string; /** ID of the registry that the YDS export belongs to. */ registryId: string; /** MQTT topic whose messages export to YDS. */ mqttTopicFilter: string; /** YDS database. */ database: string; /** YDS stream name. */ stream: string; /** ID of the service account which has permission to write to data stream. */ serviceAccountId: string; /** Creation timestamp. */ createdAt?: Date; } export interface LogOptions { /** Is logging from registry disabled. */ disabled: boolean; /** Entry should be written to log group resolved by ID. */ logGroupId: string | undefined; /** Entry should be written to default log group for specified folder. */ folderId: string | undefined; /** * Minimum log entry level. * * See [LogLevel.Level] for details. */ minLevel: LogLevel_Level; } export declare const Registry: { encode(message: Registry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Registry; fromJSON(object: any): Registry; toJSON(message: Registry): unknown; fromPartial, never>) | undefined; status?: Registry_Status | undefined; logGroupId?: string | undefined; logOptions?: ({ disabled?: boolean | undefined; logGroupId?: string | undefined; folderId?: string | undefined; minLevel?: LogLevel_Level | undefined; } & { disabled?: boolean | undefined; logGroupId?: string | undefined; folderId?: string | undefined; minLevel?: LogLevel_Level | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): Registry; }; export declare const Registry_LabelsEntry: { encode(message: Registry_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Registry_LabelsEntry; fromJSON(object: any): Registry_LabelsEntry; toJSON(message: Registry_LabelsEntry): unknown; fromPartial, never>>(object: I): Registry_LabelsEntry; }; export declare const RegistryCertificate: { encode(message: RegistryCertificate, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RegistryCertificate; fromJSON(object: any): RegistryCertificate; toJSON(message: RegistryCertificate): unknown; fromPartial, never>>(object: I): RegistryCertificate; }; export declare const DeviceAlias: { encode(message: DeviceAlias, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeviceAlias; fromJSON(object: any): DeviceAlias; toJSON(message: DeviceAlias): unknown; fromPartial, never>>(object: I): DeviceAlias; }; export declare const RegistryPassword: { encode(message: RegistryPassword, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RegistryPassword; fromJSON(object: any): RegistryPassword; toJSON(message: RegistryPassword): unknown; fromPartial, never>>(object: I): RegistryPassword; }; export declare const DataStreamExport: { encode(message: DataStreamExport, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DataStreamExport; fromJSON(object: any): DataStreamExport; toJSON(message: DataStreamExport): unknown; fromPartial, never>>(object: I): DataStreamExport; }; export declare const LogOptions: { encode(message: LogOptions, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): LogOptions; fromJSON(object: any): LogOptions; toJSON(message: LogOptions): unknown; fromPartial, never>>(object: I): LogOptions; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & Record>, never>; export {};