@scayle/storefront-nuxt 8.11.2 → 8.11.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 8.11.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependency `jose@^5.2.0` to `jose@^6.0.8`
8
+ - Updated dependency `schema-dts@1.1.2` to `schema-dts@1.1.5`
9
+
10
+ **Dependencies**
11
+
12
+ - Updated dependency to @scayle/storefront-core@8.11.2
13
+
14
+ ## 8.11.3
15
+
16
+ ### Patch Changes
17
+
18
+ - Support `@scayle/unstorage-scayle-kv-driver` for caching.
19
+
20
+ **Dependencies**
21
+
22
+ - Updated dependency to @scayle/storefront-core@8.11.1
23
+
3
24
  ## 8.11.2
4
25
 
5
26
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { d as AdditionalShopConfig, A as AppKeys, h as CheckoutEvent, C as CheckoutShopConfig, M as ModuleBaseOptions, i as ModulePublicRuntimeConfig, P as PublicShopConfig, c as SapiConfig, S as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, b as StorageConfig, a as StorageEntity, g as StorefrontConfig } from './shared/storefront-nuxt.b72fefd0.mjs';
1
+ export { d as AdditionalShopConfig, A as AppKeys, i as CheckoutEvent, C as CheckoutShopConfig, M as ModuleBaseOptions, j as ModulePublicRuntimeConfig, P as PublicShopConfig, c as SapiConfig, S as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, b as StorageConfig, a as StorageEntity, g as StorefrontConfig, h as SupportedDriverName } from './shared/storefront-nuxt.d0683fc1.mjs';
2
2
  export { ModuleHooks } from './module.mjs';
3
3
  export { rpcCall } from '../dist/runtime/rpc/rpcCall.js';
4
4
  export { extendPromise } from '../dist/runtime/utils/promise.js';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { d as AdditionalShopConfig, A as AppKeys, h as CheckoutEvent, C as CheckoutShopConfig, M as ModuleBaseOptions, i as ModulePublicRuntimeConfig, P as PublicShopConfig, c as SapiConfig, S as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, b as StorageConfig, a as StorageEntity, g as StorefrontConfig } from './shared/storefront-nuxt.b72fefd0.js';
1
+ export { d as AdditionalShopConfig, A as AppKeys, i as CheckoutEvent, C as CheckoutShopConfig, M as ModuleBaseOptions, j as ModulePublicRuntimeConfig, P as PublicShopConfig, c as SapiConfig, S as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, b as StorageConfig, a as StorageEntity, g as StorefrontConfig, h as SupportedDriverName } from './shared/storefront-nuxt.d0683fc1.js';
2
2
  export { ModuleHooks } from './module.js';
3
3
  export { rpcCall } from '../dist/runtime/rpc/rpcCall.js';
4
4
  export { extendPromise } from '../dist/runtime/utils/promise.js';
package/dist/module.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
2
  import { HookResult } from '@nuxt/schema';
3
- import { M as ModuleBaseOptions } from './shared/storefront-nuxt.b72fefd0.mjs';
4
- export { d as AdditionalShopConfig, A as AppKeys, h as CheckoutEvent, C as CheckoutShopConfig, i as ModulePublicRuntimeConfig, P as PublicShopConfig, c as SapiConfig, S as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, b as StorageConfig, a as StorageEntity, g as StorefrontConfig } from './shared/storefront-nuxt.b72fefd0.mjs';
3
+ import { M as ModuleBaseOptions } from './shared/storefront-nuxt.d0683fc1.mjs';
4
+ export { d as AdditionalShopConfig, A as AppKeys, i as CheckoutEvent, C as CheckoutShopConfig, j as ModulePublicRuntimeConfig, P as PublicShopConfig, c as SapiConfig, S as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, b as StorageConfig, a as StorageEntity, g as StorefrontConfig, h as SupportedDriverName } from './shared/storefront-nuxt.d0683fc1.mjs';
5
5
  export { LogLevel } from '@scayle/storefront-core';
6
6
  import '@scayle/unstorage-compression-driver';
7
7
  import 'unstorage';
package/dist/module.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
2
  import { HookResult } from '@nuxt/schema';
3
- import { M as ModuleBaseOptions } from './shared/storefront-nuxt.b72fefd0.js';
4
- export { d as AdditionalShopConfig, A as AppKeys, h as CheckoutEvent, C as CheckoutShopConfig, i as ModulePublicRuntimeConfig, P as PublicShopConfig, c as SapiConfig, S as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, b as StorageConfig, a as StorageEntity, g as StorefrontConfig } from './shared/storefront-nuxt.b72fefd0.js';
3
+ import { M as ModuleBaseOptions } from './shared/storefront-nuxt.d0683fc1.js';
4
+ export { d as AdditionalShopConfig, A as AppKeys, i as CheckoutEvent, C as CheckoutShopConfig, j as ModulePublicRuntimeConfig, P as PublicShopConfig, c as SapiConfig, S as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, b as StorageConfig, a as StorageEntity, g as StorefrontConfig, h as SupportedDriverName } from './shared/storefront-nuxt.d0683fc1.js';
5
5
  export { LogLevel } from '@scayle/storefront-core';
6
6
  import '@scayle/unstorage-compression-driver';
7
7
  import 'unstorage';
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
- "version": "8.11.2",
3
+ "version": "8.11.4",
4
4
  "configKey": "storefront",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.9.0"
package/dist/module.mjs CHANGED
@@ -34,19 +34,26 @@ function createVirtualDriverImport(usedDrivers) {
34
34
  process.env.SFC_OMIT_COMPRESSION,
35
35
  false
36
36
  );
37
- return `${usedDrivers.map(
37
+ const isScaleKvUsed = usedDrivers.includes("scayleKv");
38
+ const isUnstorageDriver = (driver) => driver in builtinDrivers;
39
+ return `${usedDrivers.filter(isUnstorageDriver).map(
38
40
  (driver) => genImport(builtinDrivers[driver], genSafeVariableName(driver))
39
41
  ).join("\n")}
40
42
 
43
+ ${isScaleKvUsed ? genImport("@scayle/unstorage-scayle-kv-driver", "scayleKv") : ""}
44
+
41
45
  ${usesCompression ? genImport("@scayle/unstorage-compression-driver", "compression") : ""}
42
46
 
