@dexto/storage 1.6.11 → 1.6.12

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.
Files changed (2) hide show
  1. package/dist/schemas.d.cts +28 -28
  2. package/package.json +2 -2
@@ -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;
15
14
  maxConnections?: number | undefined;
16
15
  idleTimeoutMillis?: number | undefined;
17
16
  connectionTimeoutMillis?: number | undefined;
17
+ options?: Record<string, unknown> | undefined;
18
18
  }, {
19
19
  type: "in-memory";
20
- options?: Record<string, unknown> | undefined;
21
20
  maxConnections?: number | undefined;
22
21
  idleTimeoutMillis?: number | undefined;
23
22
  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;
42
40
  maxConnections?: number | undefined;
43
41
  idleTimeoutMillis?: number | undefined;
44
42
  connectionTimeoutMillis?: number | undefined;
43
+ options?: Record<string, unknown> | undefined;
45
44
  url?: string | undefined;
46
45
  host?: string | undefined;
47
46
  port?: number | undefined;
48
47
  password?: string | undefined;
48
+ database?: number | undefined;
49
49
  }, {
50
50
  type: "redis";
51
- options?: Record<string, unknown> | undefined;
52
- database?: number | undefined;
53
51
  maxConnections?: number | undefined;
54
52
  idleTimeoutMillis?: number | undefined;
55
53
  connectionTimeoutMillis?: number | undefined;
54
+ options?: Record<string, unknown> | undefined;
56
55
  url?: string | undefined;
57
56
  host?: string | undefined;
58
57
  port?: number | undefined;
59
58
  password?: string | undefined;
59
+ database?: number | undefined;
60
60
  }>, {
61
61
  type: "redis";
62
- options?: Record<string, unknown> | undefined;
63
- database?: number | undefined;
64
62
  maxConnections?: number | undefined;
65
63
  idleTimeoutMillis?: number | undefined;
66
64
  connectionTimeoutMillis?: number | undefined;
65
+ options?: Record<string, unknown> | undefined;
67
66
  url?: string | undefined;
68
67
  host?: string | undefined;
69
68
  port?: number | undefined;
70
69
  password?: string | undefined;
70
+ database?: number | undefined;
71
71
  }, {
72
72
  type: "redis";
73
- options?: Record<string, unknown> | undefined;
74
- database?: number | undefined;
75
73
  maxConnections?: number | undefined;
76
74
  idleTimeoutMillis?: number | undefined;
77
75
  connectionTimeoutMillis?: number | undefined;
76
+ options?: Record<string, unknown> | undefined;
78
77
  url?: string | undefined;
79
78
  host?: string | undefined;
80
79
  port?: number | undefined;
81
80
  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;
105
104
  maxConnections?: number | undefined;
106
105
  idleTimeoutMillis?: number | undefined;
107
106
  connectionTimeoutMillis?: number | undefined;
107
+ options?: Record<string, unknown> | undefined;
108
108
  }, {
109
109
  type: "in-memory";
110
- options?: Record<string, unknown> | undefined;
111
110
  maxConnections?: number | undefined;
112
111
  idleTimeoutMillis?: number | undefined;
113
112
  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
- type: "sqlite";
126
125
  path: string;
127
- options?: Record<string, unknown> | undefined;
126
+ type: "sqlite";
128
127
  maxConnections?: number | undefined;
129
128
  idleTimeoutMillis?: number | undefined;
130
129
  connectionTimeoutMillis?: number | undefined;
130
+ options?: Record<string, unknown> | undefined;
131
131
  }, {
132
- type: "sqlite";
133
132
  path: string;
134
- options?: Record<string, unknown> | undefined;
133
+ type: "sqlite";
135
134
  maxConnections?: number | undefined;
136
135
  idleTimeoutMillis?: number | undefined;
137
136
  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;
158
156
  maxConnections?: number | undefined;
159
157
  idleTimeoutMillis?: number | undefined;
160
158
  connectionTimeoutMillis?: number | undefined;
159
+ options?: Record<string, unknown> | undefined;
161
160
  url?: string | undefined;
162
161
  host?: string | undefined;
163
162
  port?: number | undefined;
164
163
  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;
171
169
  maxConnections?: number | undefined;
172
170
  idleTimeoutMillis?: number | undefined;
173
171
  connectionTimeoutMillis?: number | undefined;
172
+ options?: Record<string, unknown> | undefined;
174
173
  url?: string | undefined;
175
174
  host?: string | undefined;
176
175
  port?: number | undefined;
177
176
  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;
184
182
  maxConnections?: number | undefined;
185
183
  idleTimeoutMillis?: number | undefined;
186
184
  connectionTimeoutMillis?: number | undefined;
185
+ options?: Record<string, unknown> | undefined;
187
186
  url?: string | undefined;
188
187
  host?: string | undefined;
189
188
  port?: number | undefined;
190
189
  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;
197
195
  maxConnections?: number | undefined;
198
196
  idleTimeoutMillis?: number | undefined;
199
197
  connectionTimeoutMillis?: number | undefined;
198
+ options?: Record<string, unknown> | undefined;
200
199
  url?: string | undefined;
201
200
  host?: string | undefined;
202
201
  port?: number | undefined;
203
202
  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
- cache: {
332
+ database: {
333
333
  type: string;
334
334
  } & {
335
335
  [k: string]: unknown;
336
336
  };
337
- database: {
337
+ cache: {
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
- cache: {
348
+ database: {
349
349
  type: string;
350
350
  } & {
351
351
  [k: string]: unknown;
352
352
  };
353
- database: {
353
+ cache: {
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.11",
3
+ "version": "1.6.12",
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.11"
24
+ "@dexto/core": "1.6.12"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "better-sqlite3": "^11.10.0",