import { ExtendedSetOptions, GetOptions, MetadataField, SetOptions } from './types'; type KeySchema = { key: string; }; type KeyValueSchema = KeySchema & { value: T; createdAt?: number; updatedAt?: number; expireTime?: string; }; export type GetRequest = KeySchema & { options?: GetOptions; }; export type GetResponse = KeyValueSchema; export type SetRequest = Pick, 'key' | 'value'> & { options?: ExtendedSetOptions; }; export type SetResponse = KeyValueSchema; export type DeleteRequest = KeySchema; type QueryWhere = { condition: 'BEGINS_WITH'; property: 'key'; values: Array; }; export type QueryRequest = { limit?: number; after?: string; where?: Array; options?: { metadataFields?: Array; }; }; export type QueryResponse = { data: Array>; cursor?: string; }; export type SecretGetRequest = KeySchema & { options?: GetOptions; }; export type SecretGetResponse = KeyValueSchema; export type SecretSetRequest = KeyValueSchema & { options?: ExtendedSetOptions; }; export type SecretDeleteRequest = KeySchema; type EntityKeySchema = { entityName: string; key: string; }; type EntityKeyValueSchema = EntityKeySchema & { value: T; createdAt?: number; updatedAt?: number; expireTime?: string; }; export type EntityGetRequest = EntityKeySchema & { options?: GetOptions; }; export type EntityGetResponse = EntityKeyValueSchema; export type EntitySetRequest = EntityKeyValueSchema & { options?: ExtendedSetOptions; }; export type EntityDeleteRequest = EntityKeySchema; export type EntityQueryFilter = { condition: 'BEGINS_WITH' | 'BETWEEN' | 'CONTAINS' | 'EQUAL_TO' | 'EXISTS' | 'GREATER_THAN' | 'GREATER_THAN_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_EQUAL_TO' | 'NOT_CONTAINS' | 'NOT_EQUAL_TO' | 'NOT_EXISTS'; property: string; values: Array; }; export type EntityQueryFilters = { or?: Array; and?: Array; }; export type EntityQueryRequest = { limit?: number; cursor?: string; range?: { condition: 'BEGINS_WITH' | 'BETWEEN' | 'EQUAL_TO' | 'GREATER_THAN' | 'GREATER_THAN_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_EQUAL_TO'; values: Array; }; filters?: EntityQueryFilters; sort?: 'ASC' | 'DESC'; partition?: Array; entityName: string; indexName: string; metadataFields?: Array; }; export type EntityQueryResponse = { data: Array>; cursor?: string; }; export type TransactionCondition = EntityQueryFilters; export type RequestSet = { key: string; value: T; entityName?: string; conditions?: TransactionCondition; options?: SetOptions; }; export type RequestDelete = { key: string; entityName?: string; conditions?: TransactionCondition; }; export type RequestCheck = { key: string; entityName?: string; conditions: TransactionCondition; }; export type TransactionRequest = { set?: RequestSet[]; delete?: RequestDelete[]; check?: RequestCheck[]; }; export type BatchSetItem = { entityName?: string; key: string; value: T; options?: SetOptions; }; export type BatchSetRequest = Array>; export type BatchSetResponse = { successfulKeys: BatchItemSuccess[]; failedKeys: BatchItemError[]; }; export type BatchDeleteItem = { entityName?: string; key: string; }; export type BatchDeleteRequest = Array; export type BatchDeleteResponse = { successfulKeys: BatchItemSuccess[]; failedKeys: BatchItemError[]; }; export interface BatchGetItemResult { key: string; entityName?: string; value: T; createdAt?: number; updatedAt?: number; expireTime?: string; } export type BatchGetResult = { successfulKeys: Array>; failedKeys: BatchItemError[]; }; export type BatchGetItem = { entityName?: string; key: string; options?: GetOptions; }; export type BatchGetRequest = Array; export type BatchItemSuccess = { key: string; entityName?: string; }; export type BatchItemError = { key: string; entityName?: string; error: { code: string; message: string; }; }; export {}; //# sourceMappingURL=kvs-api.d.ts.map