import { Empty as WktEmpty, Long, unknownFieldsSymbol } from "../../../../runtime/protos/index.js"; import type { Dayjs, MessageDescriptor, MessageFns, EnumInstance, EnumClass } from "../../../../runtime/protos/index.js"; import { customJson } from "../../../../runtime/util/logging.js"; import { ChannelCredentials, Client, ClientUnaryCall, ClientOptions, CallOptions, Metadata, ServiceError as GrpcServiceError, handleUnaryCall, UntypedServiceImplementation } from "@grpc/grpc-js"; import type { SDKInterface } from "../../../../sdk.js"; import { Request as SDKRequestClass, type RetryOptions } from "../../../../runtime/request.js"; import { Operation as OperationWrapper } from "../../../../runtime/operation.js"; import { GetOperationRequest, Operation, OperationService } from "../../common/v1/index.js"; /** Represents the `nebius.logging.v1.ExportLogsRequest` protobuf message. */ export interface ExportLogsRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.logging.v1.ExportLogsRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * What to export and where to write it. * */ params?: ExportParams | undefined; /** * Project ID whose logs are exported. Also used as the default owner of the destination bucket when the bucket is * resolved by name and `--bucket-parent-id` is not set. * */ parentId: string; } /** Encodes, decodes, converts, and creates {@link ExportLogsRequest} messages. */ export declare const ExportLogsRequest: MessageFns; /** Represents the `nebius.logging.v1.CancelExportLogsRequest` protobuf message. */ export interface CancelExportLogsRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.logging.v1.CancelExportLogsRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * ID of the export operation to cancel, as returned by `create` or shown by `list`. * */ exportOperationId: string; } /** Encodes, decodes, converts, and creates {@link CancelExportLogsRequest} messages. */ export declare const CancelExportLogsRequest: MessageFns; /** Represents the `nebius.logging.v1.ListExportsRequest` protobuf message. */ export interface ListExportsRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.logging.v1.ListExportsRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Project ID whose export operations are listed. * */ parentId: string; /** * Listing continuation token. Pass an empty string to start listing from the first page. * */ pageToken: string; /** * Maximum number of export operations to return in a single response page. * */ pageSize: Long; /** * Sort order for the returned export operations by creation time (ascending or descending). * */ orderBy: OrderBy; } /** Encodes, decodes, converts, and creates {@link ListExportsRequest} messages. */ export declare const ListExportsRequest: MessageFns; /** Represents the `nebius.logging.v1.ListExportsResponse` protobuf message. */ export interface ListExportsResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.logging.v1.ListExportsResponse"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * List of export operations on this result page. * */ exports: ExportStatus[]; /** * Listing continuation token for the next page of results. * */ nextPageToken: string; } /** Encodes, decodes, converts, and creates {@link ListExportsResponse} messages. */ export declare const ListExportsResponse: MessageFns; /** Represents the `nebius.logging.v1.GetExportInfoRequest` protobuf message. */ export interface GetExportInfoRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.logging.v1.GetExportInfoRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * ID of the export operation to look up, as returned by `create` or shown by `list`. * */ exportOperationId: string; } /** Encodes, decodes, converts, and creates {@link GetExportInfoRequest} messages. */ export declare const GetExportInfoRequest: MessageFns; /** * Defines the gRPC methods for the `nebius.logging.v1.LogExportService` service. */ export type LogExportServiceServiceDescription = typeof LogExportServiceServiceDescription; /** * Describes the gRPC methods for the `nebius.logging.v1.LogExportService` service. */ export declare const LogExportServiceServiceDescription: { readonly exportLogs: { readonly path: "/nebius.logging.v1.LogExportService/ExportLogs"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ExportLogsRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ExportLogsRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly getExportInfo: { readonly path: "/nebius.logging.v1.LogExportService/GetExportInfo"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetExportInfoRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetExportInfoRequest; readonly responseSerialize: (value: ExportStatus) => Buffer; readonly responseDeserialize: (value: Buffer) => ExportStatus; }; readonly listExports: { readonly path: "/nebius.logging.v1.LogExportService/ListExports"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListExportsRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListExportsRequest; readonly responseSerialize: (value: ListExportsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListExportsResponse; }; readonly cancelExportLogs: { readonly path: "/nebius.logging.v1.LogExportService/CancelExportLogs"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CancelExportLogsRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => CancelExportLogsRequest; readonly responseSerialize: (value: WktEmpty) => Buffer; readonly responseDeserialize: (value: Buffer) => WktEmpty; }; }; /** * Handles server calls for the `nebius.logging.v1.LogExportService` service. */ export interface LogExportServiceServer extends UntypedServiceImplementation { /** * Create a new log export * */ exportLogs: handleUnaryCall; /** * Get the status of a single export operation by its ID. * */ getExportInfo: handleUnaryCall; /** * List export operations in the container given by `--parent-id`. * */ listExports: handleUnaryCall; /** * Cancel an in-progress export operation by its ID. Has no effect on exports that have already finished or failed. * */ cancelExportLogs: handleUnaryCall; } /** * Defines the low-level gRPC client for the `nebius.logging.v1.LogExportService` service. */ export interface LogExportServiceBaseClient extends Client { /** * Create a new log export * */ exportLogs(request: ExportLogsRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Get the status of a single export operation by its ID. * */ getExportInfo(request: GetExportInfoRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ExportStatus) => void): ClientUnaryCall; /** * List export operations in the container given by `--parent-id`. * */ listExports(request: ListExportsRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListExportsResponse) => void): ClientUnaryCall; /** * Cancel an in-progress export operation by its ID. Has no effect on exports that have already finished or failed. * */ cancelExportLogs(request: CancelExportLogsRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: WktEmpty) => void): ClientUnaryCall; } /** * Creates low-level gRPC clients for the `nebius.logging.v1.LogExportService` service. */ export declare const LogExportServiceBaseClient: { /** Creates a low-level client for the service address. */ new (address: string, credentials: ChannelCredentials, options?: Partial): LogExportServiceBaseClient; /** Contains the gRPC service description. */ service: typeof LogExportServiceServiceDescription; /** Contains the fully qualified protobuf service name. */ serviceName: string; }; /** * Export logs to a specified destination. * */ export interface LogExportService { /** Contains the fully qualified protobuf service name. */ $type: "nebius.logging.v1.LogExportService"; /** * Create a new log export * */ exportLogs(request: ExportLogsRequest): SDKRequestClass>; /** * Create a new log export * */ exportLogs(request: ExportLogsRequest, metadata: Metadata): SDKRequestClass>; /** * Create a new log export * */ exportLogs(request: ExportLogsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Get the status of a single export operation by its ID. * */ getExportInfo(request: GetExportInfoRequest): SDKRequestClass; /** * Get the status of a single export operation by its ID. * */ getExportInfo(request: GetExportInfoRequest, metadata: Metadata): SDKRequestClass; /** * Get the status of a single export operation by its ID. * */ getExportInfo(request: GetExportInfoRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * List export operations in the container given by `--parent-id`. * */ listExports(request: ListExportsRequest): SDKRequestClass; /** * List export operations in the container given by `--parent-id`. * */ listExports(request: ListExportsRequest, metadata: Metadata): SDKRequestClass; /** * List export operations in the container given by `--parent-id`. * */ listExports(request: ListExportsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Cancel an in-progress export operation by its ID. Has no effect on exports that have already finished or failed. * */ cancelExportLogs(request: CancelExportLogsRequest): SDKRequestClass; /** * Cancel an in-progress export operation by its ID. Has no effect on exports that have already finished or failed. * */ cancelExportLogs(request: CancelExportLogsRequest, metadata: Metadata): SDKRequestClass; /** * Cancel an in-progress export operation by its ID. Has no effect on exports that have already finished or failed. * */ cancelExportLogs(request: CancelExportLogsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** * Calls the `nebius.logging.v1.LogExportService` service through the Nebius SDK. */ export declare class LogExportService implements LogExportService { private sdk; $type: "nebius.logging.v1.LogExportService"; private addr; private spec; private apiServiceName; /** Creates a client that uses the SDK service address. */ constructor(sdk: SDKInterface); /** Returns the operation service for this service address. */ getOperationService(): OperationService; /** * Create a new log export * */ exportLogs(request: ExportLogsRequest): SDKRequestClass>; /** * Create a new log export * */ exportLogs(request: ExportLogsRequest, metadata: Metadata): SDKRequestClass>; /** * Create a new log export * */ exportLogs(request: ExportLogsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Get the status of a single export operation by its ID. * */ getExportInfo(request: GetExportInfoRequest): SDKRequestClass; /** * Get the status of a single export operation by its ID. * */ getExportInfo(request: GetExportInfoRequest, metadata: Metadata): SDKRequestClass; /** * Get the status of a single export operation by its ID. * */ getExportInfo(request: GetExportInfoRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * List export operations in the container given by `--parent-id`. * */ listExports(request: ListExportsRequest): SDKRequestClass; /** * List export operations in the container given by `--parent-id`. * */ listExports(request: ListExportsRequest, metadata: Metadata): SDKRequestClass; /** * List export operations in the container given by `--parent-id`. * */ listExports(request: ListExportsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Cancel an in-progress export operation by its ID. Has no effect on exports that have already finished or failed. * */ cancelExportLogs(request: CancelExportLogsRequest): SDKRequestClass; /** * Cancel an in-progress export operation by its ID. Has no effect on exports that have already finished or failed. * */ cancelExportLogs(request: CancelExportLogsRequest, metadata: Metadata): SDKRequestClass; /** * Cancel an in-progress export operation by its ID. Has no effect on exports that have already finished or failed. * */ cancelExportLogs(request: CancelExportLogsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** * Sort order for `list` output, applied to export operations by creation time. * */ export type OrderBy = EnumInstance<"UNRECOGNIZED" | "ORDER_BY_UNSPECIFIED" | "ORDER_BY_ASC" | "ORDER_BY_DESC">; /** Defines the static values of {@link OrderBy}. */ export interface OrderByValueMembers { /** * Represents the `ORDER_BY_UNSPECIFIED` protobuf enum value. */ readonly ORDER_BY_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "ORDER_BY_UNSPECIFIED" | "ORDER_BY_ASC" | "ORDER_BY_DESC">; /** * Represents the `ORDER_BY_ASC` protobuf enum value. */ readonly ORDER_BY_ASC: EnumInstance<"UNRECOGNIZED" | "ORDER_BY_UNSPECIFIED" | "ORDER_BY_ASC" | "ORDER_BY_DESC">; /** * Represents the `ORDER_BY_DESC` protobuf enum value. */ readonly ORDER_BY_DESC: EnumInstance<"UNRECOGNIZED" | "ORDER_BY_UNSPECIFIED" | "ORDER_BY_ASC" | "ORDER_BY_DESC">; } /** Defines the runtime API for {@link OrderBy}. */ export type OrderByClass = EnumClass<"UNRECOGNIZED" | "ORDER_BY_UNSPECIFIED" | "ORDER_BY_ASC" | "ORDER_BY_DESC"> & OrderByValueMembers; /** Converts and creates {@link OrderBy} values. */ export declare const OrderBy: OrderByClass; /** * Output file format for exported log data, chosen via `--log-format`. * */ export type LogsExportFormat = EnumInstance<"UNRECOGNIZED" | "EXPORT_FORMAT_UNSUPPORTED" | "JSON_GZIP" | "PARQUET">; /** Defines the static values of {@link LogsExportFormat}. */ export interface LogsExportFormatValueMembers { /** * Represents the `EXPORT_FORMAT_UNSUPPORTED` protobuf enum value. */ readonly EXPORT_FORMAT_UNSUPPORTED: EnumInstance<"UNRECOGNIZED" | "EXPORT_FORMAT_UNSUPPORTED" | "JSON_GZIP" | "PARQUET">; /** * JSON lines (one JSON object per line) compressed with gzip. Written as `.json.gz`. * */ readonly JSON_GZIP: EnumInstance<"UNRECOGNIZED" | "EXPORT_FORMAT_UNSUPPORTED" | "JSON_GZIP" | "PARQUET">; /** * Apache Parquet. Written as `.parquet`. * */ readonly PARQUET: EnumInstance<"UNRECOGNIZED" | "EXPORT_FORMAT_UNSUPPORTED" | "JSON_GZIP" | "PARQUET">; } /** Defines the runtime API for {@link LogsExportFormat}. */ export type LogsExportFormatClass = EnumClass<"UNRECOGNIZED" | "EXPORT_FORMAT_UNSUPPORTED" | "JSON_GZIP" | "PARQUET"> & LogsExportFormatValueMembers; /** Converts and creates {@link LogsExportFormat} values. */ export declare const LogsExportFormat: LogsExportFormatClass; /** Represents the `nebius.logging.v1.ExportStatus` protobuf message. */ export interface ExportStatus { /** Contains the fully qualified protobuf type name. */ $type: "nebius.logging.v1.ExportStatus"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Long-running operation backing the export. * */ operation?: Operation | undefined; /** * Path to the resulting objects in the destination bucket, as an ordered * sequence of segments (join with `/` to get the full path). Individual objects * appear below this prefix under `/.` (e.g. * `logs/oplogexport-.../2025-12-21-20:00:00/0.parquet`). * */ resultPath: string[]; } /** Encodes, decodes, converts, and creates {@link ExportStatus} messages. */ export declare const ExportStatus: MessageFns; /** Represents the `nebius.logging.v1.ExportFilter` protobuf message. */ export interface ExportFilter { /** Contains the fully qualified protobuf type name. */ $type: "nebius.logging.v1.ExportFilter"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Start of the time range to export, ISO 8601 (e.g. `2025-12-21T20:00:00Z`). * */ from?: Dayjs | undefined; /** * End of the time range to export, ISO 8601 (e.g. `2025-12-22T00:00:00Z`). * */ to?: Dayjs | undefined; /** * LogQL match expression selecting log entries to export. * */ matchExpression: string; } /** Encodes, decodes, converts, and creates {@link ExportFilter} messages. */ export declare const ExportFilter: MessageFns; /** Represents the `nebius.logging.v1.LogsExport` protobuf message. */ export interface LogsExport { /** Contains the fully qualified protobuf type name. */ $type: "nebius.logging.v1.LogsExport"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Time range and LogQL match expression selecting log entries to export. * */ filter?: ExportFilter | undefined; /** * Label names to include as columns in the exported data. Empty means export all labels. * */ exportLabels: string[]; /** * Output file format. * */ format: LogsExportFormat; } /** Encodes, decodes, converts, and creates {@link LogsExport} messages. */ export declare const LogsExport: MessageFns; /** Represents the `nebius.logging.v1.NebiusObjectStorageBucketByName` protobuf message. */ export interface NebiusObjectStorageBucketByName { /** Contains the fully qualified protobuf type name. */ $type: "nebius.logging.v1.NebiusObjectStorageBucketByName"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Name of the destination Object Storage bucket. * */ name: string; /** * Project ID that owns the bucket. Required only when the bucket lives in a different project than `--parent-id`; * defaults to `--parent-id` otherwise. * */ parentId: string; } /** Encodes, decodes, converts, and creates {@link NebiusObjectStorageBucketByName} messages. */ export declare const NebiusObjectStorageBucketByName: MessageFns; /** Represents the `nebius.logging.v1.NebiusObjectStorageDestination` protobuf message. */ export interface NebiusObjectStorageDestination { /** Contains the fully qualified protobuf type name. */ $type: "nebius.logging.v1.NebiusObjectStorageDestination"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Key prefix under which exported objects are written. Defaults to `logs/`. * */ objectPrefix: string; /** * Destination bucket, specified either by ID or by name within a project. * */ bucket?: { $case: "id"; id: string; } | { $case: "byName"; byName: NebiusObjectStorageBucketByName; } | undefined; } /** Encodes, decodes, converts, and creates {@link NebiusObjectStorageDestination} messages. */ export declare const NebiusObjectStorageDestination: MessageFns; /** Represents the `nebius.logging.v1.ExportParams` protobuf message. */ export interface ExportParams { /** Contains the fully qualified protobuf type name. */ $type: "nebius.logging.v1.ExportParams"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * What to export: the kind of source data and how to shape it. * */ exportMode?: { $case: "log"; log: LogsExport; } | undefined; /** * Where to write the exported data. * */ exportDestination?: { $case: "nebiusObjectStorage"; nebiusObjectStorage: NebiusObjectStorageDestination; } | undefined; } /** Encodes, decodes, converts, and creates {@link ExportParams} messages. */ export declare const ExportParams: MessageFns; //# sourceMappingURL=index.d.ts.map