47
+
43
48
  export default {
44
49
  ${usedDrivers.map((driver) => '"' + driver + '":' + genSafeVariableName(driver) + ",").join("\n")}
45
- ${usesCompression ? "compression" : ""}
50
+
51
+ ${isScaleKvUsed ? "scayleKv," : ""}
52
+ ${usesCompression ? "compression" : ""}
46
53
  }`;
47
54
  }
48
55
  const PACKAGE_NAME = "@scayle/storefront-nuxt";
49
- const PACKAGE_VERSION = "8.11.2";
56
+ const PACKAGE_VERSION = "8.11.4";
50
57
  const logger = createConsola({
51
58
  fancy: true,
52
59
  formatOptions: {
@@ -4,8 +4,8 @@ import { useStorage } from "nitropack/runtime/storage";
4
4
  export const STORAGE_MOUNT_BASE = "storefront";
5
5
  export const STORAGE_MOUNT_CACHE = `${STORAGE_MOUNT_BASE}-cache`;
6
6
  export const STORAGE_MOUNT_SESSION = `${STORAGE_MOUNT_BASE}-session`;
7
- function checkInMemoryProviderAndShowWarning(provider, mountpoint, log) {
8
- if (!provider || provider !== "memory") {
7
+ function checkInMemoryProviderAndShowWarning(driver, mountpoint, log) {
8
+ if (!driver || driver.name !== "memory" && driver.name !== "compression" || driver.name === "compression" && driver.options.passthroughDriver.name !== "memory") {
9
9
  return;
10
10
  }
11
11
  log.warn(
@@ -16,10 +16,11 @@ export function useCacheStorage(prefix, shopId, log) {
16
16
  const storageBase = STORAGE_MOUNT_CACHE;
17
17
  const mountPoint = `${storageBase}:${shopId}`;
18
18
  const storage = useStorage(mountPoint);
19
- const provider = storage.getMount(mountPoint)?.driver.name;
20
- checkInMemoryProviderAndShowWarning(provider, mountPoint, log);
19
+ const driver = storage.getMount(mountPoint)?.driver;
20
+ checkInMemoryProviderAndShowWarning(driver, mountPoint, log);
21
+ const driverName = driver.name === "compression" ? `'${driver?.options?.passthroughDriver?.name}' with compression` : `'${driver.name}'`;
21
22
  log.debug(
22
- `Using '${provider}' on mount '${mountPoint}' as cache storage driver`
23
+ `Using ${driverName} on mount '${mountPoint}' as cache storage driver`
23
24
  );
24
25
  return new UnstorageCache(storage, prefix);
25
26
  }
@@ -27,11 +28,12 @@ export function useSessionStorage(sessionConfig, shopId, log) {
27
28
  const storageBase = STORAGE_MOUNT_SESSION;
28
29
  const mountPoint = `${storageBase}:${shopId}`;
29
30
  const storage = useStorage(mountPoint);
30
- const provider = storage.getMount(mountPoint)?.driver.name;
31
+ const driver = storage.getMount(mountPoint)?.driver;
31
32
  const ttl = sessionConfig?.maxAge ?? 60 * 60 * 24;
32
- checkInMemoryProviderAndShowWarning(provider, mountPoint, log);
33
+ checkInMemoryProviderAndShowWarning(driver, mountPoint, log);
34
+ const driverName = driver.name === "compression" ? `'${driver?.options?.passthroughDriver?.name}' with compression` : `'${driver?.name}'`;
33
35
  log.debug(
34
- `Using '${provider}' on mount '${mountPoint}' as session storage driver`
36
+ `Using ${driverName} on mount '${mountPoint}' as session storage driver`
35
37
  );
36
38
  return new UnstorageSessionStore(storage, { ttl });
37
39
  }
@@ -69,7 +69,7 @@ declare const IdpSchema: z.ZodObject<{
69
69
  idpKeys: string[];
70
70
  idpRedirectURL: string;
71
71
  }>;
72
- declare const StorageSchema: z.ZodObject<{
72
+ declare const StorageSchema: z.ZodDiscriminatedUnion<"driver", [z.ZodObject<{
73
73
  driver: z.ZodEnum<[BuiltinDriverName, ...BuiltinDriverName[]]>;
74
74
  compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
75
75
  url: z.ZodOptional<z.ZodString>;
@@ -102,7 +102,22 @@ declare const StorageSchema: z.ZodObject<{
102
102
  username?: string | undefined;
103
103
  password?: string | undefined;
104
104
  tls?: boolean | undefined;
105
- }>;
105
+ }>, z.ZodObject<{
106
+ driver: z.ZodLiteral<"scayleKv">;
107
+ compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
108
+ ttl: z.ZodOptional<z.ZodNumber>;
109
+ disableClusterMode: z.ZodOptional<z.ZodBoolean>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ driver: "scayleKv";
112
+ ttl?: number | undefined;
113
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
114
+ disableClusterMode?: boolean | undefined;
115
+ }, {
116
+ driver: "scayleKv";
117
+ ttl?: number | undefined;
118
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
119
+ disableClusterMode?: boolean | undefined;
120
+ }>]>;
106
121
  declare const CheckoutShopConfigSchema: z.ZodObject<{
107
122
  token: z.ZodString;
108
123
  secret: z.ZodString;
@@ -234,7 +249,7 @@ declare const ShopConfigSchema: z.ZodObject<{
234
249
  token: string;
235
250
  }>>;
236
251
  storage: z.ZodOptional<z.ZodObject<{
237
- session: z.ZodOptional<z.ZodObject<{
252
+ session: z.ZodOptional<z.ZodDiscriminatedUnion<"driver", [z.ZodObject<{
238
253
  driver: z.ZodEnum<[BuiltinDriverName, ...BuiltinDriverName[]]>;
239
254
  compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
240
255
  url: z.ZodOptional<z.ZodString>;
@@ -267,8 +282,23 @@ declare const ShopConfigSchema: z.ZodObject<{
267
282
  username?: string | undefined;
268
283
  password?: string | undefined;
269
284
  tls?: boolean | undefined;
270
- }>>;
271
- cache: z.ZodOptional<z.ZodObject<{
285
+ }>, z.ZodObject<{
286
+ driver: z.ZodLiteral<"scayleKv">;
287
+ compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
288
+ ttl: z.ZodOptional<z.ZodNumber>;
289
+ disableClusterMode: z.ZodOptional<z.ZodBoolean>;
290
+ }, "strip", z.ZodTypeAny, {
291
+ driver: "scayleKv";
292
+ ttl?: number | undefined;
293
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
294
+ disableClusterMode?: boolean | undefined;
295
+ }, {
296
+ driver: "scayleKv";
297
+ ttl?: number | undefined;
298
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
299
+ disableClusterMode?: boolean | undefined;
300
+ }>]>>;
301
+ cache: z.ZodOptional<z.ZodDiscriminatedUnion<"driver", [z.ZodObject<{
272
302
  driver: z.ZodEnum<[BuiltinDriverName, ...BuiltinDriverName[]]>;
273
303
  compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
274
304
  url: z.ZodOptional<z.ZodString>;
@@ -301,9 +331,29 @@ declare const ShopConfigSchema: z.ZodObject<{
301
331
  username?: string | undefined;
302
332
  password?: string | undefined;
303
333
  tls?: boolean | undefined;
304
- }>>;
334
+ }>, z.ZodObject<{
335
+ driver: z.ZodLiteral<"scayleKv">;
336
+ compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
337
+ ttl: z.ZodOptional<z.ZodNumber>;
338
+ disableClusterMode: z.ZodOptional<z.ZodBoolean>;
339
+ }, "strip", z.ZodTypeAny, {
340
+ driver: "scayleKv";
341
+ ttl?: number | undefined;
342
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
343
+ disableClusterMode?: boolean | undefined;
344
+ }, {
345
+ driver: "scayleKv";
346
+ ttl?: number | undefined;
347
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
348
+ disableClusterMode?: boolean | undefined;
349
+ }>]>>;
305
350
  }, "strip", z.ZodTypeAny, {
306
351
  session?: {
352
+ driver: "scayleKv";
353
+ ttl?: number | undefined;
354
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
355
+ disableClusterMode?: boolean | undefined;
356
+ } | {
307
357
  driver: BuiltinDriverName;
308
358
  ttl?: number | undefined;
309
359
  host?: string | undefined;
@@ -316,6 +366,11 @@ declare const ShopConfigSchema: z.ZodObject<{
316
366
  tls?: boolean | undefined;
317
367
  } | undefined;
318
368
  cache?: {
369
+ driver: "scayleKv";
370
+ ttl?: number | undefined;
371
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
372
+ disableClusterMode?: boolean | undefined;
373
+ } | {
319
374
  driver: BuiltinDriverName;
320
375
  ttl?: number | undefined;
321
376
  host?: string | undefined;
@@ -329,6 +384,11 @@ declare const ShopConfigSchema: z.ZodObject<{
329
384
  } | undefined;
330
385
  }, {
331
386
  session?: {
387
+ driver: "scayleKv";
388
+ ttl?: number | undefined;
389
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
390
+ disableClusterMode?: boolean | undefined;
391
+ } | {
332
392
  driver: BuiltinDriverName;
333
393
  ttl?: number | undefined;
334
394
  host?: string | undefined;
@@ -341,6 +401,11 @@ declare const ShopConfigSchema: z.ZodObject<{
341
401
  tls?: boolean | undefined;
342
402
  } | undefined;
343
403
  cache?: {
404
+ driver: "scayleKv";
405
+ ttl?: number | undefined;
406
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
407
+ disableClusterMode?: boolean | undefined;
408
+ } | {
344
409
  driver: BuiltinDriverName;
345
410
  ttl?: number | undefined;
346
411
  host?: string | undefined;
@@ -396,6 +461,11 @@ declare const ShopConfigSchema: z.ZodObject<{
396
461
  } | undefined;
397
462
  storage?: {
398
463
  session?: {
464
+ driver: "scayleKv";
465
+ ttl?: number | undefined;
466
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
467
+ disableClusterMode?: boolean | undefined;
468
+ } | {
399
469
  driver: BuiltinDriverName;
400
470
  ttl?: number | undefined;
401
471
  host?: string | undefined;
@@ -408,6 +478,11 @@ declare const ShopConfigSchema: z.ZodObject<{
408
478
  tls?: boolean | undefined;
409
479
  } | undefined;
410
480
  cache?: {
481
+ driver: "scayleKv";
482
+ ttl?: number | undefined;
483
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
484
+ disableClusterMode?: boolean | undefined;
485
+ } | {
411
486
  driver: BuiltinDriverName;
412
487
  ttl?: number | undefined;
413
488
  host?: string | undefined;
@@ -463,6 +538,11 @@ declare const ShopConfigSchema: z.ZodObject<{
463
538
  } | undefined;
464
539
  storage?: {
465
540
  session?: {
541
+ driver: "scayleKv";
542
+ ttl?: number | undefined;
543
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
544
+ disableClusterMode?: boolean | undefined;
545
+ } | {
466
546
  driver: BuiltinDriverName;
467
547
  ttl?: number | undefined;
468
548
  host?: string | undefined;
@@ -475,6 +555,11 @@ declare const ShopConfigSchema: z.ZodObject<{
475
555
  tls?: boolean | undefined;
476
556
  } | undefined;
477
557
  cache?: {
558
+ driver: "scayleKv";
559
+ ttl?: number | undefined;
560
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
561
+ disableClusterMode?: boolean | undefined;
562
+ } | {
478
563
  driver: BuiltinDriverName;
479
564
  ttl?: number | undefined;
480
565
  host?: string | undefined;
@@ -528,7 +613,7 @@ declare const StorefrontConfigSchema: z.ZodObject<{
528
613
  secret?: string | string[] | undefined;
529
614
  }>>;
530
615
  storage: z.ZodOptional<z.ZodObject<{
531
- session: z.ZodOptional<z.ZodObject<{
616
+ session: z.ZodOptional<z.ZodDiscriminatedUnion<"driver", [z.ZodObject<{
532
617
  driver: z.ZodEnum<[BuiltinDriverName, ...BuiltinDriverName[]]>;
533
618
  compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
534
619
  url: z.ZodOptional<z.ZodString>;
@@ -561,8 +646,23 @@ declare const StorefrontConfigSchema: z.ZodObject<{
561
646
  username?: string | undefined;
562
647
  password?: string | undefined;
563
648
  tls?: boolean | undefined;
564
- }>>;
565
- cache: z.ZodOptional<z.ZodObject<{
649
+ }>, z.ZodObject<{
650
+ driver: z.ZodLiteral<"scayleKv">;
651
+ compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
652
+ ttl: z.ZodOptional<z.ZodNumber>;
653
+ disableClusterMode: z.ZodOptional<z.ZodBoolean>;
654
+ }, "strip", z.ZodTypeAny, {
655
+ driver: "scayleKv";
656
+ ttl?: number | undefined;
657
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
658
+ disableClusterMode?: boolean | undefined;
659
+ }, {
660
+ driver: "scayleKv";
661
+ ttl?: number | undefined;
662
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
663
+ disableClusterMode?: boolean | undefined;
664
+ }>]>>;
665
+ cache: z.ZodOptional<z.ZodDiscriminatedUnion<"driver", [z.ZodObject<{
566
666
  driver: z.ZodEnum<[BuiltinDriverName, ...BuiltinDriverName[]]>;
567
667
  compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
568
668
  url: z.ZodOptional<z.ZodString>;
@@ -595,9 +695,29 @@ declare const StorefrontConfigSchema: z.ZodObject<{
595
695
  username?: string | undefined;
596
696
  password?: string | undefined;
597
697
  tls?: boolean | undefined;
598
- }>>;
698
+ }>, z.ZodObject<{
699
+ driver: z.ZodLiteral<"scayleKv">;
700
+ compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
701
+ ttl: z.ZodOptional<z.ZodNumber>;
702
+ disableClusterMode: z.ZodOptional<z.ZodBoolean>;
703
+ }, "strip", z.ZodTypeAny, {
704
+ driver: "scayleKv";
705
+ ttl?: number | undefined;
706
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
707
+ disableClusterMode?: boolean | undefined;
708
+ }, {
709
+ driver: "scayleKv";
710
+ ttl?: number | undefined;
711
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
712
+ disableClusterMode?: boolean | undefined;
713
+ }>]>>;
599
714
  }, "strip", z.ZodTypeAny, {
600
715
  session?: {
716
+ driver: "scayleKv";
717
+ ttl?: number | undefined;
718
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
719
+ disableClusterMode?: boolean | undefined;
720
+ } | {
601
721
  driver: BuiltinDriverName;
602
722
  ttl?: number | undefined;
603
723
  host?: string | undefined;
@@ -610,6 +730,11 @@ declare const StorefrontConfigSchema: z.ZodObject<{
610
730
  tls?: boolean | undefined;
611
731
  } | undefined;
612
732
  cache?: {
733
+ driver: "scayleKv";
734
+ ttl?: number | undefined;
735
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
736
+ disableClusterMode?: boolean | undefined;
737
+ } | {
613
738
  driver: BuiltinDriverName;
614
739
  ttl?: number | undefined;
615
740
  host?: string | undefined;
@@ -623,6 +748,11 @@ declare const StorefrontConfigSchema: z.ZodObject<{
623
748
  } | undefined;
624
749
  }, {
625
750
  session?: {
751
+ driver: "scayleKv";
752
+ ttl?: number | undefined;
753
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
754
+ disableClusterMode?: boolean | undefined;
755
+ } | {
626
756
  driver: BuiltinDriverName;
627
757
  ttl?: number | undefined;
628
758
  host?: string | undefined;
@@ -635,6 +765,11 @@ declare const StorefrontConfigSchema: z.ZodObject<{
635
765
  tls?: boolean | undefined;
636
766
  } | undefined;
637
767
  cache?: {
768
+ driver: "scayleKv";
769
+ ttl?: number | undefined;
770
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
771
+ disableClusterMode?: boolean | undefined;
772
+ } | {
638
773
  driver: BuiltinDriverName;
639
774
  ttl?: number | undefined;
640
775
  host?: string | undefined;
@@ -770,6 +905,11 @@ declare const StorefrontConfigSchema: z.ZodObject<{
770
905
  } | undefined;
771
906
  storage?: {
772
907
  session?: {
908
+ driver: "scayleKv";
909
+ ttl?: number | undefined;
910
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
911
+ disableClusterMode?: boolean | undefined;
912
+ } | {
773
913
  driver: BuiltinDriverName;
774
914
  ttl?: number | undefined;
775
915
  host?: string | undefined;
@@ -782,6 +922,11 @@ declare const StorefrontConfigSchema: z.ZodObject<{
782
922
  tls?: boolean | undefined;
783
923
  } | undefined;
784
924
  cache?: {
925
+ driver: "scayleKv";
926
+ ttl?: number | undefined;
927
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
928
+ disableClusterMode?: boolean | undefined;
929
+ } | {
785
930
  driver: BuiltinDriverName;
786
931
  ttl?: number | undefined;
787
932
  host?: string | undefined;
@@ -836,6 +981,11 @@ declare const StorefrontConfigSchema: z.ZodObject<{
836
981
  } | undefined;
837
982
  storage?: {
838
983
  session?: {
984
+ driver: "scayleKv";
985
+ ttl?: number | undefined;
986
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
987
+ disableClusterMode?: boolean | undefined;
988
+ } | {
839
989
  driver: BuiltinDriverName;
840
990
  ttl?: number | undefined;
841
991
  host?: string | undefined;
@@ -848,6 +998,11 @@ declare const StorefrontConfigSchema: z.ZodObject<{
848
998
  tls?: boolean | undefined;
849
999
  } | undefined;
850
1000
  cache?: {
1001
+ driver: "scayleKv";
1002
+ ttl?: number | undefined;
1003
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1004
+ disableClusterMode?: boolean | undefined;
1005
+ } | {
851
1006
  driver: BuiltinDriverName;
852
1007
  ttl?: number | undefined;
853
1008
  host?: string | undefined;
@@ -1024,7 +1179,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1024
1179
  token: string;
1025
1180
  }>>;
1026
1181
  storage: z.ZodOptional<z.ZodObject<{
1027
- session: z.ZodOptional<z.ZodObject<{
1182
+ session: z.ZodOptional<z.ZodDiscriminatedUnion<"driver", [z.ZodObject<{
1028
1183
  driver: z.ZodEnum<[BuiltinDriverName, ...BuiltinDriverName[]]>;
1029
1184
  compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
1030
1185
  url: z.ZodOptional<z.ZodString>;
@@ -1057,8 +1212,23 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1057
1212
  username?: string | undefined;
1058
1213
  password?: string | undefined;
1059
1214
  tls?: boolean | undefined;
1060
- }>>;
1061
- cache: z.ZodOptional<z.ZodObject<{
1215
+ }>, z.ZodObject<{
1216
+ driver: z.ZodLiteral<"scayleKv">;
1217
+ compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
1218
+ ttl: z.ZodOptional<z.ZodNumber>;
1219
+ disableClusterMode: z.ZodOptional<z.ZodBoolean>;
1220
+ }, "strip", z.ZodTypeAny, {
1221
+ driver: "scayleKv";
1222
+ ttl?: number | undefined;
1223
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1224
+ disableClusterMode?: boolean | undefined;
1225
+ }, {
1226
+ driver: "scayleKv";
1227
+ ttl?: number | undefined;
1228
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1229
+ disableClusterMode?: boolean | undefined;
1230
+ }>]>>;
1231
+ cache: z.ZodOptional<z.ZodDiscriminatedUnion<"driver", [z.ZodObject<{
1062
1232
  driver: z.ZodEnum<[BuiltinDriverName, ...BuiltinDriverName[]]>;
1063
1233
  compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
1064
1234
  url: z.ZodOptional<z.ZodString>;
@@ -1091,9 +1261,29 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1091
1261
  username?: string | undefined;
1092
1262
  password?: string | undefined;
1093
1263
  tls?: boolean | undefined;
1094
- }>>;
1264
+ }>, z.ZodObject<{
1265
+ driver: z.ZodLiteral<"scayleKv">;
1266
+ compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
1267
+ ttl: z.ZodOptional<z.ZodNumber>;
1268
+ disableClusterMode: z.ZodOptional<z.ZodBoolean>;
1269
+ }, "strip", z.ZodTypeAny, {
1270
+ driver: "scayleKv";
1271
+ ttl?: number | undefined;
1272
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1273
+ disableClusterMode?: boolean | undefined;
1274
+ }, {
1275
+ driver: "scayleKv";
1276
+ ttl?: number | undefined;
1277
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1278
+ disableClusterMode?: boolean | undefined;
1279
+ }>]>>;
1095
1280
  }, "strip", z.ZodTypeAny, {
1096
1281
  session?: {
1282
+ driver: "scayleKv";
1283
+ ttl?: number | undefined;
1284
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1285
+ disableClusterMode?: boolean | undefined;
1286
+ } | {
1097
1287
  driver: BuiltinDriverName;
1098
1288
  ttl?: number | undefined;
1099
1289
  host?: string | undefined;
@@ -1106,6 +1296,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1106
1296
  tls?: boolean | undefined;
1107
1297
  } | undefined;
1108
1298
  cache?: {
1299
+ driver: "scayleKv";
1300
+ ttl?: number | undefined;
1301
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1302
+ disableClusterMode?: boolean | undefined;
1303
+ } | {
1109
1304
  driver: BuiltinDriverName;
1110
1305
  ttl?: number | undefined;
1111
1306
  host?: string | undefined;
@@ -1119,6 +1314,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1119
1314
  } | undefined;
1120
1315
  }, {
1121
1316
  session?: {
1317
+ driver: "scayleKv";
1318
+ ttl?: number | undefined;
1319
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1320
+ disableClusterMode?: boolean | undefined;
1321
+ } | {
1122
1322
  driver: BuiltinDriverName;
1123
1323
  ttl?: number | undefined;
1124
1324
  host?: string | undefined;
@@ -1131,6 +1331,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1131
1331
  tls?: boolean | undefined;
1132
1332
  } | undefined;
1133
1333
  cache?: {
1334
+ driver: "scayleKv";
1335
+ ttl?: number | undefined;
1336
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1337
+ disableClusterMode?: boolean | undefined;
1338
+ } | {
1134
1339
  driver: BuiltinDriverName;
1135
1340
  ttl?: number | undefined;
1136
1341
  host?: string | undefined;
@@ -1186,6 +1391,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1186
1391
  } | undefined;
1187
1392
  storage?: {
1188
1393
  session?: {
1394
+ driver: "scayleKv";
1395
+ ttl?: number | undefined;
1396
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1397
+ disableClusterMode?: boolean | undefined;
1398
+ } | {
1189
1399
  driver: BuiltinDriverName;
1190
1400
  ttl?: number | undefined;
1191
1401
  host?: string | undefined;
@@ -1198,6 +1408,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1198
1408
  tls?: boolean | undefined;
1199
1409
  } | undefined;
1200
1410
  cache?: {
1411
+ driver: "scayleKv";
1412
+ ttl?: number | undefined;
1413
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1414
+ disableClusterMode?: boolean | undefined;
1415
+ } | {
1201
1416
  driver: BuiltinDriverName;
1202
1417
  ttl?: number | undefined;
1203
1418
  host?: string | undefined;
@@ -1253,6 +1468,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1253
1468
  } | undefined;
1254
1469
  storage?: {
1255
1470
  session?: {
1471
+ driver: "scayleKv";
1472
+ ttl?: number | undefined;
1473
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1474
+ disableClusterMode?: boolean | undefined;
1475
+ } | {
1256
1476
  driver: BuiltinDriverName;
1257
1477
  ttl?: number | undefined;
1258
1478
  host?: string | undefined;
@@ -1265,6 +1485,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1265
1485
  tls?: boolean | undefined;
1266
1486
  } | undefined;
1267
1487
  cache?: {
1488
+ driver: "scayleKv";
1489
+ ttl?: number | undefined;
1490
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1491
+ disableClusterMode?: boolean | undefined;
1492
+ } | {
1268
1493
  driver: BuiltinDriverName;
1269
1494
  ttl?: number | undefined;
1270
1495
  host?: string | undefined;
@@ -1323,6 +1548,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1323
1548
  } | undefined;
1324
1549
  storage?: {
1325
1550
  session?: {
1551
+ driver: "scayleKv";
1552
+ ttl?: number | undefined;
1553
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1554
+ disableClusterMode?: boolean | undefined;
1555
+ } | {
1326
1556
  driver: BuiltinDriverName;
1327
1557
  ttl?: number | undefined;
1328
1558
  host?: string | undefined;
@@ -1335,6 +1565,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1335
1565
  tls?: boolean | undefined;
1336
1566
  } | undefined;
1337
1567
  cache?: {
1568
+ driver: "scayleKv";
1569
+ ttl?: number | undefined;
1570
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1571
+ disableClusterMode?: boolean | undefined;
1572
+ } | {
1338
1573
  driver: BuiltinDriverName;
1339
1574
  ttl?: number | undefined;
1340
1575
  host?: string | undefined;
@@ -1397,6 +1632,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1397
1632
  } | undefined;
1398
1633
  storage?: {
1399
1634
  session?: {
1635
+ driver: "scayleKv";
1636
+ ttl?: number | undefined;
1637
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1638
+ disableClusterMode?: boolean | undefined;
1639
+ } | {
1400
1640
  driver: BuiltinDriverName;
1401
1641
  ttl?: number | undefined;
1402
1642
  host?: string | undefined;
@@ -1409,6 +1649,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1409
1649
  tls?: boolean | undefined;
1410
1650
  } | undefined;
1411
1651
  cache?: {
1652
+ driver: "scayleKv";
1653
+ ttl?: number | undefined;
1654
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1655
+ disableClusterMode?: boolean | undefined;
1656
+ } | {
1412
1657
  driver: BuiltinDriverName;
1413
1658
  ttl?: number | undefined;
1414
1659
  host?: string | undefined;
@@ -1464,7 +1709,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1464
1709
  secret?: string | string[] | undefined;
1465
1710
  }>>;
1466
1711
  storage: z.ZodOptional<z.ZodObject<{
1467
- session: z.ZodOptional<z.ZodObject<{
1712
+ session: z.ZodOptional<z.ZodDiscriminatedUnion<"driver", [z.ZodObject<{
1468
1713
  driver: z.ZodEnum<[BuiltinDriverName, ...BuiltinDriverName[]]>;
1469
1714
  compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
1470
1715
  url: z.ZodOptional<z.ZodString>;
@@ -1497,8 +1742,23 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1497
1742
  username?: string | undefined;
1498
1743
  password?: string | undefined;
1499
1744
  tls?: boolean | undefined;
1500
- }>>;
1501
- cache: z.ZodOptional<z.ZodObject<{
1745
+ }>, z.ZodObject<{
1746
+ driver: z.ZodLiteral<"scayleKv">;
1747
+ compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
1748
+ ttl: z.ZodOptional<z.ZodNumber>;
1749
+ disableClusterMode: z.ZodOptional<z.ZodBoolean>;
1750
+ }, "strip", z.ZodTypeAny, {
1751
+ driver: "scayleKv";
1752
+ ttl?: number | undefined;
1753
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1754
+ disableClusterMode?: boolean | undefined;
1755
+ }, {
1756
+ driver: "scayleKv";
1757
+ ttl?: number | undefined;
1758
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1759
+ disableClusterMode?: boolean | undefined;
1760
+ }>]>>;
1761
+ cache: z.ZodOptional<z.ZodDiscriminatedUnion<"driver", [z.ZodObject<{
1502
1762
  driver: z.ZodEnum<[BuiltinDriverName, ...BuiltinDriverName[]]>;
1503
1763
  compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
1504
1764
  url: z.ZodOptional<z.ZodString>;
@@ -1531,9 +1791,29 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1531
1791
  username?: string | undefined;
1532
1792
  password?: string | undefined;
1533
1793
  tls?: boolean | undefined;
1534
- }>>;
1794
+ }>, z.ZodObject<{
1795
+ driver: z.ZodLiteral<"scayleKv">;
1796
+ compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
1797
+ ttl: z.ZodOptional<z.ZodNumber>;
1798
+ disableClusterMode: z.ZodOptional<z.ZodBoolean>;
1799
+ }, "strip", z.ZodTypeAny, {
1800
+ driver: "scayleKv";
1801
+ ttl?: number | undefined;
1802
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1803
+ disableClusterMode?: boolean | undefined;
1804
+ }, {
1805
+ driver: "scayleKv";
1806
+ ttl?: number | undefined;
1807
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1808
+ disableClusterMode?: boolean | undefined;
1809
+ }>]>>;
1535
1810
  }, "strip", z.ZodTypeAny, {
1536
1811
  session?: {
1812
+ driver: "scayleKv";
1813
+ ttl?: number | undefined;
1814
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1815
+ disableClusterMode?: boolean | undefined;
1816
+ } | {
1537
1817
  driver: BuiltinDriverName;
1538
1818
  ttl?: number | undefined;
1539
1819
  host?: string | undefined;
@@ -1546,6 +1826,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1546
1826
  tls?: boolean | undefined;
1547
1827
  } | undefined;
1548
1828
  cache?: {
1829
+ driver: "scayleKv";
1830
+ ttl?: number | undefined;
1831
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1832
+ disableClusterMode?: boolean | undefined;
1833
+ } | {
1549
1834
  driver: BuiltinDriverName;
1550
1835
  ttl?: number | undefined;
1551
1836
  host?: string | undefined;
@@ -1559,6 +1844,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1559
1844
  } | undefined;
1560
1845
  }, {
1561
1846
  session?: {
1847
+ driver: "scayleKv";
1848
+ ttl?: number | undefined;
1849
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1850
+ disableClusterMode?: boolean | undefined;
1851
+ } | {
1562
1852
  driver: BuiltinDriverName;
1563
1853
  ttl?: number | undefined;
1564
1854
  host?: string | undefined;
@@ -1571,6 +1861,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1571
1861
  tls?: boolean | undefined;
1572
1862
  } | undefined;
1573
1863
  cache?: {
1864
+ driver: "scayleKv";
1865
+ ttl?: number | undefined;
1866
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1867
+ disableClusterMode?: boolean | undefined;
1868
+ } | {
1574
1869
  driver: BuiltinDriverName;
1575
1870
  ttl?: number | undefined;
1576
1871
  host?: string | undefined;
@@ -1706,6 +2001,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1706
2001
  } | undefined;
1707
2002
  storage?: {
1708
2003
  session?: {
2004
+ driver: "scayleKv";
2005
+ ttl?: number | undefined;
2006
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2007
+ disableClusterMode?: boolean | undefined;
2008
+ } | {
1709
2009
  driver: BuiltinDriverName;
1710
2010
  ttl?: number | undefined;
1711
2011
  host?: string | undefined;
@@ -1718,6 +2018,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1718
2018
  tls?: boolean | undefined;
1719
2019
  } | undefined;
1720
2020
  cache?: {
2021
+ driver: "scayleKv";
2022
+ ttl?: number | undefined;
2023
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2024
+ disableClusterMode?: boolean | undefined;
2025
+ } | {
1721
2026
  driver: BuiltinDriverName;
1722
2027
  ttl?: number | undefined;
1723
2028
  host?: string | undefined;
@@ -1772,6 +2077,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1772
2077
  } | undefined;
1773
2078
  storage?: {
1774
2079
  session?: {
2080
+ driver: "scayleKv";
2081
+ ttl?: number | undefined;
2082
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2083
+ disableClusterMode?: boolean | undefined;
2084
+ } | {
1775
2085
  driver: BuiltinDriverName;
1776
2086
  ttl?: number | undefined;
1777
2087
  host?: string | undefined;
@@ -1784,6 +2094,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1784
2094
  tls?: boolean | undefined;
1785
2095
  } | undefined;
1786
2096
  cache?: {
2097
+ driver: "scayleKv";
2098
+ ttl?: number | undefined;
2099
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2100
+ disableClusterMode?: boolean | undefined;
2101
+ } | {
1787
2102
  driver: BuiltinDriverName;
1788
2103
  ttl?: number | undefined;
1789
2104
  host?: string | undefined;
@@ -1905,6 +2220,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1905
2220
  } | undefined;
1906
2221
  storage?: {
1907
2222
  session?: {
2223
+ driver: "scayleKv";
2224
+ ttl?: number | undefined;
2225
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2226
+ disableClusterMode?: boolean | undefined;
2227
+ } | {
1908
2228
  driver: BuiltinDriverName;
1909
2229
  ttl?: number | undefined;
1910
2230
  host?: string | undefined;
@@ -1917,6 +2237,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1917
2237
  tls?: boolean | undefined;
1918
2238
  } | undefined;
1919
2239
  cache?: {
2240
+ driver: "scayleKv";
2241
+ ttl?: number | undefined;
2242
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2243
+ disableClusterMode?: boolean | undefined;
2244
+ } | {
1920
2245
  driver: BuiltinDriverName;
1921
2246
  ttl?: number | undefined;
1922
2247
  host?: string | undefined;
@@ -1972,6 +2297,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1972
2297
  } | undefined;
1973
2298
  storage?: {
1974
2299
  session?: {
2300
+ driver: "scayleKv";
2301
+ ttl?: number | undefined;
2302
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2303
+ disableClusterMode?: boolean | undefined;
2304
+ } | {
1975
2305
  driver: BuiltinDriverName;
1976
2306
  ttl?: number | undefined;
1977
2307
  host?: string | undefined;
@@ -1984,6 +2314,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
1984
2314
  tls?: boolean | undefined;
1985
2315
  } | undefined;
1986
2316
  cache?: {
2317
+ driver: "scayleKv";
2318
+ ttl?: number | undefined;
2319
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2320
+ disableClusterMode?: boolean | undefined;
2321
+ } | {
1987
2322
  driver: BuiltinDriverName;
1988
2323
  ttl?: number | undefined;
1989
2324
  host?: string | undefined;
@@ -2058,6 +2393,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
2058
2393
  } | undefined;
2059
2394
  storage?: {
2060
2395
  session?: {
2396
+ driver: "scayleKv";
2397
+ ttl?: number | undefined;
2398
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2399
+ disableClusterMode?: boolean | undefined;
2400
+ } | {
2061
2401
  driver: BuiltinDriverName;
2062
2402
  ttl?: number | undefined;
2063
2403
  host?: string | undefined;
@@ -2070,6 +2410,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
2070
2410
  tls?: boolean | undefined;
2071
2411
  } | undefined;
2072
2412
  cache?: {
2413
+ driver: "scayleKv";
2414
+ ttl?: number | undefined;
2415
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2416
+ disableClusterMode?: boolean | undefined;
2417
+ } | {
2073
2418
  driver: BuiltinDriverName;
2074
2419
  ttl?: number | undefined;
2075
2420
  host?: string | undefined;
@@ -2125,6 +2470,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
2125
2470
  } | undefined;
2126
2471
  storage?: {
2127
2472
  session?: {
2473
+ driver: "scayleKv";
2474
+ ttl?: number | undefined;
2475
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2476
+ disableClusterMode?: boolean | undefined;
2477
+ } | {
2128
2478
  driver: BuiltinDriverName;
2129
2479
  ttl?: number | undefined;
2130
2480
  host?: string | undefined;
@@ -2137,6 +2487,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
2137
2487
  tls?: boolean | undefined;
2138
2488
  } | undefined;
2139
2489
  cache?: {
2490
+ driver: "scayleKv";
2491
+ ttl?: number | undefined;
2492
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2493
+ disableClusterMode?: boolean | undefined;
2494
+ } | {
2140
2495
  driver: BuiltinDriverName;
2141
2496
  ttl?: number | undefined;
2142
2497
  host?: string | undefined;
@@ -45,18 +45,28 @@ const LegacySchema = z.object({
45
45
  enableSessionMigration: z.boolean().optional()
46
46
  });
47
47
  const builtinDriverKeys = Object.keys(builtinDrivers);
48
- const StorageSchema = z.object({
49
- driver: z.enum(builtinDriverKeys),
50
- compression: z.enum(["deflate", "gzip", "brotli", "none"]).optional(),
51
- url: z.string().url().optional(),
52
- token: z.string().optional(),
53
- host: z.string().optional(),
54
- port: z.number().optional(),
55
- username: z.string().optional(),
56
- password: z.string().optional(),
57
- tls: z.boolean().optional(),
58
- ttl: z.number().optional()
48
+ const compressionSchema = z.enum(["deflate", "gzip", "brotli", "none"]).optional();
49
+ const scayleKvConfigSchema = z.object({
50
+ driver: z.literal("scayleKv"),
51
+ compression: compressionSchema,
52
+ ttl: z.number().optional(),
53
+ disableClusterMode: z.boolean().optional()
59
54
  });
55
+ const StorageSchema = z.discriminatedUnion("driver", [
56
+ z.object({
57
+ driver: z.enum(builtinDriverKeys),
58
+ compression: compressionSchema,
59
+ url: z.string().url().optional(),
60
+ token: z.string().optional(),
61
+ host: z.string().optional(),
62
+ port: z.number().optional(),
63
+ username: z.string().optional(),
64
+ password: z.string().optional(),
65
+ tls: z.boolean().optional(),
66
+ ttl: z.number().optional()
67
+ }),
68
+ scayleKvConfigSchema
69
+ ]);
60
70
  const AppKeysSchema = z.object(
61
71
  {
62
72
  wishlistKey: z.string(),
@@ -1,6 +1,6 @@
1
1
  import { StorefrontHooks, RpcContext, RpcMethodName, HashAlgorithm, WithParams, rpcMethods, ShopUser } from '@scayle/storefront-core';
2
2
  import { CompressionEncodings } from '@scayle/unstorage-compression-driver';
3
- import { BuiltinDriverName, BuiltinDriverOptions } from 'unstorage';
3
+ import { BuiltinDriverOptions, BuiltinDriverName } from 'unstorage';
4
4
  import { CheckoutShopConfigType, SessionType, StorageType, SapiConfigType, ShopConfigType, IdpType, StorefrontConfigType, ModulePublicRuntimeConfigType, ShopSelectorType, RedirectType } from '../../dist/runtime/utils/zodSchema.js';
5
5
  import { HookResult } from '@nuxt/schema';
6
6
 
@@ -32,7 +32,7 @@ type CustomDriverName = string & {
32
32
  *
33
33
  * @see https://scayle.dev/en/storefront-guide/developer-guide/basic-setup/caching#storefront-storage-cache-configuration
34
34
  */
35
- type StorageEntity<Driver extends BuiltinDriverName | CustomDriverName | unknown = unknown, DriverOptions = Driver extends keyof BuiltinDriverOptions ? BuiltinDriverOptions[Driver] : unknown> = {
35
+ type StorageEntity<Driver extends SupportedDriverName | CustomDriverName | unknown = unknown, DriverOptions = Driver extends keyof BuiltinDriverOptions ? BuiltinDriverOptions[Driver] : unknown> = {
36
36
  driver: Driver;
37
37
  compression?: CompressionEncodings;
38
38
  } & DriverOptions;
@@ -185,6 +185,7 @@ type ModuleOption = {
185
185
  */
186
186
  shops: ShopConfigIndexed;
187
187
  };
188
+ type SupportedDriverName = BuiltinDriverName | 'scayleKv';
188
189
  /**
189
190
  * Module base options. Extends `StorefrontConfig` and `ModuleOption`.
190
191
  */
@@ -264,4 +265,4 @@ declare module 'nitropack' {
264
265
  }
265
266
  }
266
267
 
267
- export type { AppKeys as A, CheckoutShopConfig as C, ModuleBaseOptions as M, PublicShopConfig as P, SessionConfig as S, StorageEntity as a, StorageConfig as b, SapiConfig as c, AdditionalShopConfig as d, ShopConfig as e, ShopConfigIndexed as f, StorefrontConfig as g, CheckoutEvent as h, ModulePublicRuntimeConfig as i };
268
+ export type { AppKeys as A, CheckoutShopConfig as C, ModuleBaseOptions as M, PublicShopConfig as P, SessionConfig as S, StorageEntity as a, StorageConfig as b, SapiConfig as c, AdditionalShopConfig as d, ShopConfig as e, ShopConfigIndexed as f, StorefrontConfig as g, SupportedDriverName as h, CheckoutEvent as i, ModulePublicRuntimeConfig as j };
@@ -1,6 +1,6 @@
1
1
  import { StorefrontHooks, RpcContext, RpcMethodName, HashAlgorithm, WithParams, rpcMethods, ShopUser } from '@scayle/storefront-core';
2
2
  import { CompressionEncodings } from '@scayle/unstorage-compression-driver';
3
- import { BuiltinDriverName, BuiltinDriverOptions } from 'unstorage';
3
+ import { BuiltinDriverOptions, BuiltinDriverName } from 'unstorage';
4
4
  import { CheckoutShopConfigType, SessionType, StorageType, SapiConfigType, ShopConfigType, IdpType, StorefrontConfigType, ModulePublicRuntimeConfigType, ShopSelectorType, RedirectType } from '../../dist/runtime/utils/zodSchema.js';
5
5
  import { HookResult } from '@nuxt/schema';
6
6
 
@@ -32,7 +32,7 @@ type CustomDriverName = string & {
32
32
  *
33
33
  * @see https://scayle.dev/en/storefront-guide/developer-guide/basic-setup/caching#storefront-storage-cache-configuration
34
34
  */
35
- type StorageEntity<Driver extends BuiltinDriverName | CustomDriverName | unknown = unknown, DriverOptions = Driver extends keyof BuiltinDriverOptions ? BuiltinDriverOptions[Driver] : unknown> = {
35
+ type StorageEntity<Driver extends SupportedDriverName | CustomDriverName | unknown = unknown, DriverOptions = Driver extends keyof BuiltinDriverOptions ? BuiltinDriverOptions[Driver] : unknown> = {
36
36
  driver: Driver;
37
37
  compression?: CompressionEncodings;
38
38
  } & DriverOptions;
@@ -185,6 +185,7 @@ type ModuleOption = {
185
185
  */
186
186
  shops: ShopConfigIndexed;
187
187
  };
188
+ type SupportedDriverName = BuiltinDriverName | 'scayleKv';
188
189
  /**
189
190
  * Module base options. Extends `StorefrontConfig` and `ModuleOption`.
190
191
  */
@@ -264,4 +265,4 @@ declare module 'nitropack' {
264
265
  }
265
266
  }
266
267
 
267
- export type { AppKeys as A, CheckoutShopConfig as C, ModuleBaseOptions as M, PublicShopConfig as P, SessionConfig as S, StorageEntity as a, StorageConfig as b, SapiConfig as c, AdditionalShopConfig as d, ShopConfig as e, ShopConfigIndexed as f, StorefrontConfig as g, CheckoutEvent as h, ModulePublicRuntimeConfig as i };
268
+ export type { AppKeys as A, CheckoutShopConfig as C, ModuleBaseOptions as M, PublicShopConfig as P, SessionConfig as S, StorageEntity as a, StorageConfig as b, SapiConfig as c, AdditionalShopConfig as d, ShopConfig as e, ShopConfigIndexed as f, StorefrontConfig as g, SupportedDriverName as h, CheckoutEvent as i, ModulePublicRuntimeConfig as j };
@@ -1,5 +1,5 @@
1
1
  import { Factory } from 'fishery';
2
- import { M as ModuleBaseOptions, e as ShopConfig } from '../shared/storefront-nuxt.b72fefd0.mjs';
2
+ import { M as ModuleBaseOptions, e as ShopConfig } from '../shared/storefront-nuxt.d0683fc1.mjs';
3
3
  import { RpcContext } from '@scayle/storefront-core';
4
4
  import { RouteLocationNormalizedLoadedGeneric } from 'vue-router';
5
5
  export * from '@scayle/storefront-core/dist/test/factories';
@@ -1,5 +1,5 @@
1
1
  import { Factory } from 'fishery';
2
- import { M as ModuleBaseOptions, e as ShopConfig } from '../shared/storefront-nuxt.b72fefd0.js';
2
+ import { M as ModuleBaseOptions, e as ShopConfig } from '../shared/storefront-nuxt.d0683fc1.js';
3
3
  import { RpcContext } from '@scayle/storefront-core';
4
4
  import { RouteLocationNormalizedLoadedGeneric } from 'vue-router';
5
5
  export * from '@scayle/storefront-core/dist/test/factories';
package/dist/types.d.mts CHANGED
@@ -9,4 +9,4 @@ declare module '@nuxt/schema' {
9
9
 
10
10
  export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
11
11
 
12
- export { type AdditionalShopConfig, type AppKeys, type CheckoutEvent, type CheckoutShopConfig, type ModulePublicRuntimeConfig, type PublicShopConfig, type SapiConfig, type SessionConfig, type ShopConfig, type ShopConfigIndexed, type StorageConfig, type StorageEntity, type StorefrontConfig } from './module.js'
12
+ export { type AdditionalShopConfig, type AppKeys, type CheckoutEvent, type CheckoutShopConfig, type ModulePublicRuntimeConfig, type PublicShopConfig, type SapiConfig, type SessionConfig, type ShopConfig, type ShopConfigIndexed, type StorageConfig, type StorageEntity, type StorefrontConfig, type SupportedDriverName } from './module.js'
package/dist/types.d.ts CHANGED
@@ -9,4 +9,4 @@ declare module '@nuxt/schema' {
9
9
 
10
10
  export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
11
11
 
12
- export { type AdditionalShopConfig, type AppKeys, type CheckoutEvent, type CheckoutShopConfig, type ModulePublicRuntimeConfig, type PublicShopConfig, type SapiConfig, type SessionConfig, type ShopConfig, type ShopConfigIndexed, type StorageConfig, type StorageEntity, type StorefrontConfig } from './module'
12
+ export { type AdditionalShopConfig, type AppKeys, type CheckoutEvent, type CheckoutShopConfig, type ModulePublicRuntimeConfig, type PublicShopConfig, type SapiConfig, type SessionConfig, type ShopConfig, type ShopConfigIndexed, type StorageConfig, type StorageEntity, type StorefrontConfig, type SupportedDriverName } from './module'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "8.11.2",
4
+ "version": "8.11.4",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -72,7 +72,7 @@
72
72
  "dependencies": {
73
73
  "@opentelemetry/api": "^1.9.0",
74
74
  "@scayle/h3-session": "0.6.0",
75
- "@scayle/storefront-core": "8.11.0",
75
+ "@scayle/storefront-core": "8.11.2",
76
76
  "@scayle/unstorage-compression-driver": "^0.2.4",
77
77
  "@vercel/nft": "0.29.2",
78
78
  "@vueuse/core": "12.7.0",
@@ -80,7 +80,7 @@
80
80
  "core-js": "^3.37.1",
81
81
  "defu": "^6.1.4",
82
82
  "hookable": "^5.5.3",
83
- "jose": "^5.2.0",
83
+ "jose": "^6.0.8",
84
84
  "knitwork": "^1.1.0",
85
85
  "ofetch": "^1.3.4",
86
86
  "ufo": "^1.5.4",
@@ -88,17 +88,18 @@
88
88
  "unstorage": "^1.10.2",
89
89
  "vue-router": "^4.4.0",
90
90
  "zod": "^3.23.8",
91
- "schema-dts": "1.1.2"
91
+ "schema-dts": "1.1.5"
92
92
  },
93
93
  "devDependencies": {
94
94
  "@nuxt/eslint": "1.1.0",
95
95
  "@nuxt/kit": "3.14.1592",
96
96
  "@nuxt/module-builder": "0.8.4",
97
97
  "@nuxt/schema": "3.14.1592",
98
- "@nuxt/test-utils": "3.17.0",
98
+ "@nuxt/test-utils": "3.17.1",
99
99
  "@scayle/eslint-config-storefront": "4.4.1",
100
100
  "@scayle/eslint-plugin-vue-composable": "0.2.1",
101
- "@types/node": "22.13.5",
101
+ "@scayle/unstorage-scayle-kv-driver": "0.1.0",
102
+ "@types/node": "22.13.8",
102
103
  "dprint": "0.49.0",
103
104
  "eslint": "9.21.0",
104
105
  "eslint-formatter-gitlab": "5.1.0",
@@ -109,8 +110,8 @@
109
110
  "nuxi": "3.22.2",
110
111
  "nuxt": "3.14.1592",
111
112
  "publint": "0.2.12",
112
- "typescript": "5.7.3",
113
- "vue-tsc": "2.2.4",
113
+ "typescript": "5.8.2",
114
+ "vue-tsc": "2.2.8",
114
115
  "vitest": "2.1.9"
115
116
  },
116
117
  "peerDependencies": {