import "../ApiClient-fBZ10h6n.mjs"; import "../QueryFilterOp-I6iNIMKZ.mjs"; import { t as KVControllerApiDeleteBulkResponse_default } from "../KVControllerApiDeleteBulkResponse-BeGXJEwJ.mjs"; import "../KVType-mtrFDQZa.mjs"; import { t as KVControllerKvDetail_default } from "../KVControllerKvDetail-DrmISo4q.mjs"; import { t as KVEntry_default } from "../KVEntry-giTLUh__.mjs"; import { t as PagedResultsKVEntry_default } from "../PagedResultsKVEntry-CT8M6C7O.mjs"; import { t as IQueryFilter } from "../IQueryFilter-C0EgxMlb.mjs"; //#region src/api/KVApi.d.ts /** * KV service. * @module api/KVApi */ declare class KVApi { /** * Constructs a new KVApi. * @alias module:api/KVApi * @class * @param {module:ApiClient} [apiClient] Optional API client implementation to use, * default to {@link module:ApiClient#instance} if unspecified. */ constructor(apiClient?: any); apiClient: any; /** * Delete a key-value pair * @param {String} namespace The namespace id * @param {String} key The key * @param {String} tenant * @return {Promise< Boolean >} */ deleteKeyValueWithHttpInfo(namespace: string, key: string, tenant: string): Promise; /** * Delete a key-value pair * @param {String} namespace The namespace id * @param {String} key The key * @param {String} tenant * @return {Promise< Boolean >} */ deleteKeyValue(namespace: string, key: string, tenant: string): Promise; /** * Bulk-delete multiple key/value pairs from the given namespace. * @param {String} namespace The namespace id * @param {String} tenant * @param {module:model/KVControllerApiDeleteBulkRequest} kVControllerApiDeleteBulkRequest The keys * @return {Promise} */ deleteKeyValuesWithHttpInfo(namespace: string, tenant: string, kVControllerApiDeleteBulkRequest: any): Promise; /** * Bulk-delete multiple key/value pairs from the given namespace. * @param {String} namespace The namespace id * @param {String} tenant * @param {module:model/KVControllerApiDeleteBulkRequest} kVControllerApiDeleteBulkRequest The keys * @return {Promise} */ deleteKeyValues(namespace: string, tenant: string, kVControllerApiDeleteBulkRequest: any): Promise; /** * Get value for a key * @param {String} namespace The namespace id * @param {String} key The key * @param {String} tenant * @return {Promise} */ keyValueWithHttpInfo(namespace: string, key: string, tenant: string): Promise; /** * Get value for a key * @param {String} namespace The namespace id * @param {String} key The key * @param {String} tenant * @return {Promise} */ keyValue(namespace: string, key: string, tenant: string): Promise; /** * List all keys * @param {String} tenant * @param {Object} opts Optional parameters * @param {Number} [page = 1)] The current page * @param {Number} [size = 10)] The current page size * @param {Array.} [sort] The sort of current page * @param {Array.} [filters] Filters * @return {Promise} */ listAllKeysWithHttpInfo(tenant: string, opts: any): Promise; /** * List all keys * @param {String} tenant * @param {Object} [opts] Optional parameters * @param {Number} [opts.page (default to 1)] The current page * @param {Number} [opts.size (default to 10)] The current page size * @param {Array.} [opts.sort] The sort of current page * @param {Array.} [opts.filters] Filters * @return {Promise} */ listAllKeys(tenant: string, opts?: { page?: number; size?: number; sort?: Array; filters?: Array; }): Promise; /** * List all keys for a namespace * @param {String} namespace The namespace id * @param {String} tenant * @return {Promise>} */ listKeysWithHttpInfo(namespace: string, tenant: string): Promise>; /** * List all keys for a namespace * @param {String} namespace The namespace id * @param {String} tenant * @return {Promise>} */ listKeys(namespace: string, tenant: string): Promise>; /** * List all keys for inherited namespaces * @param {String} namespace The namespace id * @param {String} tenant * @return {Promise>} */ listKeysWithInheritenceWithHttpInfo(namespace: string, tenant: string): Promise>; /** * List all keys for inherited namespaces * @param {String} namespace The namespace id * @param {String} tenant * @return {Promise>} */ listKeysWithInheritence(namespace: string, tenant: string): Promise>; /** * Puts a key-value pair in store * @param {String} namespace The namespace id * @param {String} key The key * @param {String} tenant * @param {String} body The value of the key * @return {Promise< >} */ setKeyValueWithHttpInfo(namespace: string, key: string, tenant: string, body: string): Promise; /** * Puts a key-value pair in store * @param {String} namespace The namespace id * @param {String} key The key * @param {String} tenant * @param {String} body The value of the key * @return {Promise< >} */ setKeyValue(namespace: string, key: string, tenant: string, body: string): Promise; } //#endregion export { KVApi as default };