@dexto/storage 1.6.10 → 1.6.11
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/schemas.d.cts +28 -28
- package/package.json +2 -2
package/dist/schemas.d.cts
CHANGED
|
@@ -11,16 +11,16 @@ declare const InMemoryCacheSchema: z.ZodObject<{
|
|
|
11
11
|
type: z.ZodLiteral<"in-memory">;
|
|
12
12
|
}, "strict", z.ZodTypeAny, {
|
|
13
13
|
type: "in-memory";
|
|
14
|
+
options?: Record<string, unknown> | undefined;
|
|
14
15
|
maxConnections?: number | undefined;
|
|
15
16
|
idleTimeoutMillis?: number | undefined;
|
|
16
17
|
connectionTimeoutMillis?: number | undefined;
|
|
17
|
-
options?: Record<string, unknown> | undefined;
|
|
18
18
|
}, {
|
|
19
19
|
type: "in-memory";
|
|
20
|
+
options?: Record<string, unknown> | undefined;
|
|
20
21
|
maxConnections?: number | undefined;
|
|
21
22
|
idleTimeoutMillis?: number | undefined;
|
|
22
23
|
connectionTimeoutMillis?: number | undefined;
|
|
23
|
-
options?: Record<string, unknown> | undefined;
|
|
24
24
|
}>;
|
|
25
25
|
type InMemoryCacheConfig = z.output<typeof InMemoryCacheSchema>;
|
|
26
26
|
declare const RedisCacheSchema: z.ZodEffects<z.ZodObject<{
|
|
@@ -37,48 +37,48 @@ declare const RedisCacheSchema: z.ZodEffects<z.ZodObject<{
|
|
|
37
37
|
database: z.ZodOptional<z.ZodNumber>;
|
|
38
38
|
}, "strict", z.ZodTypeAny, {
|
|
39
39
|
type: "redis";
|
|
40
|
+
options?: Record<string, unknown> | undefined;
|
|
41
|
+
database?: number | undefined;
|
|
40
42
|
maxConnections?: number | undefined;
|
|
41
43
|
idleTimeoutMillis?: number | undefined;
|
|
42
44
|
connectionTimeoutMillis?: number | undefined;
|
|
43
|
-
options?: Record<string, unknown> | undefined;
|
|
44
45
|
url?: string | undefined;
|
|
45
46
|
host?: string | undefined;
|
|
46
47
|
port?: number | undefined;
|
|
47
48
|
password?: string | undefined;
|
|
48
|
-
database?: number | undefined;
|
|
49
49
|
}, {
|
|
50
50
|
type: "redis";
|
|
51
|
+
options?: Record<string, unknown> | undefined;
|
|
52
|
+
database?: number | undefined;
|
|
51
53
|
maxConnections?: number | undefined;
|
|
52
54
|
idleTimeoutMillis?: number | undefined;
|
|
53
55
|
connectionTimeoutMillis?: number | undefined;
|
|
54
|
-
options?: Record<string, unknown> | undefined;
|
|
55
56
|
url?: string | undefined;
|
|
56
57
|
host?: string | undefined;
|
|
57
58
|
port?: number | undefined;
|
|
58
59
|
password?: string | undefined;
|
|
59
|
-
database?: number | undefined;
|
|
60
60
|
}>, {
|
|
61
61
|
type: "redis";
|
|
62
|
+
options?: Record<string, unknown> | undefined;
|
|
63
|
+
database?: number | undefined;
|
|
62
64
|
maxConnections?: number | undefined;
|
|
63
65
|
idleTimeoutMillis?: number | undefined;
|
|
64
66
|
connectionTimeoutMillis?: number | undefined;
|
|
65
|
-
options?: Record<string, unknown> | undefined;
|
|
66
67
|
url?: string | undefined;
|
|
67
68
|
host?: string | undefined;
|
|
68
69
|
port?: number | undefined;
|
|
69
70
|
password?: string | undefined;
|
|
70
|
-
database?: number | undefined;
|
|
71
71
|
}, {
|
|
72
72
|
type: "redis";
|
|
73
|
+
options?: Record<string, unknown> | undefined;
|
|
74
|
+
database?: number | undefined;
|
|
73
75
|
maxConnections?: number | undefined;
|
|
74
76
|
idleTimeoutMillis?: number | undefined;
|
|
75
77
|
connectionTimeoutMillis?: number | undefined;
|
|
76
|
-
options?: Record<string, unknown> | undefined;
|
|
77
78
|
url?: string | undefined;
|
|
78
79
|
host?: string | undefined;
|
|
79
80
|
port?: number | undefined;
|
|
80
81
|
password?: string | undefined;
|
|
81
|
-
database?: number | undefined;
|
|
82
82
|
}>;
|
|
83
83
|
type RedisCacheConfig = z.output<typeof RedisCacheSchema>;
|
|
84
84
|
declare const CacheConfigSchema: z.ZodObject<{
|
|
@@ -101,16 +101,16 @@ declare const InMemoryDatabaseSchema: z.ZodObject<{
|
|
|
101
101
|
type: z.ZodLiteral<"in-memory">;
|
|
102
102
|
}, "strict", z.ZodTypeAny, {
|
|
103
103
|
type: "in-memory";
|
|
104
|
+
options?: Record<string, unknown> | undefined;
|
|
104
105
|
maxConnections?: number | undefined;
|
|
105
106
|
idleTimeoutMillis?: number | undefined;
|
|
106
107
|
connectionTimeoutMillis?: number | undefined;
|
|
107
|
-
options?: Record<string, unknown> | undefined;
|
|
108
108
|
}, {
|
|
109
109
|
type: "in-memory";
|
|
110
|
+
options?: Record<string, unknown> | undefined;
|
|
110
111
|
maxConnections?: number | undefined;
|
|
111
112
|
idleTimeoutMillis?: number | undefined;
|
|
112
113
|
connectionTimeoutMillis?: number | undefined;
|
|
113
|
-
options?: Record<string, unknown> | undefined;
|
|
114
114
|
}>;
|
|
115
115
|
type InMemoryDatabaseConfig = z.output<typeof InMemoryDatabaseSchema>;
|
|
116
116
|
declare const SqliteDatabaseSchema: z.ZodObject<{
|
|
@@ -122,19 +122,19 @@ declare const SqliteDatabaseSchema: z.ZodObject<{
|
|
|
122
122
|
type: z.ZodLiteral<"sqlite">;
|
|
123
123
|
path: z.ZodString;
|
|
124
124
|
}, "strict", z.ZodTypeAny, {
|
|
125
|
-
path: string;
|
|
126
125
|
type: "sqlite";
|
|
126
|
+
path: string;
|
|
127
|
+
options?: Record<string, unknown> | undefined;
|
|
127
128
|
maxConnections?: number | undefined;
|
|
128
129
|
idleTimeoutMillis?: number | undefined;
|
|
129
130
|
connectionTimeoutMillis?: number | undefined;
|
|
130
|
-
options?: Record<string, unknown> | undefined;
|
|
131
131
|
}, {
|
|
132
|
-
path: string;
|
|
133
132
|
type: "sqlite";
|
|
133
|
+
path: string;
|
|
134
|
+
options?: Record<string, unknown> | undefined;
|
|
134
135
|
maxConnections?: number | undefined;
|
|
135
136
|
idleTimeoutMillis?: number | undefined;
|
|
136
137
|
connectionTimeoutMillis?: number | undefined;
|
|
137
|
-
options?: Record<string, unknown> | undefined;
|
|
138
138
|
}>;
|
|
139
139
|
type SqliteDatabaseConfig = z.output<typeof SqliteDatabaseSchema>;
|
|
140
140
|
declare const PostgresDatabaseSchema: z.ZodEffects<z.ZodObject<{
|
|
@@ -153,54 +153,54 @@ declare const PostgresDatabaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
153
153
|
keyPrefix: z.ZodOptional<z.ZodString>;
|
|
154
154
|
}, "strict", z.ZodTypeAny, {
|
|
155
155
|
type: "postgres";
|
|
156
|
+
options?: Record<string, unknown> | undefined;
|
|
157
|
+
database?: string | undefined;
|
|
156
158
|
maxConnections?: number | undefined;
|
|
157
159
|
idleTimeoutMillis?: number | undefined;
|
|
158
160
|
connectionTimeoutMillis?: number | undefined;
|
|
159
|
-
options?: Record<string, unknown> | undefined;
|
|
160
161
|
url?: string | undefined;
|
|
161
162
|
host?: string | undefined;
|
|
162
163
|
port?: number | undefined;
|
|
163
164
|
password?: string | undefined;
|
|
164
|
-
database?: string | undefined;
|
|
165
165
|
connectionString?: string | undefined;
|
|
166
166
|
keyPrefix?: string | undefined;
|
|
167
167
|
}, {
|
|
168
168
|
type: "postgres";
|
|
169
|
+
options?: Record<string, unknown> | undefined;
|
|
170
|
+
database?: string | undefined;
|
|
169
171
|
maxConnections?: number | undefined;
|
|
170
172
|
idleTimeoutMillis?: number | undefined;
|
|
171
173
|
connectionTimeoutMillis?: number | undefined;
|
|
172
|
-
options?: Record<string, unknown> | undefined;
|
|
173
174
|
url?: string | undefined;
|
|
174
175
|
host?: string | undefined;
|
|
175
176
|
port?: number | undefined;
|
|
176
177
|
password?: string | undefined;
|
|
177
|
-
database?: string | undefined;
|
|
178
178
|
connectionString?: string | undefined;
|
|
179
179
|
keyPrefix?: string | undefined;
|
|
180
180
|
}>, {
|
|
181
181
|
type: "postgres";
|
|
182
|
+
options?: Record<string, unknown> | undefined;
|
|
183
|
+
database?: string | undefined;
|
|
182
184
|
maxConnections?: number | undefined;
|
|
183
185
|
idleTimeoutMillis?: number | undefined;
|
|
184
186
|
connectionTimeoutMillis?: number | undefined;
|
|
185
|
-
options?: Record<string, unknown> | undefined;
|
|
186
187
|
url?: string | undefined;
|
|
187
188
|
host?: string | undefined;
|
|
188
189
|
port?: number | undefined;
|
|
189
190
|
password?: string | undefined;
|
|
190
|
-
database?: string | undefined;
|
|
191
191
|
connectionString?: string | undefined;
|
|
192
192
|
keyPrefix?: string | undefined;
|
|
193
193
|
}, {
|
|
194
194
|
type: "postgres";
|
|
195
|
+
options?: Record<string, unknown> | undefined;
|
|
196
|
+
database?: string | undefined;
|
|
195
197
|
maxConnections?: number | undefined;
|
|
196
198
|
idleTimeoutMillis?: number | undefined;
|
|
197
199
|
connectionTimeoutMillis?: number | undefined;
|
|
198
|
-
options?: Record<string, unknown> | undefined;
|
|
199
200
|
url?: string | undefined;
|
|
200
201
|
host?: string | undefined;
|
|
201
202
|
port?: number | undefined;
|
|
202
203
|
password?: string | undefined;
|
|
203
|
-
database?: string | undefined;
|
|
204
204
|
connectionString?: string | undefined;
|
|
205
205
|
keyPrefix?: string | undefined;
|
|
206
206
|
}>;
|
|
@@ -329,12 +329,12 @@ declare const StorageSchema: z.ZodBranded<z.ZodObject<{
|
|
|
329
329
|
type: z.ZodString;
|
|
330
330
|
}, z.ZodTypeAny, "passthrough">>;
|
|
331
331
|
}, "strict", z.ZodTypeAny, {
|
|
332
|
-
|
|
332
|
+
cache: {
|
|
333
333
|
type: string;
|
|
334
334
|
} & {
|
|
335
335
|
[k: string]: unknown;
|
|
336
336
|
};
|
|
337
|
-
|
|
337
|
+
database: {
|
|
338
338
|
type: string;
|
|
339
339
|
} & {
|
|
340
340
|
[k: string]: unknown;
|
|
@@ -345,12 +345,12 @@ declare const StorageSchema: z.ZodBranded<z.ZodObject<{
|
|
|
345
345
|
[k: string]: unknown;
|
|
346
346
|
};
|
|
347
347
|
}, {
|
|
348
|
-
|
|
348
|
+
cache: {
|
|
349
349
|
type: string;
|
|
350
350
|
} & {
|
|
351
351
|
[k: string]: unknown;
|
|
352
352
|
};
|
|
353
|
-
|
|
353
|
+
database: {
|
|
354
354
|
type: string;
|
|
355
355
|
} & {
|
|
356
356
|
[k: string]: unknown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexto/storage",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.11",
|
|
4
4
|
"description": "Storage backends and factories for Dexto agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"zod": "^3.25.0",
|
|
24
|
-
"@dexto/core": "1.6.
|
|
24
|
+
"@dexto/core": "1.6.11"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"better-sqlite3": "^11.10.0",
|