npm package diff
Package: @forge/kvs
Versions: 1.0.9-next.0 - 1.1.0-next.1
File: package/out/interfaces/kvs-api.d.ts
Index: package/out/interfaces/kvs-api.d.ts
===================================================================
--- package/out/interfaces/kvs-api.d.ts
+++ package/out/interfaces/kvs-api.d.ts
@@ -1,11 +1,16 @@
+import { GetOptions } from './types';
 declare type KeySchema = {
     key: string;
 };
 declare type KeyValueSchema<T> = KeySchema & {
     value: T;
+    createdAt?: number;
+    updatedAt?: number;
 };
-export declare type GetRequest = KeySchema;
+export declare type GetRequest = KeySchema & {
+    options?: GetOptions;
+};
 export declare type GetResponse<T> = KeyValueSchema<T>;
 export declare type SetRequest<T> = KeyValueSchema<T>;
 export declare type SetResponse = void;
 export declare type DeleteRequest = KeySchema;
@@ -23,9 +28,11 @@
 export declare type QueryResponse<T> = {
     data: Array<KeyValueSchema<T>>;
     cursor?: string;
 };
-export declare type SecretGetRequest = KeySchema;
+export declare type SecretGetRequest = KeySchema & {
+    options?: GetOptions;
+};
 export declare type SecretGetResponse<T> = KeyValueSchema<T>;
 export declare type SecretSetRequest<T> = KeyValueSchema<T>;
 export declare type SecretSetResponse = void;
 export declare type SecretDeleteRequest = KeySchema;
@@ -35,10 +42,14 @@
     key: string;
 };
 declare type EntityKeyValueSchema<T> = EntityKeySchema & {
     value: T;
+    createdAt?: number;
+    updatedAt?: number;
 };
-export declare type EntityGetRequest = EntityKeySchema;
+export declare type EntityGetRequest = EntityKeySchema & {
+    options?: GetOptions;
+};
 export declare type EntityGetResponse<T> = EntityKeyValueSchema<T>;
 export declare type EntitySetRequest<T> = EntityKeyValueSchema<T>;
 export declare type EntitySetResponse = void;
 export declare type EntityDeleteRequest = EntityKeySchema;