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 { GetOperationRequest, Operation, OperationService, ResourceMetadata } from "../../common/v1/index.js"; /** Represents the `nebius.mysterybox.v1.GetPayloadRequest` protobuf message. */ export interface GetPayloadRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.GetPayloadRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `secret_id` protobuf field. */ secretId: string; /** * Desired version of the secret. If not provided, the primary version of the secret will be returned. * */ versionId: string; } /** Encodes, decodes, converts, and creates {@link GetPayloadRequest} messages. */ export declare const GetPayloadRequest: MessageFns; /** Represents the `nebius.mysterybox.v1.GetPayloadByKeyRequest` protobuf message. */ export interface GetPayloadByKeyRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.GetPayloadByKeyRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `secret_id` protobuf field. */ secretId: string; /** * Desired version of the secret. If not provided, the primary version of the secret will be returned. * */ versionId: string; /** * Payload's key to be retrieved. * */ key: string; } /** Encodes, decodes, converts, and creates {@link GetPayloadByKeyRequest} messages. */ export declare const GetPayloadByKeyRequest: MessageFns; /** Represents the `nebius.mysterybox.v1.SecretPayload` protobuf message. */ export interface SecretPayload { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.SecretPayload"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Secret's version related to returned payload. * */ versionId: string; /** Contains the `data` protobuf field. */ data: Payload[]; } /** Encodes, decodes, converts, and creates {@link SecretPayload} messages. */ export declare const SecretPayload: MessageFns; /** Represents the `nebius.mysterybox.v1.SecretPayloadEntry` protobuf message. */ export interface SecretPayloadEntry { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.SecretPayloadEntry"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Secret's version related to returned payload. * */ versionId: string; /** Contains the `data` protobuf field. */ data?: Payload | undefined; } /** Encodes, decodes, converts, and creates {@link SecretPayloadEntry} messages. */ export declare const SecretPayloadEntry: MessageFns; /** * Defines the gRPC methods for the `nebius.mysterybox.v1.PayloadService` service. */ export type PayloadServiceServiceDescription = typeof PayloadServiceServiceDescription; /** * Describes the gRPC methods for the `nebius.mysterybox.v1.PayloadService` service. */ export declare const PayloadServiceServiceDescription: { readonly get: { readonly path: "/nebius.mysterybox.v1.PayloadService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetPayloadRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetPayloadRequest; readonly responseSerialize: (value: SecretPayload) => Buffer; readonly responseDeserialize: (value: Buffer) => SecretPayload; }; readonly getByKey: { readonly path: "/nebius.mysterybox.v1.PayloadService/GetByKey"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetPayloadByKeyRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetPayloadByKeyRequest; readonly responseSerialize: (value: SecretPayloadEntry) => Buffer; readonly responseDeserialize: (value: Buffer) => SecretPayloadEntry; }; }; /** * Handles server calls for the `nebius.mysterybox.v1.PayloadService` service. */ export interface PayloadServiceServer extends UntypedServiceImplementation { /** * Returns the secret's payload in its decrypted format. * */ get: handleUnaryCall; /** * Returns the secret's payload value by key in its decrypted format. * */ getByKey: handleUnaryCall; } /** * Defines the low-level gRPC client for the `nebius.mysterybox.v1.PayloadService` service. */ export interface PayloadServiceBaseClient extends Client { /** * Returns the secret's payload in its decrypted format. * */ get(request: GetPayloadRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: SecretPayload) => void): ClientUnaryCall; /** * Returns the secret's payload value by key in its decrypted format. * */ getByKey(request: GetPayloadByKeyRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: SecretPayloadEntry) => void): ClientUnaryCall; } /** * Creates low-level gRPC clients for the `nebius.mysterybox.v1.PayloadService` service. */ export declare const PayloadServiceBaseClient: { /** Creates a low-level client for the service address. */ new (address: string, credentials: ChannelCredentials, options?: Partial): PayloadServiceBaseClient; /** Contains the gRPC service description. */ service: typeof PayloadServiceServiceDescription; /** Contains the fully qualified protobuf service name. */ serviceName: string; }; /** * Calls the `nebius.mysterybox.v1.PayloadService` service. */ export interface PayloadService { /** Contains the fully qualified protobuf service name. */ $type: "nebius.mysterybox.v1.PayloadService"; /** * Returns the secret's payload in its decrypted format. * */ get(request: GetPayloadRequest): SDKRequestClass; /** * Returns the secret's payload in its decrypted format. * */ get(request: GetPayloadRequest, metadata: Metadata): SDKRequestClass; /** * Returns the secret's payload in its decrypted format. * */ get(request: GetPayloadRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Returns the secret's payload value by key in its decrypted format. * */ getByKey(request: GetPayloadByKeyRequest): SDKRequestClass; /** * Returns the secret's payload value by key in its decrypted format. * */ getByKey(request: GetPayloadByKeyRequest, metadata: Metadata): SDKRequestClass; /** * Returns the secret's payload value by key in its decrypted format. * */ getByKey(request: GetPayloadByKeyRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** * Calls the `nebius.mysterybox.v1.PayloadService` service through the Nebius SDK. */ export declare class PayloadService implements PayloadService { private sdk; $type: "nebius.mysterybox.v1.PayloadService"; private addr; private spec; private apiServiceName; /** Creates a client that uses the SDK service address. */ constructor(sdk: SDKInterface); /** * Returns the secret's payload in its decrypted format. * */ get(request: GetPayloadRequest): SDKRequestClass; /** * Returns the secret's payload in its decrypted format. * */ get(request: GetPayloadRequest, metadata: Metadata): SDKRequestClass; /** * Returns the secret's payload in its decrypted format. * */ get(request: GetPayloadRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Returns the secret's payload value by key in its decrypted format. * */ getByKey(request: GetPayloadByKeyRequest): SDKRequestClass; /** * Returns the secret's payload value by key in its decrypted format. * */ getByKey(request: GetPayloadByKeyRequest, metadata: Metadata): SDKRequestClass; /** * Returns the secret's payload value by key in its decrypted format. * */ getByKey(request: GetPayloadByKeyRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** * Represents the secret's content as key-value pair. * */ export interface Payload { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.Payload"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Non-confidential key of the payload entry. * */ key: string; /** Contains the selected value for the `payload` protobuf oneof. */ payload?: { $case: "stringValue"; stringValue: string; } | { $case: "binaryValue"; binaryValue: Uint8Array; } | undefined; } /** Encodes, decodes, converts, and creates {@link Payload} messages. */ export declare const Payload: MessageFns; /** Represents the `nebius.mysterybox.v1.CreateSecretRequest` protobuf message. */ export interface CreateSecretRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.CreateSecretRequest"; /** 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?: ResourceMetadata | undefined; /** Contains the `spec` protobuf field. */ spec?: SecretSpec | undefined; } /** Encodes, decodes, converts, and creates {@link CreateSecretRequest} messages. */ export declare const CreateSecretRequest: MessageFns; /** Represents the `nebius.mysterybox.v1.UpdateSecretRequest` protobuf message. */ export interface UpdateSecretRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.UpdateSecretRequest"; /** 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?: ResourceMetadata | undefined; /** Contains the `spec` protobuf field. */ spec?: SecretSpec | undefined; } /** Encodes, decodes, converts, and creates {@link UpdateSecretRequest} messages. */ export declare const UpdateSecretRequest: MessageFns; /** Represents the `nebius.mysterybox.v1.GetSecretRequest` protobuf message. */ export interface GetSecretRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.GetSecretRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * ID of secret to return. * */ id: string; /** * By default, Get doesn't return resource if it is scheduled for deletion. * If show_scheduled_for_deletion = true, the Get operation returns the resource even if it is scheduled for deletion. * If show_scheduled_for_deletion = false, the Get method returns the NOT_FOUND gRPC status code. * */ showScheduledForDeletion: boolean; } /** Encodes, decodes, converts, and creates {@link GetSecretRequest} messages. */ export declare const GetSecretRequest: MessageFns; /** Represents the `nebius.mysterybox.v1.GetSecretByNameRequest` protobuf message. */ export interface GetSecretByNameRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.GetSecretByNameRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * ParentId and name of the secret to return. * */ parentId: string; /** Contains the `name` protobuf field. */ name: string; } /** Encodes, decodes, converts, and creates {@link GetSecretByNameRequest} messages. */ export declare const GetSecretByNameRequest: MessageFns; /** Represents the `nebius.mysterybox.v1.ListSecretsRequest` protobuf message. */ export interface ListSecretsRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.ListSecretsRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * ParentId of the secret to return. * */ parentId: string; /** * The maximum number of results per page to return. If the number of available * results is larger than [page_size], the service returns a [ListSecretsResponse.next_page_token] * that can be used to get the next page of results in subsequent list requests. * Default value: 100. * */ pageSize: Long; /** * Page token. To get the next page of results, set [page_token] to the * [ListSecretsResponse.next_page_token] returned by a previous list request. * */ pageToken: string; /** * By default, List operation doesn't include resources that are scheduled for deletion. * If show_scheduled_for_deletion = true, the listing includes resources that are scheduled for deletion. * */ showScheduledForDeletion: boolean; } /** Encodes, decodes, converts, and creates {@link ListSecretsRequest} messages. */ export declare const ListSecretsRequest: MessageFns; /** Represents the `nebius.mysterybox.v1.ListSecretsResponse` protobuf message. */ export interface ListSecretsResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.ListSecretsResponse"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * This token allows you to get the next page of results for list requests. If the number * of results is greater than the specified [ListSecretsRequest.page_size], use * the [next_page_token] as the value for the [ListSecretsRequest.page_token] query parameter * in the next list request. Each subsequent list request will have its own * [next_page_token] to continue paging through the results. * */ nextPageToken: string; /** * List of secrets in the specified container, without its Payload. * */ items: Secret[]; } /** Encodes, decodes, converts, and creates {@link ListSecretsResponse} messages. */ export declare const ListSecretsResponse: MessageFns; /** Represents the `nebius.mysterybox.v1.DeleteSecretRequest` protobuf message. */ export interface DeleteSecretRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.DeleteSecretRequest"; /** 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 secret to soft-delete. * */ id: string; } /** Encodes, decodes, converts, and creates {@link DeleteSecretRequest} messages. */ export declare const DeleteSecretRequest: MessageFns; /** Represents the `nebius.mysterybox.v1.UndeleteSecretRequest` protobuf message. */ export interface UndeleteSecretRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.UndeleteSecretRequest"; /** 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 secret version to soft-delete. * */ id: string; /** * A new Secret name in case the current one is already in use. * Empty value in name field means "use original name for undeleted Secret". * Undelete will fail if a Secret with the same name already exists. * */ name: string; } /** Encodes, decodes, converts, and creates {@link UndeleteSecretRequest} messages. */ export declare const UndeleteSecretRequest: MessageFns; /** * Defines the gRPC methods for the `nebius.mysterybox.v1.SecretService` service. */ export type SecretServiceServiceDescription = typeof SecretServiceServiceDescription; /** * Describes the gRPC methods for the `nebius.mysterybox.v1.SecretService` service. */ export declare const SecretServiceServiceDescription: { readonly create: { readonly path: "/nebius.mysterybox.v1.SecretService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateSecretRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => CreateSecretRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly update: { readonly path: "/nebius.mysterybox.v1.SecretService/Update"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateSecretRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: true; readonly requestDeserialize: (value: Buffer) => UpdateSecretRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly get: { readonly path: "/nebius.mysterybox.v1.SecretService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetSecretRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetSecretRequest; readonly responseSerialize: (value: Secret) => Buffer; readonly responseDeserialize: (value: Buffer) => Secret; }; readonly getByName: { readonly path: "/nebius.mysterybox.v1.SecretService/GetByName"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetSecretByNameRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetSecretByNameRequest; readonly responseSerialize: (value: Secret) => Buffer; readonly responseDeserialize: (value: Buffer) => Secret; }; readonly list: { readonly path: "/nebius.mysterybox.v1.SecretService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListSecretsRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListSecretsRequest; readonly responseSerialize: (value: ListSecretsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListSecretsResponse; }; readonly delete: { readonly path: "/nebius.mysterybox.v1.SecretService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteSecretRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => DeleteSecretRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly undelete: { readonly path: "/nebius.mysterybox.v1.SecretService/Undelete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UndeleteSecretRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => UndeleteSecretRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; /** * Handles server calls for the `nebius.mysterybox.v1.SecretService` service. */ export interface SecretServiceServer extends UntypedServiceImplementation { /** * Creates a new secret in the specified container. * */ create: handleUnaryCall; /** * Updates an existing secret, excluded its Payload. * */ update: handleUnaryCall; /** * Returns the specified secret, without its Payload. * */ get: handleUnaryCall; /** * Returns the specified secret by name, without its Payload. * */ getByName: handleUnaryCall; /** * Returns the list of secrets in a specified container, without its Payload. * */ list: handleUnaryCall; /** * Soft delete secret * */ delete: handleUnaryCall; /** * Undelete secret version * */ undelete: handleUnaryCall; } /** * Defines the low-level gRPC client for the `nebius.mysterybox.v1.SecretService` service. */ export interface SecretServiceBaseClient extends Client { /** * Creates a new secret in the specified container. * */ create(request: CreateSecretRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Updates an existing secret, excluded its Payload. * */ update(request: UpdateSecretRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Returns the specified secret, without its Payload. * */ get(request: GetSecretRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Secret) => void): ClientUnaryCall; /** * Returns the specified secret by name, without its Payload. * */ getByName(request: GetSecretByNameRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Secret) => void): ClientUnaryCall; /** * Returns the list of secrets in a specified container, without its Payload. * */ list(request: ListSecretsRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListSecretsResponse) => void): ClientUnaryCall; /** * Soft delete secret * */ delete(request: DeleteSecretRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Undelete secret version * */ undelete(request: UndeleteSecretRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; } /** * Creates low-level gRPC clients for the `nebius.mysterybox.v1.SecretService` service. */ export declare const SecretServiceBaseClient: { /** Creates a low-level client for the service address. */ new (address: string, credentials: ChannelCredentials, options?: Partial): SecretServiceBaseClient; /** Contains the gRPC service description. */ service: typeof SecretServiceServiceDescription; /** Contains the fully qualified protobuf service name. */ serviceName: string; }; /** * A set of methods for managing secrets. * */ export interface SecretService { /** Contains the fully qualified protobuf service name. */ $type: "nebius.mysterybox.v1.SecretService"; /** * Creates a new secret in the specified container. * */ create(request: CreateSecretRequest): SDKRequestClass>; /** * Creates a new secret in the specified container. * */ create(request: CreateSecretRequest, metadata: Metadata): SDKRequestClass>; /** * Creates a new secret in the specified container. * */ create(request: CreateSecretRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Updates an existing secret, excluded its Payload. * */ update(request: UpdateSecretRequest): SDKRequestClass>; /** * Updates an existing secret, excluded its Payload. * */ update(request: UpdateSecretRequest, metadata: Metadata): SDKRequestClass>; /** * Updates an existing secret, excluded its Payload. * */ update(request: UpdateSecretRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Returns the specified secret, without its Payload. * */ get(request: GetSecretRequest): SDKRequestClass; /** * Returns the specified secret, without its Payload. * */ get(request: GetSecretRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified secret, without its Payload. * */ get(request: GetSecretRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Returns the specified secret by name, without its Payload. * */ getByName(request: GetSecretByNameRequest): SDKRequestClass; /** * Returns the specified secret by name, without its Payload. * */ getByName(request: GetSecretByNameRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified secret by name, without its Payload. * */ getByName(request: GetSecretByNameRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Returns the list of secrets in a specified container, without its Payload. * */ list(request: ListSecretsRequest): SDKRequestClass; /** * Returns the list of secrets in a specified container, without its Payload. * */ list(request: ListSecretsRequest, metadata: Metadata): SDKRequestClass; /** * Returns the list of secrets in a specified container, without its Payload. * */ list(request: ListSecretsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Soft delete secret * */ delete(request: DeleteSecretRequest): SDKRequestClass>; /** * Soft delete secret * */ delete(request: DeleteSecretRequest, metadata: Metadata): SDKRequestClass>; /** * Soft delete secret * */ delete(request: DeleteSecretRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Undelete secret version * */ undelete(request: UndeleteSecretRequest): SDKRequestClass>; /** * Undelete secret version * */ undelete(request: UndeleteSecretRequest, metadata: Metadata): SDKRequestClass>; /** * Undelete secret version * */ undelete(request: UndeleteSecretRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; } /** * Calls the `nebius.mysterybox.v1.SecretService` service through the Nebius SDK. */ export declare class SecretService implements SecretService { private sdk; $type: "nebius.mysterybox.v1.SecretService"; 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; /** * Creates a new secret in the specified container. * */ create(request: CreateSecretRequest): SDKRequestClass>; /** * Creates a new secret in the specified container. * */ create(request: CreateSecretRequest, metadata: Metadata): SDKRequestClass>; /** * Creates a new secret in the specified container. * */ create(request: CreateSecretRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Updates an existing secret, excluded its Payload. * */ update(request: UpdateSecretRequest): SDKRequestClass>; /** * Updates an existing secret, excluded its Payload. * */ update(request: UpdateSecretRequest, metadata: Metadata): SDKRequestClass>; /** * Updates an existing secret, excluded its Payload. * */ update(request: UpdateSecretRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Returns the specified secret, without its Payload. * */ get(request: GetSecretRequest): SDKRequestClass; /** * Returns the specified secret, without its Payload. * */ get(request: GetSecretRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified secret, without its Payload. * */ get(request: GetSecretRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Returns the specified secret by name, without its Payload. * */ getByName(request: GetSecretByNameRequest): SDKRequestClass; /** * Returns the specified secret by name, without its Payload. * */ getByName(request: GetSecretByNameRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified secret by name, without its Payload. * */ getByName(request: GetSecretByNameRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Returns the list of secrets in a specified container, without its Payload. * */ list(request: ListSecretsRequest): SDKRequestClass; /** * Returns the list of secrets in a specified container, without its Payload. * */ list(request: ListSecretsRequest, metadata: Metadata): SDKRequestClass; /** * Returns the list of secrets in a specified container, without its Payload. * */ list(request: ListSecretsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Soft delete secret * */ delete(request: DeleteSecretRequest): SDKRequestClass>; /** * Soft delete secret * */ delete(request: DeleteSecretRequest, metadata: Metadata): SDKRequestClass>; /** * Soft delete secret * */ delete(request: DeleteSecretRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Undelete secret version * */ undelete(request: UndeleteSecretRequest): SDKRequestClass>; /** * Undelete secret version * */ undelete(request: UndeleteSecretRequest, metadata: Metadata): SDKRequestClass>; /** * Undelete secret version * */ undelete(request: UndeleteSecretRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; } /** Represents the `nebius.mysterybox.v1.CreateSecretVersionRequest` protobuf message. */ export interface CreateSecretVersionRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.CreateSecretVersionRequest"; /** 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?: ResourceMetadata | undefined; /** Contains the `spec` protobuf field. */ spec?: SecretVersionSpec | undefined; } /** Encodes, decodes, converts, and creates {@link CreateSecretVersionRequest} messages. */ export declare const CreateSecretVersionRequest: MessageFns; /** Represents the `nebius.mysterybox.v1.GetSecretVersionRequest` protobuf message. */ export interface GetSecretVersionRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.GetSecretVersionRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * ID of secret versions to return. * */ id: string; /** * By default, Get doesn't return resource if it is scheduled for deletion. * If show_scheduled_for_deletion = true, the Get operation returns the resource even if it is scheduled for deletion. * If show_scheduled_for_deletion = false, the Get method returns the NOT_FOUND gRPC status code. * */ showScheduledForDeletion: boolean; } /** Encodes, decodes, converts, and creates {@link GetSecretVersionRequest} messages. */ export declare const GetSecretVersionRequest: MessageFns; /** Represents the `nebius.mysterybox.v1.ListSecretVersionsRequest` protobuf message. */ export interface ListSecretVersionsRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.ListSecretVersionsRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Secret id related to the version. * */ parentId: string; /** * The maximum number of results per page to return. If the number of available * results is larger than [page_size], the service returns a [ListSecretVersionsResponse.next_page_token] * that can be used to get the next page of results in subsequent list requests. * Default value: 100. * */ pageSize: Long; /** * Page token. To get the next page of results, set [page_token] to the * [ListSecretVersionsResponse.next_page_token] returned by a previous list request. * */ pageToken: string; /** * By default, List operation doesn't include resources that are scheduled for deletion. * If show_scheduled_for_deletion = true, the listing includes resources that are scheduled for deletion. * */ showScheduledForDeletion: boolean; } /** Encodes, decodes, converts, and creates {@link ListSecretVersionsRequest} messages. */ export declare const ListSecretVersionsRequest: MessageFns; /** Represents the `nebius.mysterybox.v1.ListSecretVersionsResponse` protobuf message. */ export interface ListSecretVersionsResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.ListSecretVersionsResponse"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * This token allows you to get the next page of results for list requests. If the number * of results is greater than the specified [ListSecretVersionsRequest.page_size], use * the [next_page_token] as the value for the [ListSecretVersionsRequest.page_token] query parameter * in the next list request. Each subsequent list request will have its own * [next_page_token] to continue paging through the results. * */ nextPageToken: string; /** * List of secret versions in the specified container, without its Payload. * */ items: SecretVersion[]; } /** Encodes, decodes, converts, and creates {@link ListSecretVersionsResponse} messages. */ export declare const ListSecretVersionsResponse: MessageFns; /** Represents the `nebius.mysterybox.v1.DeleteSecretVersionRequest` protobuf message. */ export interface DeleteSecretVersionRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.DeleteSecretVersionRequest"; /** 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 secret version to soft-delete. * */ id: string; } /** Encodes, decodes, converts, and creates {@link DeleteSecretVersionRequest} messages. */ export declare const DeleteSecretVersionRequest: MessageFns; /** Represents the `nebius.mysterybox.v1.UndeleteSecretVersionRequest` protobuf message. */ export interface UndeleteSecretVersionRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.UndeleteSecretVersionRequest"; /** 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 secret version to soft-delete. * */ id: string; } /** Encodes, decodes, converts, and creates {@link UndeleteSecretVersionRequest} messages. */ export declare const UndeleteSecretVersionRequest: MessageFns; /** * Defines the gRPC methods for the `nebius.mysterybox.v1.SecretVersionService` service. */ export type SecretVersionServiceServiceDescription = typeof SecretVersionServiceServiceDescription; /** * Describes the gRPC methods for the `nebius.mysterybox.v1.SecretVersionService` service. */ export declare const SecretVersionServiceServiceDescription: { readonly create: { readonly path: "/nebius.mysterybox.v1.SecretVersionService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateSecretVersionRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => CreateSecretVersionRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly get: { readonly path: "/nebius.mysterybox.v1.SecretVersionService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetSecretVersionRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetSecretVersionRequest; readonly responseSerialize: (value: SecretVersion) => Buffer; readonly responseDeserialize: (value: Buffer) => SecretVersion; }; readonly list: { readonly path: "/nebius.mysterybox.v1.SecretVersionService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListSecretVersionsRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListSecretVersionsRequest; readonly responseSerialize: (value: ListSecretVersionsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListSecretVersionsResponse; }; readonly delete: { readonly path: "/nebius.mysterybox.v1.SecretVersionService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteSecretVersionRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => DeleteSecretVersionRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly undelete: { readonly path: "/nebius.mysterybox.v1.SecretVersionService/Undelete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UndeleteSecretVersionRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => UndeleteSecretVersionRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; /** * Handles server calls for the `nebius.mysterybox.v1.SecretVersionService` service. */ export interface SecretVersionServiceServer extends UntypedServiceImplementation { /** * Creates a new secret version in the specified container. * */ create: handleUnaryCall; /** * Returns the specified secret version, without its Payload. * */ get: handleUnaryCall; /** * Returns the list of secret versions in a specified container, without its Payload. * */ list: handleUnaryCall; /** * Soft delete secret version. * */ delete: handleUnaryCall; /** * Undelete secret version * */ undelete: handleUnaryCall; } /** * Defines the low-level gRPC client for the `nebius.mysterybox.v1.SecretVersionService` service. */ export interface SecretVersionServiceBaseClient extends Client { /** * Creates a new secret version in the specified container. * */ create(request: CreateSecretVersionRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Returns the specified secret version, without its Payload. * */ get(request: GetSecretVersionRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: SecretVersion) => void): ClientUnaryCall; /** * Returns the list of secret versions in a specified container, without its Payload. * */ list(request: ListSecretVersionsRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListSecretVersionsResponse) => void): ClientUnaryCall; /** * Soft delete secret version. * */ delete(request: DeleteSecretVersionRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Undelete secret version * */ undelete(request: UndeleteSecretVersionRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; } /** * Creates low-level gRPC clients for the `nebius.mysterybox.v1.SecretVersionService` service. */ export declare const SecretVersionServiceBaseClient: { /** Creates a low-level client for the service address. */ new (address: string, credentials: ChannelCredentials, options?: Partial): SecretVersionServiceBaseClient; /** Contains the gRPC service description. */ service: typeof SecretVersionServiceServiceDescription; /** Contains the fully qualified protobuf service name. */ serviceName: string; }; /** * A set of methods for managing secret's versions. * */ export interface SecretVersionService { /** Contains the fully qualified protobuf service name. */ $type: "nebius.mysterybox.v1.SecretVersionService"; /** * Creates a new secret version in the specified container. * */ create(request: CreateSecretVersionRequest): SDKRequestClass>; /** * Creates a new secret version in the specified container. * */ create(request: CreateSecretVersionRequest, metadata: Metadata): SDKRequestClass>; /** * Creates a new secret version in the specified container. * */ create(request: CreateSecretVersionRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Returns the specified secret version, without its Payload. * */ get(request: GetSecretVersionRequest): SDKRequestClass; /** * Returns the specified secret version, without its Payload. * */ get(request: GetSecretVersionRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified secret version, without its Payload. * */ get(request: GetSecretVersionRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Returns the list of secret versions in a specified container, without its Payload. * */ list(request: ListSecretVersionsRequest): SDKRequestClass; /** * Returns the list of secret versions in a specified container, without its Payload. * */ list(request: ListSecretVersionsRequest, metadata: Metadata): SDKRequestClass; /** * Returns the list of secret versions in a specified container, without its Payload. * */ list(request: ListSecretVersionsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Soft delete secret version. * */ delete(request: DeleteSecretVersionRequest): SDKRequestClass>; /** * Soft delete secret version. * */ delete(request: DeleteSecretVersionRequest, metadata: Metadata): SDKRequestClass>; /** * Soft delete secret version. * */ delete(request: DeleteSecretVersionRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Undelete secret version * */ undelete(request: UndeleteSecretVersionRequest): SDKRequestClass>; /** * Undelete secret version * */ undelete(request: UndeleteSecretVersionRequest, metadata: Metadata): SDKRequestClass>; /** * Undelete secret version * */ undelete(request: UndeleteSecretVersionRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; } /** * Calls the `nebius.mysterybox.v1.SecretVersionService` service through the Nebius SDK. */ export declare class SecretVersionService implements SecretVersionService { private sdk; $type: "nebius.mysterybox.v1.SecretVersionService"; 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; /** * Creates a new secret version in the specified container. * */ create(request: CreateSecretVersionRequest): SDKRequestClass>; /** * Creates a new secret version in the specified container. * */ create(request: CreateSecretVersionRequest, metadata: Metadata): SDKRequestClass>; /** * Creates a new secret version in the specified container. * */ create(request: CreateSecretVersionRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Returns the specified secret version, without its Payload. * */ get(request: GetSecretVersionRequest): SDKRequestClass; /** * Returns the specified secret version, without its Payload. * */ get(request: GetSecretVersionRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified secret version, without its Payload. * */ get(request: GetSecretVersionRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Returns the list of secret versions in a specified container, without its Payload. * */ list(request: ListSecretVersionsRequest): SDKRequestClass; /** * Returns the list of secret versions in a specified container, without its Payload. * */ list(request: ListSecretVersionsRequest, metadata: Metadata): SDKRequestClass; /** * Returns the list of secret versions in a specified container, without its Payload. * */ list(request: ListSecretVersionsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Soft delete secret version. * */ delete(request: DeleteSecretVersionRequest): SDKRequestClass>; /** * Soft delete secret version. * */ delete(request: DeleteSecretVersionRequest, metadata: Metadata): SDKRequestClass>; /** * Soft delete secret version. * */ delete(request: DeleteSecretVersionRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Undelete secret version * */ undelete(request: UndeleteSecretVersionRequest): SDKRequestClass>; /** * Undelete secret version * */ undelete(request: UndeleteSecretVersionRequest, metadata: Metadata): SDKRequestClass>; /** * Undelete secret version * */ undelete(request: UndeleteSecretVersionRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; } /** * Represents the `nebius.mysterybox.v1.SecretVersionStatus.State` protobuf enum. */ export type SecretVersionStatus_State = EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "ACTIVE" | "SCHEDULED_FOR_DELETION">; /** Defines the static values of {@link SecretVersionStatus_State}. */ export interface SecretVersionStatus_StateValueMembers { /** * Represents the `STATE_UNSPECIFIED` protobuf enum value. */ readonly STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "ACTIVE" | "SCHEDULED_FOR_DELETION">; /** * Resource is active, ready for use * */ readonly ACTIVE: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "ACTIVE" | "SCHEDULED_FOR_DELETION">; /** * Resource was marked as soft deleted * */ readonly SCHEDULED_FOR_DELETION: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "ACTIVE" | "SCHEDULED_FOR_DELETION">; } /** Defines the runtime API for {@link SecretVersionStatus_State}. */ export type SecretVersionStatus_StateClass = EnumClass<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "ACTIVE" | "SCHEDULED_FOR_DELETION"> & SecretVersionStatus_StateValueMembers; /** Converts and creates {@link SecretVersionStatus_State} values. */ export declare const SecretVersionStatus_State: SecretVersionStatus_StateClass; /** Represents the `nebius.mysterybox.v1.SecretVersion` protobuf message. */ export interface SecretVersion { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.SecretVersion"; /** 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?: ResourceMetadata | undefined; /** Contains the `spec` protobuf field. */ spec?: SecretVersionSpec | undefined; /** * The status of the secret version. * */ status?: SecretVersionStatus | undefined; } /** Encodes, decodes, converts, and creates {@link SecretVersion} messages. */ export declare const SecretVersion: MessageFns; /** Represents the `nebius.mysterybox.v1.SecretVersionSpec` protobuf message. */ export interface SecretVersionSpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.SecretVersionSpec"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Description of the version. * */ description: string; /** * Payload entries related to the version. * */ payload: Payload[]; /** Contains the `set_primary` protobuf field. */ setPrimary: boolean; } /** Encodes, decodes, converts, and creates {@link SecretVersionSpec} messages. */ export declare const SecretVersionSpec: MessageFns; /** Represents the `nebius.mysterybox.v1.SecretVersionStatus` protobuf message. */ export interface SecretVersionStatus { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.SecretVersionStatus"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * State (ACTIVE, SCHEDULED_FOR_DELETION) * */ state: SecretVersionStatus_State; /** * Time when user called soft delete method * */ deletedAt?: Dayjs | undefined; /** * Time when key should be totally deleted from DB * */ purgeAt?: Dayjs | undefined; } /** Encodes, decodes, converts, and creates {@link SecretVersionStatus} messages. */ export declare const SecretVersionStatus: MessageFns; /** * Represents the `nebius.mysterybox.v1.SecretStatus.State` protobuf enum. */ export type SecretStatus_State = EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "ACTIVE" | "SCHEDULED_FOR_DELETION">; /** Defines the static values of {@link SecretStatus_State}. */ export interface SecretStatus_StateValueMembers { /** * Represents the `STATE_UNSPECIFIED` protobuf enum value. */ readonly STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "ACTIVE" | "SCHEDULED_FOR_DELETION">; /** * Resource is active, ready for use * */ readonly ACTIVE: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "ACTIVE" | "SCHEDULED_FOR_DELETION">; /** * Resource was marked as soft deleted * */ readonly SCHEDULED_FOR_DELETION: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "ACTIVE" | "SCHEDULED_FOR_DELETION">; } /** Defines the runtime API for {@link SecretStatus_State}. */ export type SecretStatus_StateClass = EnumClass<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "ACTIVE" | "SCHEDULED_FOR_DELETION"> & SecretStatus_StateValueMembers; /** Converts and creates {@link SecretStatus_State} values. */ export declare const SecretStatus_State: SecretStatus_StateClass; /** Represents the `nebius.mysterybox.v1.Secret` protobuf message. */ export interface Secret { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.Secret"; /** 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?: ResourceMetadata | undefined; /** * The specifications for creating a secret. * */ spec?: SecretSpec | undefined; /** * The status of the secret. * */ status?: SecretStatus | undefined; } /** Encodes, decodes, converts, and creates {@link Secret} messages. */ export declare const Secret: MessageFns; /** Represents the `nebius.mysterybox.v1.SecretSpec` protobuf message. */ export interface SecretSpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.SecretSpec"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Description of the secret. * */ description: string; /** * Specifies the primary version of the secret to update its payload. This parameter should only be provided during update operations. * */ primaryVersionId?: string | undefined; /** * Secret's version specification, defines the secret version, including its payload. This parameter must be specified only during create * operations. * */ secretVersion?: SecretVersionSpec | undefined; } /** Encodes, decodes, converts, and creates {@link SecretSpec} messages. */ export declare const SecretSpec: MessageFns; /** Represents the `nebius.mysterybox.v1.SecretStatus` protobuf message. */ export interface SecretStatus { /** Contains the fully qualified protobuf type name. */ $type: "nebius.mysterybox.v1.SecretStatus"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * State (ACTIVE, SCHEDULED_FOR_DELETION) * */ state: SecretStatus_State; /** * Time when user called soft delete method * */ deletedAt?: Dayjs | undefined; /** * Time when key should be totally deleted from DB * */ purgeAt?: Dayjs | undefined; /** Contains the `effective_kms_key_id` protobuf field. */ effectiveKmsKeyId: string; } /** Encodes, decodes, converts, and creates {@link SecretStatus} messages. */ export declare const SecretStatus: MessageFns; //# sourceMappingURL=index.d.ts.map