import { unknownFieldsSymbol } from "../../../../../runtime/protos/index.js"; import type { MessageFns, EnumInstance, EnumClass } from "../../../../../runtime/protos/index.js"; import { customJson } from "../../../../../runtime/util/logging.js"; /** * The request is invalid. * */ export interface BadRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.error.v1alpha1.BadRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Describes all violations. * */ violations: BadRequest_Violation[]; } /** Encodes, decodes, converts, and creates {@link BadRequest} messages. */ export declare const BadRequest: MessageFns; /** Represents the `nebius.common.error.v1alpha1.BadRequest.Violation` protobuf message. */ export interface BadRequest_Violation { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.error.v1alpha1.BadRequest.Violation"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * What field value is invalid. * */ field: string; /** * Description why the value is invalid, in English. * */ message: string; } /** Encodes, decodes, converts, and creates {@link BadRequest_Violation} messages. */ export declare const BadRequest_Violation: MessageFns; /** * The resource we are trying to use, create, change or delete is in a bad state and cannot be used. * */ export interface BadResourceState { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.error.v1alpha1.BadResourceState"; /** 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 resource which is bad. * */ resourceId: string; /** * The reason why this state is bad and cannot be used. * */ message: string; } /** Encodes, decodes, converts, and creates {@link BadResourceState} messages. */ export declare const BadResourceState: MessageFns; /** * Resource we are trying to interact with does not exist. * */ export interface ResourceNotFound { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.error.v1alpha1.ResourceNotFound"; /** 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 requested resource. * */ resourceId: string; } /** Encodes, decodes, converts, and creates {@link ResourceNotFound} messages. */ export declare const ResourceNotFound: MessageFns; /** * Resource we are trying to create already exists. * */ export interface ResourceAlreadyExists { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.error.v1alpha1.ResourceAlreadyExists"; /** 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 existing resource. * */ resourceId: string; } /** Encodes, decodes, converts, and creates {@link ResourceAlreadyExists} messages. */ export declare const ResourceAlreadyExists: MessageFns; /** * There is a difference between the actual resource state and the expected one. * */ export interface ResourceConflict { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.error.v1alpha1.ResourceConflict"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * ID of conflicting resource. * */ resourceId: string; /** * Detailed info about conflict. * */ message: string; } /** Encodes, decodes, converts, and creates {@link ResourceConflict} messages. */ export declare const ResourceConflict: MessageFns; /** * Operation on the resource has been aborted by a subsequent operation. * */ export interface OperationAborted { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.error.v1alpha1.OperationAborted"; /** 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 aborted operation * */ operationId: string; /** * ID of the subsequent operation * */ abortedByOperationId: string; /** * Resource ID corresponding to both of the operations * */ resourceId: string; } /** Encodes, decodes, converts, and creates {@link OperationAborted} messages. */ export declare const OperationAborted: MessageFns; /** * Indicates that element with requested parameters is exceeding the particular range. * */ export interface OutOfRange { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.error.v1alpha1.OutOfRange"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Requested value. * */ requested: string; /** * Available limit. * */ limit: string; } /** Encodes, decodes, converts, and creates {@link OutOfRange} messages. */ export declare const OutOfRange: MessageFns; /** * Indicates that the action cannot be performed because there are insufficient access rights to a resource. * */ export interface PermissionDenied { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.error.v1alpha1.PermissionDenied"; /** 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 resource that cannot be accessed. * */ resourceId: string; } /** Encodes, decodes, converts, and creates {@link PermissionDenied} messages. */ export declare const PermissionDenied: MessageFns; /** * Generic internal error. * */ export interface InternalError { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.error.v1alpha1.InternalError"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Error request ID. * */ requestId: string; /** * Trace ID for the failing request. * */ traceId: string; } /** Encodes, decodes, converts, and creates {@link InternalError} messages. */ export declare const InternalError: MessageFns; /** * You initiated too many requests to the service at once. Enhance your calm. * */ export interface TooManyRequests { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.error.v1alpha1.TooManyRequests"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * What request limit is exceeded (service-dependent). * */ violation: string; } /** Encodes, decodes, converts, and creates {@link TooManyRequests} messages. */ export declare const TooManyRequests: MessageFns; /** * Indicates a failure due to exceeding specified limits or allocations in a system or service * */ export interface QuotaFailure { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.error.v1alpha1.QuotaFailure"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Describes all quota violations * */ violations: QuotaFailure_Violation[]; } /** Encodes, decodes, converts, and creates {@link QuotaFailure} messages. */ export declare const QuotaFailure: MessageFns; /** Represents the `nebius.common.error.v1alpha1.QuotaFailure.Violation` protobuf message. */ export interface QuotaFailure_Violation { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.error.v1alpha1.QuotaFailure.Violation"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Which quota check failed. * */ quota: string; /** * A description of how the quota check failed. * */ message: string; /** * Maximum permissible value. * */ limit: string; /** * Requested value. * */ requested: string; } /** Encodes, decodes, converts, and creates {@link QuotaFailure_Violation} messages. */ export declare const QuotaFailure_Violation: MessageFns; /** * Represents the `nebius.common.error.v1alpha1.ServiceError.RetryType` protobuf enum. */ export type ServiceError_RetryType = EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "CALL" | "UNIT_OF_WORK" | "NOTHING">; /** Defines the static values of {@link ServiceError_RetryType}. */ export interface ServiceError_RetryTypeValueMembers { /** * Represents the `UNSPECIFIED` protobuf enum value. */ readonly UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "CALL" | "UNIT_OF_WORK" | "NOTHING">; /** * Just retry the failed call. * */ readonly CALL: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "CALL" | "UNIT_OF_WORK" | "NOTHING">; /** * Retry whole logic before call and make a new one. * */ readonly UNIT_OF_WORK: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "CALL" | "UNIT_OF_WORK" | "NOTHING">; /** * Do not retry, this is a fatal error. * */ readonly NOTHING: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "CALL" | "UNIT_OF_WORK" | "NOTHING">; } /** Defines the runtime API for {@link ServiceError_RetryType}. */ export type ServiceError_RetryTypeClass = EnumClass<"UNRECOGNIZED" | "UNSPECIFIED" | "CALL" | "UNIT_OF_WORK" | "NOTHING"> & ServiceError_RetryTypeValueMembers; /** Converts and creates {@link ServiceError_RetryType} values. */ export declare const ServiceError_RetryType: ServiceError_RetryTypeClass; /** * @deprecated Deprecated: migrate to common/v1. */ export interface ServiceError { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.error.v1alpha1.ServiceError"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * ID of Service which the error originated in. E.g. "dns". * */ service: string; /** * Detailed error code, service-specific. E.g. "DnsZoneNotEmpty". * Name of the exception, without Exception suffix if not set * Example: for PermissionDeniedException -> code == PermissionDenied * */ code: string; /** * Retry type tells how to provide retry, e.g.: just a single call or the whole logic before it. * */ retryType: ServiceError_RetryType; /** * Additional message describing the error, if any. * */ details?: { $case: "badRequest"; badRequest: BadRequest; } | { $case: "badResourceState"; badResourceState: BadResourceState; } | { $case: "resourceNotFound"; resourceNotFound: ResourceNotFound; } | { $case: "resourceAlreadyExists"; resourceAlreadyExists: ResourceAlreadyExists; } | { $case: "outOfRange"; outOfRange: OutOfRange; } | { $case: "permissionDenied"; permissionDenied: PermissionDenied; } | { $case: "resourceConflict"; resourceConflict: ResourceConflict; } | { $case: "operationAborted"; operationAborted: OperationAborted; } | { $case: "tooManyRequests"; tooManyRequests: TooManyRequests; } | { $case: "quotaFailure"; quotaFailure: QuotaFailure; } | { $case: "internalError"; internalError: InternalError; } | undefined; } /** Encodes, decodes, converts, and creates {@link ServiceError} messages. */ export declare const ServiceError: MessageFns; //# sourceMappingURL=index.d.ts.map