import { 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 { Code } from "../../../google/rpc/index.js"; import { ResourceMetadata as CommonV1ResourceMetadata, GetOperationRequest, Operation, OperationService } from "../../common/v1/index.js"; /** Represents the `nebius.audit.v2.AccessToken` protobuf message. */ export interface AccessToken { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.AccessToken"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Token without signature. * */ maskedToken: string; } /** Encodes, decodes, converts, and creates {@link AccessToken} messages. */ export declare const AccessToken: MessageFns; /** Represents the `nebius.audit.v2.StartRequest` protobuf message. */ export interface StartRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.StartRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Metadata associated with the new export. * */ metadata?: CommonV1ResourceMetadata | undefined; /** * Specification for the new export. * */ spec?: AuditEventExportSpec | undefined; /** * Region to retrieve audit logs (e.g. eu-north2, us-central1, eu-west1) * See https://docs.nebius.com/overview/regions * Default: eu-north1 * * During a transition period (until 13-08-2026), events are written to * both eu-north1 and their origin region. * After that, events are only stored in their origin region, and this field becomes required. * */ region: string; } /** Encodes, decodes, converts, and creates {@link StartRequest} messages. */ export declare const StartRequest: MessageFns; /** Represents the `nebius.audit.v2.CancelRequest` protobuf message. */ export interface CancelRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.CancelRequest"; /** 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 audit event export that needs to be cancelled. * */ id: string; } /** Encodes, decodes, converts, and creates {@link CancelRequest} messages. */ export declare const CancelRequest: MessageFns; /** Represents the `nebius.audit.v2.GetRequest` protobuf message. */ export interface GetRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.GetRequest"; /** 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 audit event export. * */ id: string; } /** Encodes, decodes, converts, and creates {@link GetRequest} messages. */ export declare const GetRequest: MessageFns; /** Represents the `nebius.audit.v2.ListRequest` protobuf message. */ export interface ListRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.ListRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Parent id used when creating the audit export. * */ parentId: string; /** * Specifies the maximum number of items to return in the response. * */ pageSize: Long; /** * Token for pagination, allowing the retrieval of the next set of results. * */ pageToken: string; /** * Region to retrieve audit exports (e.g. eu-north2, us-central1, eu-west1) * See https://docs.nebius.com/overview/regions * Default: eu-north1 * * After a transition period (13-08-2026) this field becomes required. * */ region: string; } /** Encodes, decodes, converts, and creates {@link ListRequest} messages. */ export declare const ListRequest: MessageFns; /** Represents the `nebius.audit.v2.ListAuditEventExportResponse` protobuf message. */ export interface ListAuditEventExportResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.ListAuditEventExportResponse"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * List of audit event exports. * */ items: AuditEventExport[]; /** * Token for pagination, indicating the next set of results can be retrieved using this token. * */ nextPageToken: string; } /** Encodes, decodes, converts, and creates {@link ListAuditEventExportResponse} messages. */ export declare const ListAuditEventExportResponse: MessageFns; /** * Defines the gRPC methods for the `nebius.audit.v2.AuditEventExportService` service. */ export type AuditEventExportServiceServiceDescription = typeof AuditEventExportServiceServiceDescription; /** * Describes the gRPC methods for the `nebius.audit.v2.AuditEventExportService` service. */ export declare const AuditEventExportServiceServiceDescription: { readonly start: { readonly path: "/nebius.audit.v2.AuditEventExportService/Start"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: StartRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => StartRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly cancel: { readonly path: "/nebius.audit.v2.AuditEventExportService/Cancel"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CancelRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => CancelRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly get: { readonly path: "/nebius.audit.v2.AuditEventExportService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetRequest; readonly responseSerialize: (value: AuditEventExport) => Buffer; readonly responseDeserialize: (value: Buffer) => AuditEventExport; }; readonly list: { readonly path: "/nebius.audit.v2.AuditEventExportService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListRequest; readonly responseSerialize: (value: ListAuditEventExportResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListAuditEventExportResponse; }; }; /** * Handles server calls for the `nebius.audit.v2.AuditEventExportService` service. */ export interface AuditEventExportServiceServer extends UntypedServiceImplementation { /** * Start audit events export to s3 bucket for specific period. * */ start: handleUnaryCall; /** * Stop active audit events export to s3 bucket, all data written before calling this API remains in the bucket. * */ cancel: handleUnaryCall; /** * Returns the audit event export with the current progress status and the parameters with which it was created. * */ get: handleUnaryCall; /** * Returns a list of exports created for a specific parent_id. * */ list: handleUnaryCall; } /** * Defines the low-level gRPC client for the `nebius.audit.v2.AuditEventExportService` service. */ export interface AuditEventExportServiceBaseClient extends Client { /** * Start audit events export to s3 bucket for specific period. * */ start(request: StartRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Stop active audit events export to s3 bucket, all data written before calling this API remains in the bucket. * */ cancel(request: CancelRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Returns the audit event export with the current progress status and the parameters with which it was created. * */ get(request: GetRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: AuditEventExport) => void): ClientUnaryCall; /** * Returns a list of exports created for a specific parent_id. * */ list(request: ListRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListAuditEventExportResponse) => void): ClientUnaryCall; } /** * Creates low-level gRPC clients for the `nebius.audit.v2.AuditEventExportService` service. */ export declare const AuditEventExportServiceBaseClient: { /** Creates a low-level client for the service address. */ new (address: string, credentials: ChannelCredentials, options?: Partial): AuditEventExportServiceBaseClient; /** Contains the gRPC service description. */ service: typeof AuditEventExportServiceServiceDescription; /** Contains the fully qualified protobuf service name. */ serviceName: string; }; /** * Service for managing audit event exports. * */ export interface AuditEventExportService { /** Contains the fully qualified protobuf service name. */ $type: "nebius.audit.v2.AuditEventExportService"; /** * Start audit events export to s3 bucket for specific period. * */ start(request: StartRequest): SDKRequestClass>; /** * Start audit events export to s3 bucket for specific period. * */ start(request: StartRequest, metadata: Metadata): SDKRequestClass>; /** * Start audit events export to s3 bucket for specific period. * */ start(request: StartRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Stop active audit events export to s3 bucket, all data written before calling this API remains in the bucket. * */ cancel(request: CancelRequest): SDKRequestClass>; /** * Stop active audit events export to s3 bucket, all data written before calling this API remains in the bucket. * */ cancel(request: CancelRequest, metadata: Metadata): SDKRequestClass>; /** * Stop active audit events export to s3 bucket, all data written before calling this API remains in the bucket. * */ cancel(request: CancelRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Returns the audit event export with the current progress status and the parameters with which it was created. * */ get(request: GetRequest): SDKRequestClass; /** * Returns the audit event export with the current progress status and the parameters with which it was created. * */ get(request: GetRequest, metadata: Metadata): SDKRequestClass; /** * Returns the audit event export with the current progress status and the parameters with which it was created. * */ get(request: GetRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Returns a list of exports created for a specific parent_id. * */ list(request: ListRequest): SDKRequestClass; /** * Returns a list of exports created for a specific parent_id. * */ list(request: ListRequest, metadata: Metadata): SDKRequestClass; /** * Returns a list of exports created for a specific parent_id. * */ list(request: ListRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** * Calls the `nebius.audit.v2.AuditEventExportService` service through the Nebius SDK. */ export declare class AuditEventExportService implements AuditEventExportService { private sdk; $type: "nebius.audit.v2.AuditEventExportService"; 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; /** * Start audit events export to s3 bucket for specific period. * */ start(request: StartRequest): SDKRequestClass>; /** * Start audit events export to s3 bucket for specific period. * */ start(request: StartRequest, metadata: Metadata): SDKRequestClass>; /** * Start audit events export to s3 bucket for specific period. * */ start(request: StartRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Stop active audit events export to s3 bucket, all data written before calling this API remains in the bucket. * */ cancel(request: CancelRequest): SDKRequestClass>; /** * Stop active audit events export to s3 bucket, all data written before calling this API remains in the bucket. * */ cancel(request: CancelRequest, metadata: Metadata): SDKRequestClass>; /** * Stop active audit events export to s3 bucket, all data written before calling this API remains in the bucket. * */ cancel(request: CancelRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Returns the audit event export with the current progress status and the parameters with which it was created. * */ get(request: GetRequest): SDKRequestClass; /** * Returns the audit event export with the current progress status and the parameters with which it was created. * */ get(request: GetRequest, metadata: Metadata): SDKRequestClass; /** * Returns the audit event export with the current progress status and the parameters with which it was created. * */ get(request: GetRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Returns a list of exports created for a specific parent_id. * */ list(request: ListRequest): SDKRequestClass; /** * Returns a list of exports created for a specific parent_id. * */ list(request: ListRequest, metadata: Metadata): SDKRequestClass; /** * Returns a list of exports created for a specific parent_id. * */ list(request: ListRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** * Represents the `nebius.audit.v2.AuditEventExportState` protobuf enum. */ export type AuditEventExportState = EnumInstance<"UNRECOGNIZED" | "AUDIT_EVENT_EXPORT_STATE_UNSPECIFIED" | "AUDIT_EVENT_EXPORT_STATE_RUNNING" | "AUDIT_EVENT_EXPORT_STATE_CANCELED" | "AUDIT_EVENT_EXPORT_STATE_DONE" | "AUDIT_EVENT_EXPORT_STATE_FAILED">; /** Defines the static values of {@link AuditEventExportState}. */ export interface AuditEventExportStateValueMembers { /** * Represents the `AUDIT_EVENT_EXPORT_STATE_UNSPECIFIED` protobuf enum value. */ readonly AUDIT_EVENT_EXPORT_STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "AUDIT_EVENT_EXPORT_STATE_UNSPECIFIED" | "AUDIT_EVENT_EXPORT_STATE_RUNNING" | "AUDIT_EVENT_EXPORT_STATE_CANCELED" | "AUDIT_EVENT_EXPORT_STATE_DONE" | "AUDIT_EVENT_EXPORT_STATE_FAILED">; /** * Export created and running. * */ readonly AUDIT_EVENT_EXPORT_STATE_RUNNING: EnumInstance<"UNRECOGNIZED" | "AUDIT_EVENT_EXPORT_STATE_UNSPECIFIED" | "AUDIT_EVENT_EXPORT_STATE_RUNNING" | "AUDIT_EVENT_EXPORT_STATE_CANCELED" | "AUDIT_EVENT_EXPORT_STATE_DONE" | "AUDIT_EVENT_EXPORT_STATE_FAILED">; /** * Export has been cancelled. * */ readonly AUDIT_EVENT_EXPORT_STATE_CANCELED: EnumInstance<"UNRECOGNIZED" | "AUDIT_EVENT_EXPORT_STATE_UNSPECIFIED" | "AUDIT_EVENT_EXPORT_STATE_RUNNING" | "AUDIT_EVENT_EXPORT_STATE_CANCELED" | "AUDIT_EVENT_EXPORT_STATE_DONE" | "AUDIT_EVENT_EXPORT_STATE_FAILED">; /** * Export successfully completed. * */ readonly AUDIT_EVENT_EXPORT_STATE_DONE: EnumInstance<"UNRECOGNIZED" | "AUDIT_EVENT_EXPORT_STATE_UNSPECIFIED" | "AUDIT_EVENT_EXPORT_STATE_RUNNING" | "AUDIT_EVENT_EXPORT_STATE_CANCELED" | "AUDIT_EVENT_EXPORT_STATE_DONE" | "AUDIT_EVENT_EXPORT_STATE_FAILED">; /** * Export failed. * */ readonly AUDIT_EVENT_EXPORT_STATE_FAILED: EnumInstance<"UNRECOGNIZED" | "AUDIT_EVENT_EXPORT_STATE_UNSPECIFIED" | "AUDIT_EVENT_EXPORT_STATE_RUNNING" | "AUDIT_EVENT_EXPORT_STATE_CANCELED" | "AUDIT_EVENT_EXPORT_STATE_DONE" | "AUDIT_EVENT_EXPORT_STATE_FAILED">; } /** Defines the runtime API for {@link AuditEventExportState}. */ export type AuditEventExportStateClass = EnumClass<"UNRECOGNIZED" | "AUDIT_EVENT_EXPORT_STATE_UNSPECIFIED" | "AUDIT_EVENT_EXPORT_STATE_RUNNING" | "AUDIT_EVENT_EXPORT_STATE_CANCELED" | "AUDIT_EVENT_EXPORT_STATE_DONE" | "AUDIT_EVENT_EXPORT_STATE_FAILED"> & AuditEventExportStateValueMembers; /** Converts and creates {@link AuditEventExportState} values. */ export declare const AuditEventExportState: AuditEventExportStateClass; /** * A resource representing information about previously created exports of audit events. * Each record stores data about which filter was used and where the audit events were exported. * */ export interface AuditEventExport { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.AuditEventExport"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `metadata` protobuf field. */ metadata?: CommonV1ResourceMetadata | undefined; /** Contains the `spec` protobuf field. */ spec?: AuditEventExportSpec | undefined; /** Contains the `status` protobuf field. */ status?: AuditEventExportStatus | undefined; } /** Encodes, decodes, converts, and creates {@link AuditEventExport} messages. */ export declare const AuditEventExport: MessageFns; /** Represents the `nebius.audit.v2.AuditEventExportSpec` protobuf message. */ export interface AuditEventExportSpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.AuditEventExportSpec"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Filter based on which audit logs must be exported. * */ params?: AuditEventExportParams | undefined; /** Contains the selected value for the `export_destination` protobuf oneof. */ exportDestination?: { $case: "nebiusObjectStorage"; nebiusObjectStorage: NebiusObjectStorageDestination; } | undefined; } /** Encodes, decodes, converts, and creates {@link AuditEventExportSpec} messages. */ export declare const AuditEventExportSpec: MessageFns; /** Represents the `nebius.audit.v2.NebiusObjectStorageDestination` protobuf message. */ export interface NebiusObjectStorageDestination { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.NebiusObjectStorageDestination"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Prefix for export objects. * Default value is `auditlogs`. * */ objectPrefix: string; /** * The bucket into which events will be exported. * */ bucket?: { $case: "bucketById"; bucketById: BucketById; } | undefined; } /** Encodes, decodes, converts, and creates {@link NebiusObjectStorageDestination} messages. */ export declare const NebiusObjectStorageDestination: MessageFns; /** Represents the `nebius.audit.v2.BucketById` protobuf message. */ export interface BucketById { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.BucketById"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The id of the bucket in the tenant where the logs will be exported. * */ id: string; } /** Encodes, decodes, converts, and creates {@link BucketById} messages. */ export declare const BucketById: MessageFns; /** Represents the `nebius.audit.v2.AuditEventExportParams` protobuf message. */ export interface AuditEventExportParams { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.AuditEventExportParams"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Returns results with a timestamp greater than or equal to this value. * */ from?: Dayjs | undefined; /** * Returns results with a timestamp lower than this value. * */ to?: Dayjs | undefined; /** * Example: * service.name = 'iam' AND resource.hierarchy.id:'container-e0t' AND regex(resource.metadata.name, '^.*test.*$') * * Supported filters: * "=" - equals * "!=" - not equals * ":" - contains * regex - regular expression * * Fields that can be used for filtering: * action * authentication.static_key_credential.id * authentication.subject.service_account_id * authentication.subject.tenant_user_id * authentication.token_credential.masked_token * project_region.name * resource.hierarchy.id * resource.hierarchy.name * resource.metadata.id * resource.metadata.name * resource.metadata.type * service.name * type * status * */ filter: string; /** * Type of audit event to filter by. * */ eventType: EventType; } /** Encodes, decodes, converts, and creates {@link AuditEventExportParams} messages. */ export declare const AuditEventExportParams: MessageFns; /** Represents the `nebius.audit.v2.AuditEventExportStatus` protobuf message. */ export interface AuditEventExportStatus { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.AuditEventExportStatus"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Current state of audit logs export. * */ state: AuditEventExportState; /** * Identifier of the audit logs export operation. * This value is used as the final path prefix for exported files in the destination object storage bucket. * */ exportOperationId: string; /** * Error message in case of export failure. * */ message: string; /** * Timestamp indicating when the export was started. * */ startedAt?: Dayjs | undefined; /** * Timestamp indicating when the export was finished. * */ finishedAt?: Dayjs | undefined; } /** Encodes, decodes, converts, and creates {@link AuditEventExportStatus} messages. */ export declare const AuditEventExportStatus: MessageFns; /** * Represents the `nebius.audit.v2.EventType` protobuf enum. */ export type EventType = EnumInstance<"UNRECOGNIZED" | "EVENT_TYPE_UNSPECIFIED" | "CONTROL_PLANE" | "DATA_PLANE">; /** Defines the static values of {@link EventType}. */ export interface EventTypeValueMembers { /** * Unspecified event type. * */ readonly EVENT_TYPE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "EVENT_TYPE_UNSPECIFIED" | "CONTROL_PLANE" | "DATA_PLANE">; /** * Control plane events. * */ readonly CONTROL_PLANE: EnumInstance<"UNRECOGNIZED" | "EVENT_TYPE_UNSPECIFIED" | "CONTROL_PLANE" | "DATA_PLANE">; /** * Data plane events (S3). * */ readonly DATA_PLANE: EnumInstance<"UNRECOGNIZED" | "EVENT_TYPE_UNSPECIFIED" | "CONTROL_PLANE" | "DATA_PLANE">; } /** Defines the runtime API for {@link EventType}. */ export type EventTypeClass = EnumClass<"UNRECOGNIZED" | "EVENT_TYPE_UNSPECIFIED" | "CONTROL_PLANE" | "DATA_PLANE"> & EventTypeValueMembers; /** Converts and creates {@link EventType} values. */ export declare const EventType: EventTypeClass; /** Represents the `nebius.audit.v2.ListAuditEventRequest` protobuf message. */ export interface ListAuditEventRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.ListAuditEventRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * A tenant id must be provided * */ parentId: string; /** Contains the `page_size` protobuf field. */ pageSize: Long; /** Contains the `start` protobuf field. */ start?: Dayjs | undefined; /** Contains the `end` protobuf field. */ end?: Dayjs | undefined; /** Contains the `page_token` protobuf field. */ pageToken: string; /** * Example: * service.name = 'iam' AND resource.hierarchy.id:'container-e0t' AND regex(resource.metadata.name, '^.*test.*$') * * Supported filters: * "=" - equals * "!=" - not equals * ":" - contains * regex - regular expression * * Fields that can be used for filtering: * action * authentication.static_key_credential.id * authentication.subject.name * authentication.subject.service_account_id * authentication.subject.tenant_user_id * authentication.token_credential.masked_token * project_region.name * resource.hierarchy.id * resource.hierarchy.name * resource.metadata.id * resource.metadata.name * resource.metadata.type * service.name * type * status * */ filter: string; /** * Type of audit event to filter by. * */ eventType: EventType; /** * Region to retrieve audit logs (e.g. eu-north2, us-central1, eu-west1) * See https://docs.nebius.com/overview/regions * Default: eu-north1 * * During a transition period (until 13-08-2026), events are written to * both eu-north1 and their origin region. * After that, events are only stored in their origin region, and this field becomes required. * */ region: string; } /** Encodes, decodes, converts, and creates {@link ListAuditEventRequest} messages. */ export declare const ListAuditEventRequest: MessageFns; /** Represents the `nebius.audit.v2.ListAuditEventResponse` protobuf message. */ export interface ListAuditEventResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.ListAuditEventResponse"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `items` protobuf field. */ items: AuditEvent[]; /** Contains the `next_page_token` protobuf field. */ nextPageToken: string; } /** Encodes, decodes, converts, and creates {@link ListAuditEventResponse} messages. */ export declare const ListAuditEventResponse: MessageFns; /** * Defines the gRPC methods for the `nebius.audit.v2.AuditEventService` service. */ export type AuditEventServiceServiceDescription = typeof AuditEventServiceServiceDescription; /** * Describes the gRPC methods for the `nebius.audit.v2.AuditEventService` service. */ export declare const AuditEventServiceServiceDescription: { readonly list: { readonly path: "/nebius.audit.v2.AuditEventService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListAuditEventRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListAuditEventRequest; readonly responseSerialize: (value: ListAuditEventResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListAuditEventResponse; }; }; /** * Handles server calls for the `nebius.audit.v2.AuditEventService` service. */ export interface AuditEventServiceServer extends UntypedServiceImplementation { /** * Handles the `List` RPC. */ list: handleUnaryCall; } /** * Defines the low-level gRPC client for the `nebius.audit.v2.AuditEventService` service. */ export interface AuditEventServiceBaseClient extends Client { /** * Calls the `List` RPC. */ list(request: ListAuditEventRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListAuditEventResponse) => void): ClientUnaryCall; } /** * Creates low-level gRPC clients for the `nebius.audit.v2.AuditEventService` service. */ export declare const AuditEventServiceBaseClient: { /** Creates a low-level client for the service address. */ new (address: string, credentials: ChannelCredentials, options?: Partial): AuditEventServiceBaseClient; /** Contains the gRPC service description. */ service: typeof AuditEventServiceServiceDescription; /** Contains the fully qualified protobuf service name. */ serviceName: string; }; /** * Calls the `nebius.audit.v2.AuditEventService` service. */ export interface AuditEventService { /** Contains the fully qualified protobuf service name. */ $type: "nebius.audit.v2.AuditEventService"; /** * Calls the `List` RPC. */ list(request: ListAuditEventRequest): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListAuditEventRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListAuditEventRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** * Calls the `nebius.audit.v2.AuditEventService` service through the Nebius SDK. */ export declare class AuditEventService implements AuditEventService { private sdk; $type: "nebius.audit.v2.AuditEventService"; private addr; private spec; private apiServiceName; /** Creates a client that uses the SDK service address. */ constructor(sdk: SDKInterface); /** * Calls the `List` RPC. */ list(request: ListAuditEventRequest): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListAuditEventRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListAuditEventRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** Represents the `nebius.audit.v2.AuditEvent` protobuf message. */ export interface AuditEvent { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.AuditEvent"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Unique event id. * */ id: string; /** * Identifies the context in which an event happened. Presented in the form of URI. * */ source: string; /** * Version of CloudEvents spec. See https://github.com/cloudevents/spec/blob/main/cloudevents/spec.md#specversion * */ specVersion: string; /** * The type of event related to the originating occurrence. Formed according to template: * `ai.nebius...` * */ type: string; /** * Indicates the service that generated the event. * */ service?: Service | undefined; /** * Indicates an action taken on the resource. * */ action: string; /** * Timestamp of when the occurrence happened. * */ time?: Dayjs | undefined; /** * Audit event version, in "X.Y" format, events within different Y's are backwards compatible, events with different X's are not. * */ eventVersion: string; /** * Represents the subject of an API call. * */ authentication?: Authentication | undefined; /** * Represents permissions that have been verified for the subject as part of the API call. * */ authorization?: Authorization | undefined; /** * A resource that was read or modified as part of the operation. Can be empty if no resource accessed or changed. * */ resource?: Resource | undefined; /** * Contains information about the request from the customer. * */ request?: Request | undefined; /** * Contains information about the response from the server. * */ response?: Response | undefined; /** * The async operation status * */ status: Status; /** * Region of an application * * @deprecated Deprecated: Region should be tied to a resource, not to a project.. */ projectRegion?: Region | undefined; } /** Encodes, decodes, converts, and creates {@link AuditEvent} messages. */ export declare const AuditEvent: MessageFns; /** * Represents the `nebius.audit.v2.AuthenticationType` protobuf enum. */ export type AuthenticationType = EnumInstance<"UNRECOGNIZED" | "AUTHENTICATION_TYPE_UNSPECIFIED" | "ACCESS_TOKEN" | "STATIC_KEY">; /** Defines the static values of {@link AuthenticationType}. */ export interface AuthenticationTypeValueMembers { /** * Represents the `AUTHENTICATION_TYPE_UNSPECIFIED` protobuf enum value. */ readonly AUTHENTICATION_TYPE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "AUTHENTICATION_TYPE_UNSPECIFIED" | "ACCESS_TOKEN" | "STATIC_KEY">; /** * Represents the `ACCESS_TOKEN` protobuf enum value. */ readonly ACCESS_TOKEN: EnumInstance<"UNRECOGNIZED" | "AUTHENTICATION_TYPE_UNSPECIFIED" | "ACCESS_TOKEN" | "STATIC_KEY">; /** * Represents the `STATIC_KEY` protobuf enum value. */ readonly STATIC_KEY: EnumInstance<"UNRECOGNIZED" | "AUTHENTICATION_TYPE_UNSPECIFIED" | "ACCESS_TOKEN" | "STATIC_KEY">; } /** Defines the runtime API for {@link AuthenticationType}. */ export type AuthenticationTypeClass = EnumClass<"UNRECOGNIZED" | "AUTHENTICATION_TYPE_UNSPECIFIED" | "ACCESS_TOKEN" | "STATIC_KEY"> & AuthenticationTypeValueMembers; /** Converts and creates {@link AuthenticationType} values. */ export declare const AuthenticationType: AuthenticationTypeClass; /** Represents the `nebius.audit.v2.Authentication` protobuf message. */ export interface Authentication { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.Authentication"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Answers the question whether or not the subject has been successfully authenticated. * */ authenticated: boolean; /** * Contains information about the subject of the call. * */ subject?: Subject | undefined; /** * Information on the federation within which the subject exists. * */ federation?: Federation | undefined; /** * Describes the type of authentication. * */ authenticationType: AuthenticationType; /** Contains the selected value for the `credential` protobuf oneof. */ credential?: { $case: "tokenCredential"; tokenCredential: AccessToken; } | { $case: "staticKeyCredential"; staticKeyCredential: StaticKey; } | undefined; } /** Encodes, decodes, converts, and creates {@link Authentication} messages. */ export declare const Authentication: MessageFns; /** Represents the `nebius.audit.v2.Authorization` protobuf message. */ export interface Authorization { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.Authorization"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Field is required. We do not use `(buf.validate.field).required = true` here as false value * considered as unset (validation violation) * * @deprecated Deprecated: This flag is unreliable and soon will be removed.. */ authorized: boolean; } /** Encodes, decodes, converts, and creates {@link Authorization} messages. */ export declare const Authorization: MessageFns; /** Represents the `nebius.audit.v2.Federation` protobuf message. */ export interface Federation { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.Federation"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Unique identifier of the federation. * */ id: string; /** * Human-readable name of the federation. * */ name: string; } /** Encodes, decodes, converts, and creates {@link Federation} messages. */ export declare const Federation: MessageFns; /** Represents the `nebius.audit.v2.Region` protobuf message. */ export interface Region { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.Region"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Region name * */ name: string; } /** Encodes, decodes, converts, and creates {@link Region} messages. */ export declare const Region: MessageFns; /** Represents the `nebius.audit.v2.Request` protobuf message. */ export interface Request { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.Request"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Ip of the subject who initiated the RPC call. * */ clientIp: string; /** * User agent of the subject who initiated operation. * */ userAgent: string; /** * Unique identifier of the request. * */ requestId: string; /** * Parameters of the request. * */ parameters?: { [key: string]: any; } | undefined; /** * Unique key that the server uses to recognize subsequent retries of the same request. * */ idempotencyId: string; /** * A unique identifier that allows you to link calls to different services within an operation. * */ traceId: string; /** * Client Ja3 fingerprint * */ ja3Fingerprint: string; } /** Encodes, decodes, converts, and creates {@link Request} messages. */ export declare const Request: MessageFns; /** Represents the `nebius.audit.v2.ResourceMetadata` protobuf message. */ export interface ResourceMetadata { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.ResourceMetadata"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Unique identifier of the resource. * */ id: string; /** * Name of the resource. * */ name: string; /** * Type of the resource. * */ type: string; } /** Encodes, decodes, converts, and creates {@link ResourceMetadata} messages. */ export declare const ResourceMetadata: MessageFns; /** Represents the `nebius.audit.v2.ResourceState` protobuf message. */ export interface ResourceState { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.ResourceState"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The state of the resource before the change in the call. * */ previous?: { [key: string]: any; } | undefined; /** * The state of the resource after the change in the call. * */ current?: { [key: string]: any; } | undefined; } /** Encodes, decodes, converts, and creates {@link ResourceState} messages. */ export declare const ResourceState: MessageFns; /** Represents the `nebius.audit.v2.Resource` protobuf message. */ export interface Resource { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.Resource"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Provides basic information about the resource. * */ metadata?: ResourceMetadata | undefined; /** * Gives an understanding of how the resource was changed in the call. * */ state?: ResourceState | undefined; /** * Top-down resources hierarchy from tenant to resource. * */ hierarchy: ResourceMetadata[]; } /** Encodes, decodes, converts, and creates {@link Resource} messages. */ export declare const Resource: MessageFns; /** Represents the `nebius.audit.v2.Response` protobuf message. */ export interface Response { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.Response"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The status that the server returned to the client. * */ statusCode: Code; /** * Error message if the call was not successful. * */ errorMessage: string; /** * The payload of the response. * */ payload?: { [key: string]: any; } | undefined; } /** Encodes, decodes, converts, and creates {@link Response} messages. */ export declare const Response: MessageFns; /** Represents the `nebius.audit.v2.Service` protobuf message. */ export interface Service { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.Service"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `name` protobuf field. */ name: string; } /** Encodes, decodes, converts, and creates {@link Service} messages. */ export declare const Service: MessageFns; /** Represents the `nebius.audit.v2.StaticKey` protobuf message. */ export interface StaticKey { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.StaticKey"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Unique identifier of static key. * */ id: string; } /** Encodes, decodes, converts, and creates {@link StaticKey} messages. */ export declare const StaticKey: MessageFns; /** * Represents the `nebius.audit.v2.Status` protobuf enum. */ export type Status = EnumInstance<"UNRECOGNIZED" | "RESPONSE_STATUS_UNSPECIFIED" | "STARTED" | "DONE" | "ERROR">; /** Defines the static values of {@link Status}. */ export interface StatusValueMembers { /** * Represents the `RESPONSE_STATUS_UNSPECIFIED` protobuf enum value. */ readonly RESPONSE_STATUS_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "RESPONSE_STATUS_UNSPECIFIED" | "STARTED" | "DONE" | "ERROR">; /** * Asynchronous action started * */ readonly STARTED: EnumInstance<"UNRECOGNIZED" | "RESPONSE_STATUS_UNSPECIFIED" | "STARTED" | "DONE" | "ERROR">; /** * Action finished successfully * */ readonly DONE: EnumInstance<"UNRECOGNIZED" | "RESPONSE_STATUS_UNSPECIFIED" | "STARTED" | "DONE" | "ERROR">; /** * Action finished with error * */ readonly ERROR: EnumInstance<"UNRECOGNIZED" | "RESPONSE_STATUS_UNSPECIFIED" | "STARTED" | "DONE" | "ERROR">; } /** Defines the runtime API for {@link Status}. */ export type StatusClass = EnumClass<"UNRECOGNIZED" | "RESPONSE_STATUS_UNSPECIFIED" | "STARTED" | "DONE" | "ERROR"> & StatusValueMembers; /** Converts and creates {@link Status} values. */ export declare const Status: StatusClass; /** Represents the `nebius.audit.v2.Subject` protobuf message. */ export interface Subject { /** Contains the fully qualified protobuf type name. */ $type: "nebius.audit.v2.Subject"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Username of the subject. * */ name: string; /** Contains the selected value for the `id` protobuf oneof. */ id?: { $case: "serviceAccountId"; serviceAccountId: string; } | { $case: "tenantUserId"; tenantUserId: string; } | undefined; } /** Encodes, decodes, converts, and creates {@link Subject} messages. */ export declare const Subject: MessageFns; //# sourceMappingURL=index.d.ts.map