@memvid/sdk 2.0.155 → 2.0.157

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts CHANGED
@@ -72,6 +72,8 @@ export interface FindInput {
72
72
  minRelevancy?: number;
73
73
  maxK?: number;
74
74
  adaptiveStrategy?: "relative" | "absolute" | "cliff" | "elbow" | "combined";
75
+ aclContext?: AclContextInput;
76
+ aclEnforcementMode?: AclEnforcementMode;
75
77
  }
76
78
  export interface VecSearchInput {
77
79
  k?: number;
@@ -81,6 +83,8 @@ export interface VecSearchInput {
81
83
  minRelevancy?: number;
82
84
  maxK?: number;
83
85
  adaptiveStrategy?: "relative" | "absolute" | "cliff" | "elbow" | "combined";
86
+ aclContext?: AclContextInput;
87
+ aclEnforcementMode?: AclEnforcementMode;
84
88
  }
85
89
  export interface AskInput {
86
90
  k?: number;
@@ -109,6 +113,32 @@ export interface AskInput {
109
113
  adaptiveStrategy?: "relative" | "absolute" | "cliff" | "elbow" | "combined";
110
114
  /** Include full chunk content in response (default: false) */
111
115
  showChunks?: boolean;
116
+ aclContext?: AclContextInput;
117
+ aclEnforcementMode?: AclEnforcementMode;
118
+ }
119
+ export interface AclContextInput {
120
+ tenantId?: string;
121
+ subjectId?: string;
122
+ roles?: string[];
123
+ groupIds?: string[];
124
+ }
125
+ export type AclEnforcementMode = "audit" | "enforce";
126
+ export interface ApiKeyAclScope {
127
+ tenantId: string | null;
128
+ subjectId: string | null;
129
+ roles: string[];
130
+ groupIds: string[];
131
+ enforcementMode: AclEnforcementMode;
132
+ }
133
+ export interface ResolveAclScopeOptions {
134
+ apiKey?: string;
135
+ dashboardUrl?: string;
136
+ timeoutMs?: number;
137
+ forceRefresh?: boolean;
138
+ }
139
+ export interface AclMetadataOptions {
140
+ visibility?: "auto" | "public" | "restricted";
141
+ policyVersion?: string;
112
142
  }
113
143
  export interface TimelineInput {
114
144
  limit?: number;
@@ -230,6 +260,8 @@ export interface NativeFindOptions {
230
260
  cursor?: string;
231
261
  asOfFrame?: number;
232
262
  asOfTs?: number;
263
+ aclContext?: AclContextInput;
264
+ aclEnforcementMode?: AclEnforcementMode;
233
265
  }
234
266
  export interface NativeVecSearchOptions {
235
267
  k?: number;
@@ -239,6 +271,8 @@ export interface NativeVecSearchOptions {
239
271
  minRelevancy?: number;
240
272
  maxK?: number;
241
273
  adaptiveStrategy?: string;
274
+ aclContext?: AclContextInput;
275
+ aclEnforcementMode?: AclEnforcementMode;
242
276
  }
243
277
  export interface NativeAskOptions {
244
278
  k?: number;
@@ -259,6 +293,8 @@ export interface NativeAskOptions {
259
293
  maxK?: number;
260
294
  adaptiveStrategy?: string;
261
295
  showChunks?: boolean;
296
+ aclContext?: AclContextInput;
297
+ aclEnforcementMode?: AclEnforcementMode;
262
298
  }
263
299
  export interface NativeTimelineOptions {
264
300
  limit?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memvid/sdk",
3
- "version": "2.0.155",
3
+ "version": "2.0.157",
4
4
  "description": "Single-file AI memory system for Node.js. Store, search, and query documents with built-in RAG.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -41,11 +41,11 @@
41
41
  "node": ">=18"
42
42
  },
43
43
  "optionalDependencies": {
44
- "@memvid/sdk-darwin-arm64": "2.0.155",
45
- "@memvid/sdk-darwin-x64": "2.0.155",
46
- "@memvid/sdk-linux-x64-gnu": "2.0.155",
47
- "@memvid/sdk-linux-arm64-gnu": "2.0.155",
48
- "@memvid/sdk-win32-x64-msvc": "2.0.155"
44
+ "@memvid/sdk-darwin-arm64": "2.0.157",
45
+ "@memvid/sdk-darwin-x64": "2.0.157",
46
+ "@memvid/sdk-linux-x64-gnu": "2.0.157",
47
+ "@memvid/sdk-linux-arm64-gnu": "2.0.157",
48
+ "@memvid/sdk-win32-x64-msvc": "2.0.157"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@langchain/core": ">=0.3.0",
@@ -79,6 +79,7 @@
79
79
  "dependencies": {
80
80
  "@ai-sdk/openai": "^1.0.0",
81
81
  "@google/generative-ai": "^0.24.0",
82
+ "@gutenye/ocr-node": "^1.4.8",
82
83
  "@langchain/langgraph": ">=0.2.0",
83
84
  "@langchain/openai": ">=0.3.0",
84
85
  "@llamaindex/core": ">=0.4.0",
@@ -88,7 +89,6 @@
88
89
  "langchain": ">=0.3.0",
89
90
  "llamaindex": ">=0.12.0",
90
91
  "officeparser": "^6.0.2",
91
- "unpdf": "^1.4.0",
92
- "xlsx": "^0.18.5"
92
+ "unpdf": "^1.4.0"
93
93
  }
94
94
  }