@scayle/storefront-nuxt 7.85.8 → 7.85.9

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 (42) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/index.d.mts +5 -15
  3. package/dist/index.d.ts +5 -15
  4. package/dist/index.mjs +2 -16
  5. package/dist/module.d.mts +4 -4
  6. package/dist/module.d.ts +4 -4
  7. package/dist/module.mjs +5 -25
  8. package/dist/rpc.d.mts +1 -16
  9. package/dist/rpc.d.ts +1 -16
  10. package/dist/rpc.mjs +1 -20
  11. package/dist/runtime/api/rpcHandler.d.ts +55 -1
  12. package/dist/runtime/api/rpcHandler.mjs +1 -1
  13. package/dist/runtime/composables/core/useAvailableShops.d.ts +1 -1
  14. package/dist/runtime/composables/storefront/useFacet.d.ts +28 -24
  15. package/dist/runtime/composables/storefront/useSearch.d.ts +3 -3
  16. package/dist/runtime/composables/storefront/useStorefrontSearch.d.ts +2 -2
  17. package/dist/runtime/context.mjs +1 -1
  18. package/dist/runtime/error/handler.d.ts +1 -1
  19. package/dist/runtime/nitro/plugins/cacheRuntimeConfig.d.ts +1 -1
  20. package/dist/runtime/nitro/plugins/cacheRuntimeConfig.mjs +2 -1
  21. package/dist/runtime/nitro/plugins/configValidation.d.ts +8 -3
  22. package/dist/runtime/nitro/plugins/configValidation.mjs +7 -5
  23. package/dist/runtime/nitro/plugins/nitroLogger.d.ts +1 -1
  24. package/dist/runtime/nitro/plugins/nitroLogger.mjs +2 -1
  25. package/dist/runtime/nitro/plugins/nitroRuntimeStorageConfig.d.ts +1 -1
  26. package/dist/runtime/nitro/plugins/nitroRuntimeStorageConfig.mjs +7 -5
  27. package/dist/runtime/nitro/plugins/nitroSetXPoweredByHeader.d.ts +1 -1
  28. package/dist/runtime/nitro/plugins/nitroSetXPoweredByHeader.mjs +1 -1
  29. package/dist/runtime/server/middleware/bootstrap.mjs +1 -1
  30. package/dist/runtime/server/middleware/bootstrap.utils.d.ts +6 -2
  31. package/dist/runtime/server/middleware/bootstrap.utils.mjs +2 -2
  32. package/dist/runtime/server/tsconfig.json +1 -1
  33. package/dist/runtime/utils/zodSchema.d.ts +261 -153
  34. package/dist/runtime/utils/zodSchema.mjs +16 -7
  35. package/dist/shared/storefront-nuxt.77c99ba5.d.mts +102 -0
  36. package/dist/shared/storefront-nuxt.77c99ba5.d.ts +102 -0
  37. package/package.json +11 -11
  38. package/dist/module.json +0 -8
  39. package/dist/shared/storefront-nuxt.891170da.d.mts +0 -1205
  40. package/dist/shared/storefront-nuxt.891170da.d.ts +0 -1205
  41. package/dist/types.d.mts +0 -14
  42. package/dist/types.d.ts +0 -14
@@ -1,1205 +0,0 @@
1
- import { LogLevel, StorefrontHooks, RpcContext, RpcMethodName, HashAlgorithm, WithParams, rpcMethods, ShopUser } from '@scayle/storefront-core';
2
- import { CompressionEncodings } from '@scayle/unstorage-compression-driver';
3
- import { BuiltinDriverName, BuiltinDriverOptions } from 'unstorage';
4
- import { z } from 'zod';
5
- import { HookResult } from '@nuxt/schema';
6
-
7
- declare const RedirectsSchema: z.ZodObject<{
8
- enabled: z.ZodBoolean;
9
- queryParamWhitelist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10
- }, "strip", z.ZodTypeAny, {
11
- enabled: boolean;
12
- queryParamWhitelist?: string[] | undefined;
13
- }, {
14
- enabled: boolean;
15
- queryParamWhitelist?: string[] | undefined;
16
- }>;
17
- /**
18
- * @deprecated
19
- */
20
- declare const RedisConfigSchema: z.ZodUnion<[z.ZodObject<{
21
- port: z.ZodOptional<z.ZodNumber>;
22
- host: z.ZodOptional<z.ZodString>;
23
- prefix: z.ZodOptional<z.ZodString>;
24
- sslTransit: z.ZodOptional<z.ZodBoolean>;
25
- }, "strip", z.ZodTypeAny, {
26
- port?: number | undefined;
27
- host?: string | undefined;
28
- prefix?: string | undefined;
29
- sslTransit?: boolean | undefined;
30
- }, {
31
- port?: number | undefined;
32
- host?: string | undefined;
33
- prefix?: string | undefined;
34
- sslTransit?: boolean | undefined;
35
- }>, z.ZodObject<{
36
- port: z.ZodOptional<z.ZodNumber>;
37
- host: z.ZodOptional<z.ZodString>;
38
- prefix: z.ZodOptional<z.ZodString>;
39
- sslTransit: z.ZodOptional<z.ZodBoolean>;
40
- user: z.ZodString;
41
- password: z.ZodString;
42
- }, "strip", z.ZodTypeAny, {
43
- user: string;
44
- password: string;
45
- port?: number | undefined;
46
- host?: string | undefined;
47
- prefix?: string | undefined;
48
- sslTransit?: boolean | undefined;
49
- }, {
50
- user: string;
51
- password: string;
52
- port?: number | undefined;
53
- host?: string | undefined;
54
- prefix?: string | undefined;
55
- sslTransit?: boolean | undefined;
56
- }>]>;
57
- declare const SessionSchema: z.ZodObject<{
58
- /**
59
- * The sameSite policy to use for the session cookie
60
- */
61
- sameSite: z.ZodOptional<z.ZodEnum<["lax", "strict", "none"]>>;
62
- /**
63
- * The default maxAge (in seconds) set on the session cookie and default TTL for session store
64
- */
65
- maxAge: z.ZodOptional<z.ZodNumber>;
66
- /**
67
- * The name used for the session cookie
68
- */
69
- cookieName: z.ZodOptional<z.ZodString>;
70
- /**
71
- * The secret used for signing session cookies. If an array is passed, the last
72
- * value is used for signing new cookies, but all values are used to verify cookies.
73
- */
74
- secret: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
75
- /**
76
- * Controls the domain option on the session cookie
77
- */
78
- domain: z.ZodOptional<z.ZodString>;
79
- }, "strip", z.ZodTypeAny, {
80
- sameSite?: "lax" | "strict" | "none" | undefined;
81
- maxAge?: number | undefined;
82
- cookieName?: string | undefined;
83
- secret?: string | string[] | undefined;
84
- domain?: string | undefined;
85
- }, {
86
- sameSite?: "lax" | "strict" | "none" | undefined;
87
- maxAge?: number | undefined;
88
- cookieName?: string | undefined;
89
- secret?: string | string[] | undefined;
90
- domain?: string | undefined;
91
- }>;
92
- declare const SapiSchema: z.ZodObject<{
93
- host: z.ZodString;
94
- token: z.ZodString;
95
- }, "strip", z.ZodTypeAny, {
96
- host: string;
97
- token: string;
98
- }, {
99
- host: string;
100
- token: string;
101
- }>;
102
- declare const IdpSchema: z.ZodObject<{
103
- enabled: z.ZodBoolean;
104
- idpKeys: z.ZodArray<z.ZodString, "many">;
105
- idpRedirectURL: z.ZodString;
106
- }, "strip", z.ZodTypeAny, {
107
- enabled: boolean;
108
- idpKeys: string[];
109
- idpRedirectURL: string;
110
- }, {
111
- enabled: boolean;
112
- idpKeys: string[];
113
- idpRedirectURL: string;
114
- }>;
115
- declare const StorageSchema: z.ZodObject<{
116
- driver: z.ZodEnum<["azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http", ...("azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http")[]]>;
117
- compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
118
- url: z.ZodOptional<z.ZodString>;
119
- token: z.ZodOptional<z.ZodString>;
120
- host: z.ZodOptional<z.ZodString>;
121
- port: z.ZodOptional<z.ZodNumber>;
122
- username: z.ZodOptional<z.ZodString>;
123
- password: z.ZodOptional<z.ZodString>;
124
- tls: z.ZodOptional<z.ZodBoolean>;
125
- ttl: z.ZodOptional<z.ZodNumber>;
126
- }, "strip", z.ZodTypeAny, {
127
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
128
- port?: number | undefined;
129
- host?: string | undefined;
130
- password?: string | undefined;
131
- token?: string | undefined;
132
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
133
- url?: string | undefined;
134
- username?: string | undefined;
135
- tls?: boolean | undefined;
136
- ttl?: number | undefined;
137
- }, {
138
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
139
- port?: number | undefined;
140
- host?: string | undefined;
141
- password?: string | undefined;
142
- token?: string | undefined;
143
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
144
- url?: string | undefined;
145
- username?: string | undefined;
146
- tls?: boolean | undefined;
147
- ttl?: number | undefined;
148
- }>;
149
- declare const CheckoutShopConfigSchema: z.ZodObject<{
150
- token: z.ZodString;
151
- secret: z.ZodString;
152
- host: z.ZodString;
153
- user: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
154
- cbdExpiration: z.ZodOptional<z.ZodNumber>;
155
- }, "strip", z.ZodTypeAny, {
156
- host: string;
157
- user: string | number;
158
- secret: string;
159
- token: string;
160
- cbdExpiration?: number | undefined;
161
- }, {
162
- host: string;
163
- user: string | number;
164
- secret: string;
165
- token: string;
166
- cbdExpiration?: number | undefined;
167
- }>;
168
- declare const ShopConfigSchema: z.ZodObject<{
169
- idp: z.ZodOptional<z.ZodObject<{
170
- enabled: z.ZodBoolean;
171
- idpKeys: z.ZodArray<z.ZodString, "many">;
172
- idpRedirectURL: z.ZodString;
173
- }, "strip", z.ZodTypeAny, {
174
- enabled: boolean;
175
- idpKeys: string[];
176
- idpRedirectURL: string;
177
- }, {
178
- enabled: boolean;
179
- idpKeys: string[];
180
- idpRedirectURL: string;
181
- }>>;
182
- shopId: z.ZodNumber;
183
- path: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
184
- apiBasePath: z.ZodOptional<z.ZodString>;
185
- domain: z.ZodOptional<z.ZodString>;
186
- locale: z.ZodString;
187
- auth: z.ZodObject<{
188
- resetPasswordUrl: z.ZodString;
189
- }, "strip", z.ZodTypeAny, {
190
- resetPasswordUrl: string;
191
- }, {
192
- resetPasswordUrl: string;
193
- }>;
194
- currency: z.ZodString;
195
- checkout: z.ZodObject<{
196
- token: z.ZodString;
197
- secret: z.ZodString;
198
- host: z.ZodString;
199
- user: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
200
- cbdExpiration: z.ZodOptional<z.ZodNumber>;
201
- }, "strip", z.ZodTypeAny, {
202
- host: string;
203
- user: string | number;
204
- secret: string;
205
- token: string;
206
- cbdExpiration?: number | undefined;
207
- }, {
208
- host: string;
209
- user: string | number;
210
- secret: string;
211
- token: string;
212
- cbdExpiration?: number | undefined;
213
- }>;
214
- appKeys: z.ZodOptional<z.ZodObject<{
215
- wishlistKey: z.ZodString;
216
- basketKey: z.ZodString;
217
- hashAlgorithm: z.ZodEnum<[string, ...string[]]>;
218
- }, "strip", z.ZodTypeAny, {
219
- wishlistKey: string;
220
- basketKey: string;
221
- hashAlgorithm: string;
222
- }, {
223
- wishlistKey: string;
224
- basketKey: string;
225
- hashAlgorithm: string;
226
- }>>;
227
- currencyFractionDigits: z.ZodOptional<z.ZodNumber>;
228
- isEnabled: z.ZodOptional<z.ZodBoolean>;
229
- sessionConfig: z.ZodOptional<z.ZodObject<{
230
- /**
231
- * The sameSite policy to use for the session cookie
232
- */
233
- sameSite: z.ZodOptional<z.ZodEnum<["lax", "strict", "none"]>>;
234
- /**
235
- * The default maxAge (in seconds) set on the session cookie and default TTL for session store
236
- */
237
- maxAge: z.ZodOptional<z.ZodNumber>;
238
- /**
239
- * The name used for the session cookie
240
- */
241
- cookieName: z.ZodOptional<z.ZodString>;
242
- /**
243
- * The secret used for signing session cookies. If an array is passed, the last
244
- * value is used for signing new cookies, but all values are used to verify cookies.
245
- */
246
- secret: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
247
- /**
248
- * Controls the domain option on the session cookie
249
- */
250
- domain: z.ZodOptional<z.ZodString>;
251
- }, "strip", z.ZodTypeAny, {
252
- sameSite?: "lax" | "strict" | "none" | undefined;
253
- maxAge?: number | undefined;
254
- cookieName?: string | undefined;
255
- secret?: string | string[] | undefined;
256
- domain?: string | undefined;
257
- }, {
258
- sameSite?: "lax" | "strict" | "none" | undefined;
259
- maxAge?: number | undefined;
260
- cookieName?: string | undefined;
261
- secret?: string | string[] | undefined;
262
- domain?: string | undefined;
263
- }>>;
264
- sapi: z.ZodOptional<z.ZodObject<{
265
- host: z.ZodString;
266
- token: z.ZodString;
267
- }, "strip", z.ZodTypeAny, {
268
- host: string;
269
- token: string;
270
- }, {
271
- host: string;
272
- token: string;
273
- }>>;
274
- bapi: z.ZodOptional<z.ZodObject<{
275
- host: z.ZodString;
276
- token: z.ZodString;
277
- }, "strip", z.ZodTypeAny, {
278
- host: string;
279
- token: string;
280
- }, {
281
- host: string;
282
- token: string;
283
- }>>;
284
- storage: z.ZodOptional<z.ZodObject<{
285
- session: z.ZodOptional<z.ZodObject<{
286
- driver: z.ZodEnum<["azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http", ...("azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http")[]]>;
287
- compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
288
- url: z.ZodOptional<z.ZodString>;
289
- token: z.ZodOptional<z.ZodString>;
290
- host: z.ZodOptional<z.ZodString>;
291
- port: z.ZodOptional<z.ZodNumber>;
292
- username: z.ZodOptional<z.ZodString>;
293
- password: z.ZodOptional<z.ZodString>;
294
- tls: z.ZodOptional<z.ZodBoolean>;
295
- ttl: z.ZodOptional<z.ZodNumber>;
296
- }, "strip", z.ZodTypeAny, {
297
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
298
- port?: number | undefined;
299
- host?: string | undefined;
300
- password?: string | undefined;
301
- token?: string | undefined;
302
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
303
- url?: string | undefined;
304
- username?: string | undefined;
305
- tls?: boolean | undefined;
306
- ttl?: number | undefined;
307
- }, {
308
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
309
- port?: number | undefined;
310
- host?: string | undefined;
311
- password?: string | undefined;
312
- token?: string | undefined;
313
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
314
- url?: string | undefined;
315
- username?: string | undefined;
316
- tls?: boolean | undefined;
317
- ttl?: number | undefined;
318
- }>>;
319
- cache: z.ZodOptional<z.ZodObject<{
320
- driver: z.ZodEnum<["azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http", ...("azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http")[]]>;
321
- compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
322
- url: z.ZodOptional<z.ZodString>;
323
- token: z.ZodOptional<z.ZodString>;
324
- host: z.ZodOptional<z.ZodString>;
325
- port: z.ZodOptional<z.ZodNumber>;
326
- username: z.ZodOptional<z.ZodString>;
327
- password: z.ZodOptional<z.ZodString>;
328
- tls: z.ZodOptional<z.ZodBoolean>;
329
- ttl: z.ZodOptional<z.ZodNumber>;
330
- }, "strip", z.ZodTypeAny, {
331
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
332
- port?: number | undefined;
333
- host?: string | undefined;
334
- password?: string | undefined;
335
- token?: string | undefined;
336
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
337
- url?: string | undefined;
338
- username?: string | undefined;
339
- tls?: boolean | undefined;
340
- ttl?: number | undefined;
341
- }, {
342
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
343
- port?: number | undefined;
344
- host?: string | undefined;
345
- password?: string | undefined;
346
- token?: string | undefined;
347
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
348
- url?: string | undefined;
349
- username?: string | undefined;
350
- tls?: boolean | undefined;
351
- ttl?: number | undefined;
352
- }>>;
353
- }, "strip", z.ZodTypeAny, {
354
- session?: {
355
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
356
- port?: number | undefined;
357
- host?: string | undefined;
358
- password?: string | undefined;
359
- token?: string | undefined;
360
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
361
- url?: string | undefined;
362
- username?: string | undefined;
363
- tls?: boolean | undefined;
364
- ttl?: number | undefined;
365
- } | undefined;
366
- cache?: {
367
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
368
- port?: number | undefined;
369
- host?: string | undefined;
370
- password?: string | undefined;
371
- token?: string | undefined;
372
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
373
- url?: string | undefined;
374
- username?: string | undefined;
375
- tls?: boolean | undefined;
376
- ttl?: number | undefined;
377
- } | undefined;
378
- }, {
379
- session?: {
380
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
381
- port?: number | undefined;
382
- host?: string | undefined;
383
- password?: string | undefined;
384
- token?: string | undefined;
385
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
386
- url?: string | undefined;
387
- username?: string | undefined;
388
- tls?: boolean | undefined;
389
- ttl?: number | undefined;
390
- } | undefined;
391
- cache?: {
392
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
393
- port?: number | undefined;
394
- host?: string | undefined;
395
- password?: string | undefined;
396
- token?: string | undefined;
397
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
398
- url?: string | undefined;
399
- username?: string | undefined;
400
- tls?: boolean | undefined;
401
- ttl?: number | undefined;
402
- } | undefined;
403
- }>>;
404
- isDefault: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodEffects<z.ZodString, "", string>]>;
405
- /** @deprecated shop-specific storefront.redis config is being removed in favor of global nitro.storage config */
406
- redis: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
407
- port: z.ZodOptional<z.ZodNumber>;
408
- host: z.ZodOptional<z.ZodString>;
409
- prefix: z.ZodOptional<z.ZodString>;
410
- sslTransit: z.ZodOptional<z.ZodBoolean>;
411
- }, "strip", z.ZodTypeAny, {
412
- port?: number | undefined;
413
- host?: string | undefined;
414
- prefix?: string | undefined;
415
- sslTransit?: boolean | undefined;
416
- }, {
417
- port?: number | undefined;
418
- host?: string | undefined;
419
- prefix?: string | undefined;
420
- sslTransit?: boolean | undefined;
421
- }>, z.ZodObject<{
422
- port: z.ZodOptional<z.ZodNumber>;
423
- host: z.ZodOptional<z.ZodString>;
424
- prefix: z.ZodOptional<z.ZodString>;
425
- sslTransit: z.ZodOptional<z.ZodBoolean>;
426
- user: z.ZodString;
427
- password: z.ZodString;
428
- }, "strip", z.ZodTypeAny, {
429
- user: string;
430
- password: string;
431
- port?: number | undefined;
432
- host?: string | undefined;
433
- prefix?: string | undefined;
434
- sslTransit?: boolean | undefined;
435
- }, {
436
- user: string;
437
- password: string;
438
- port?: number | undefined;
439
- host?: string | undefined;
440
- prefix?: string | undefined;
441
- sslTransit?: boolean | undefined;
442
- }>]>>;
443
- /**
444
- * @deprecated storeCampaignKeyword will be removed in a future release.
445
- */
446
- storeCampaignKeyword: z.ZodOptional<z.ZodString>;
447
- }, "strip", z.ZodTypeAny, {
448
- shopId: number;
449
- locale: string;
450
- auth: {
451
- resetPasswordUrl: string;
452
- };
453
- currency: string;
454
- checkout: {
455
- host: string;
456
- user: string | number;
457
- secret: string;
458
- token: string;
459
- cbdExpiration?: number | undefined;
460
- };
461
- path?: string | string[] | undefined;
462
- domain?: string | undefined;
463
- redis?: {
464
- port?: number | undefined;
465
- host?: string | undefined;
466
- prefix?: string | undefined;
467
- sslTransit?: boolean | undefined;
468
- } | {
469
- user: string;
470
- password: string;
471
- port?: number | undefined;
472
- host?: string | undefined;
473
- prefix?: string | undefined;
474
- sslTransit?: boolean | undefined;
475
- } | undefined;
476
- idp?: {
477
- enabled: boolean;
478
- idpKeys: string[];
479
- idpRedirectURL: string;
480
- } | undefined;
481
- apiBasePath?: string | undefined;
482
- appKeys?: {
483
- wishlistKey: string;
484
- basketKey: string;
485
- hashAlgorithm: string;
486
- } | undefined;
487
- currencyFractionDigits?: number | undefined;
488
- isEnabled?: boolean | undefined;
489
- sessionConfig?: {
490
- sameSite?: "lax" | "strict" | "none" | undefined;
491
- maxAge?: number | undefined;
492
- cookieName?: string | undefined;
493
- secret?: string | string[] | undefined;
494
- domain?: string | undefined;
495
- } | undefined;
496
- sapi?: {
497
- host: string;
498
- token: string;
499
- } | undefined;
500
- bapi?: {
501
- host: string;
502
- token: string;
503
- } | undefined;
504
- storage?: {
505
- session?: {
506
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
507
- port?: number | undefined;
508
- host?: string | undefined;
509
- password?: string | undefined;
510
- token?: string | undefined;
511
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
512
- url?: string | undefined;
513
- username?: string | undefined;
514
- tls?: boolean | undefined;
515
- ttl?: number | undefined;
516
- } | undefined;
517
- cache?: {
518
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
519
- port?: number | undefined;
520
- host?: string | undefined;
521
- password?: string | undefined;
522
- token?: string | undefined;
523
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
524
- url?: string | undefined;
525
- username?: string | undefined;
526
- tls?: boolean | undefined;
527
- ttl?: number | undefined;
528
- } | undefined;
529
- } | undefined;
530
- isDefault?: boolean | "" | undefined;
531
- storeCampaignKeyword?: string | undefined;
532
- }, {
533
- shopId: number;
534
- locale: string;
535
- auth: {
536
- resetPasswordUrl: string;
537
- };
538
- currency: string;
539
- checkout: {
540
- host: string;
541
- user: string | number;
542
- secret: string;
543
- token: string;
544
- cbdExpiration?: number | undefined;
545
- };
546
- path?: string | string[] | undefined;
547
- domain?: string | undefined;
548
- redis?: {
549
- port?: number | undefined;
550
- host?: string | undefined;
551
- prefix?: string | undefined;
552
- sslTransit?: boolean | undefined;
553
- } | {
554
- user: string;
555
- password: string;
556
- port?: number | undefined;
557
- host?: string | undefined;
558
- prefix?: string | undefined;
559
- sslTransit?: boolean | undefined;
560
- } | undefined;
561
- idp?: {
562
- enabled: boolean;
563
- idpKeys: string[];
564
- idpRedirectURL: string;
565
- } | undefined;
566
- apiBasePath?: string | undefined;
567
- appKeys?: {
568
- wishlistKey: string;
569
- basketKey: string;
570
- hashAlgorithm: string;
571
- } | undefined;
572
- currencyFractionDigits?: number | undefined;
573
- isEnabled?: boolean | undefined;
574
- sessionConfig?: {
575
- sameSite?: "lax" | "strict" | "none" | undefined;
576
- maxAge?: number | undefined;
577
- cookieName?: string | undefined;
578
- secret?: string | string[] | undefined;
579
- domain?: string | undefined;
580
- } | undefined;
581
- sapi?: {
582
- host: string;
583
- token: string;
584
- } | undefined;
585
- bapi?: {
586
- host: string;
587
- token: string;
588
- } | undefined;
589
- storage?: {
590
- session?: {
591
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
592
- port?: number | undefined;
593
- host?: string | undefined;
594
- password?: string | undefined;
595
- token?: string | undefined;
596
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
597
- url?: string | undefined;
598
- username?: string | undefined;
599
- tls?: boolean | undefined;
600
- ttl?: number | undefined;
601
- } | undefined;
602
- cache?: {
603
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
604
- port?: number | undefined;
605
- host?: string | undefined;
606
- password?: string | undefined;
607
- token?: string | undefined;
608
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
609
- url?: string | undefined;
610
- username?: string | undefined;
611
- tls?: boolean | undefined;
612
- ttl?: number | undefined;
613
- } | undefined;
614
- } | undefined;
615
- isDefault?: string | boolean | undefined;
616
- storeCampaignKeyword?: string | undefined;
617
- }>;
618
- declare const ShopSelectorSchema: z.ZodEnum<["path", "domain", "path_or_default"]>;
619
- type ShopConfigType = z.infer<typeof ShopConfigSchema>;
620
- declare const StorefrontConfigSchema: z.ZodIntersection<z.ZodObject<{
621
- session: z.ZodOptional<z.ZodObject<{
622
- /**
623
- * The sameSite policy to use for the session cookie
624
- */
625
- sameSite: z.ZodOptional<z.ZodEnum<["lax", "strict", "none"]>>;
626
- /**
627
- * The default maxAge (in seconds) set on the session cookie and default TTL for session store
628
- */
629
- maxAge: z.ZodOptional<z.ZodNumber>;
630
- /**
631
- * The name used for the session cookie
632
- */
633
- cookieName: z.ZodOptional<z.ZodString>;
634
- /**
635
- * The secret used for signing session cookies. If an array is passed, the last
636
- * value is used for signing new cookies, but all values are used to verify cookies.
637
- */
638
- secret: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
639
- /**
640
- * Controls the domain option on the session cookie
641
- */
642
- domain: z.ZodOptional<z.ZodString>;
643
- }, "strip", z.ZodTypeAny, {
644
- sameSite?: "lax" | "strict" | "none" | undefined;
645
- maxAge?: number | undefined;
646
- cookieName?: string | undefined;
647
- secret?: string | string[] | undefined;
648
- domain?: string | undefined;
649
- }, {
650
- sameSite?: "lax" | "strict" | "none" | undefined;
651
- maxAge?: number | undefined;
652
- cookieName?: string | undefined;
653
- secret?: string | string[] | undefined;
654
- domain?: string | undefined;
655
- }>>;
656
- storage: z.ZodOptional<z.ZodObject<{
657
- session: z.ZodOptional<z.ZodObject<{
658
- driver: z.ZodEnum<["azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http", ...("azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http")[]]>;
659
- compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
660
- url: z.ZodOptional<z.ZodString>;
661
- token: z.ZodOptional<z.ZodString>;
662
- host: z.ZodOptional<z.ZodString>;
663
- port: z.ZodOptional<z.ZodNumber>;
664
- username: z.ZodOptional<z.ZodString>;
665
- password: z.ZodOptional<z.ZodString>;
666
- tls: z.ZodOptional<z.ZodBoolean>;
667
- ttl: z.ZodOptional<z.ZodNumber>;
668
- }, "strip", z.ZodTypeAny, {
669
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
670
- port?: number | undefined;
671
- host?: string | undefined;
672
- password?: string | undefined;
673
- token?: string | undefined;
674
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
675
- url?: string | undefined;
676
- username?: string | undefined;
677
- tls?: boolean | undefined;
678
- ttl?: number | undefined;
679
- }, {
680
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
681
- port?: number | undefined;
682
- host?: string | undefined;
683
- password?: string | undefined;
684
- token?: string | undefined;
685
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
686
- url?: string | undefined;
687
- username?: string | undefined;
688
- tls?: boolean | undefined;
689
- ttl?: number | undefined;
690
- }>>;
691
- cache: z.ZodOptional<z.ZodObject<{
692
- driver: z.ZodEnum<["azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http", ...("azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http")[]]>;
693
- compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
694
- url: z.ZodOptional<z.ZodString>;
695
- token: z.ZodOptional<z.ZodString>;
696
- host: z.ZodOptional<z.ZodString>;
697
- port: z.ZodOptional<z.ZodNumber>;
698
- username: z.ZodOptional<z.ZodString>;
699
- password: z.ZodOptional<z.ZodString>;
700
- tls: z.ZodOptional<z.ZodBoolean>;
701
- ttl: z.ZodOptional<z.ZodNumber>;
702
- }, "strip", z.ZodTypeAny, {
703
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
704
- port?: number | undefined;
705
- host?: string | undefined;
706
- password?: string | undefined;
707
- token?: string | undefined;
708
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
709
- url?: string | undefined;
710
- username?: string | undefined;
711
- tls?: boolean | undefined;
712
- ttl?: number | undefined;
713
- }, {
714
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
715
- port?: number | undefined;
716
- host?: string | undefined;
717
- password?: string | undefined;
718
- token?: string | undefined;
719
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
720
- url?: string | undefined;
721
- username?: string | undefined;
722
- tls?: boolean | undefined;
723
- ttl?: number | undefined;
724
- }>>;
725
- }, "strip", z.ZodTypeAny, {
726
- session?: {
727
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
728
- port?: number | undefined;
729
- host?: string | undefined;
730
- password?: string | undefined;
731
- token?: string | undefined;
732
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
733
- url?: string | undefined;
734
- username?: string | undefined;
735
- tls?: boolean | undefined;
736
- ttl?: number | undefined;
737
- } | undefined;
738
- cache?: {
739
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
740
- port?: number | undefined;
741
- host?: string | undefined;
742
- password?: string | undefined;
743
- token?: string | undefined;
744
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
745
- url?: string | undefined;
746
- username?: string | undefined;
747
- tls?: boolean | undefined;
748
- ttl?: number | undefined;
749
- } | undefined;
750
- }, {
751
- session?: {
752
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
753
- port?: number | undefined;
754
- host?: string | undefined;
755
- password?: string | undefined;
756
- token?: string | undefined;
757
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
758
- url?: string | undefined;
759
- username?: string | undefined;
760
- tls?: boolean | undefined;
761
- ttl?: number | undefined;
762
- } | undefined;
763
- cache?: {
764
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
765
- port?: number | undefined;
766
- host?: string | undefined;
767
- password?: string | undefined;
768
- token?: string | undefined;
769
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
770
- url?: string | undefined;
771
- username?: string | undefined;
772
- tls?: boolean | undefined;
773
- ttl?: number | undefined;
774
- } | undefined;
775
- }>>;
776
- oauth: z.ZodObject<{
777
- apiHost: z.ZodString;
778
- clientId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
779
- clientSecret: z.ZodString;
780
- }, "strip", z.ZodTypeAny, {
781
- apiHost: string;
782
- clientId: string | number;
783
- clientSecret: string;
784
- }, {
785
- apiHost: string;
786
- clientId: string | number;
787
- clientSecret: string;
788
- }>;
789
- appKeys: z.ZodObject<{
790
- wishlistKey: z.ZodString;
791
- basketKey: z.ZodString;
792
- hashAlgorithm: z.ZodEnum<[string, ...string[]]>;
793
- }, "strip", z.ZodTypeAny, {
794
- wishlistKey: string;
795
- basketKey: string;
796
- hashAlgorithm: string;
797
- }, {
798
- wishlistKey: string;
799
- basketKey: string;
800
- hashAlgorithm: string;
801
- }>;
802
- apiBasePath: z.ZodOptional<z.ZodString>;
803
- cache: z.ZodOptional<z.ZodObject<{
804
- auth: z.ZodObject<{
805
- username: z.ZodString;
806
- password: z.ZodString;
807
- }, "strip", z.ZodTypeAny, {
808
- password: string;
809
- username: string;
810
- }, {
811
- password: string;
812
- username: string;
813
- }>;
814
- enabled: z.ZodOptional<z.ZodBoolean>;
815
- }, "strip", z.ZodTypeAny, {
816
- auth: {
817
- password: string;
818
- username: string;
819
- };
820
- enabled?: boolean | undefined;
821
- }, {
822
- auth: {
823
- password: string;
824
- username: string;
825
- };
826
- enabled?: boolean | undefined;
827
- }>>;
828
- publicShopData: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
829
- idp: z.ZodOptional<z.ZodObject<{
830
- enabled: z.ZodBoolean;
831
- idpKeys: z.ZodArray<z.ZodString, "many">;
832
- idpRedirectURL: z.ZodString;
833
- }, "strip", z.ZodTypeAny, {
834
- enabled: boolean;
835
- idpKeys: string[];
836
- idpRedirectURL: string;
837
- }, {
838
- enabled: boolean;
839
- idpKeys: string[];
840
- idpRedirectURL: string;
841
- }>>;
842
- /** @deprecated Global storefront.redis config is being removed in favor of `storefront.storage` config */
843
- redis: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
844
- port: z.ZodOptional<z.ZodNumber>;
845
- host: z.ZodOptional<z.ZodString>;
846
- prefix: z.ZodOptional<z.ZodString>;
847
- sslTransit: z.ZodOptional<z.ZodBoolean>;
848
- }, "strip", z.ZodTypeAny, {
849
- port?: number | undefined;
850
- host?: string | undefined;
851
- prefix?: string | undefined;
852
- sslTransit?: boolean | undefined;
853
- }, {
854
- port?: number | undefined;
855
- host?: string | undefined;
856
- prefix?: string | undefined;
857
- sslTransit?: boolean | undefined;
858
- }>, z.ZodObject<{
859
- port: z.ZodOptional<z.ZodNumber>;
860
- host: z.ZodOptional<z.ZodString>;
861
- prefix: z.ZodOptional<z.ZodString>;
862
- sslTransit: z.ZodOptional<z.ZodBoolean>;
863
- user: z.ZodString;
864
- password: z.ZodString;
865
- }, "strip", z.ZodTypeAny, {
866
- user: string;
867
- password: string;
868
- port?: number | undefined;
869
- host?: string | undefined;
870
- prefix?: string | undefined;
871
- sslTransit?: boolean | undefined;
872
- }, {
873
- user: string;
874
- password: string;
875
- port?: number | undefined;
876
- host?: string | undefined;
877
- prefix?: string | undefined;
878
- sslTransit?: boolean | undefined;
879
- }>]>>;
880
- }, "strip", z.ZodTypeAny, {
881
- appKeys: {
882
- wishlistKey: string;
883
- basketKey: string;
884
- hashAlgorithm: string;
885
- };
886
- oauth: {
887
- apiHost: string;
888
- clientId: string | number;
889
- clientSecret: string;
890
- };
891
- redis?: {
892
- port?: number | undefined;
893
- host?: string | undefined;
894
- prefix?: string | undefined;
895
- sslTransit?: boolean | undefined;
896
- } | {
897
- user: string;
898
- password: string;
899
- port?: number | undefined;
900
- host?: string | undefined;
901
- prefix?: string | undefined;
902
- sslTransit?: boolean | undefined;
903
- } | undefined;
904
- idp?: {
905
- enabled: boolean;
906
- idpKeys: string[];
907
- idpRedirectURL: string;
908
- } | undefined;
909
- apiBasePath?: string | undefined;
910
- session?: {
911
- sameSite?: "lax" | "strict" | "none" | undefined;
912
- maxAge?: number | undefined;
913
- cookieName?: string | undefined;
914
- secret?: string | string[] | undefined;
915
- domain?: string | undefined;
916
- } | undefined;
917
- cache?: {
918
- auth: {
919
- password: string;
920
- username: string;
921
- };
922
- enabled?: boolean | undefined;
923
- } | undefined;
924
- storage?: {
925
- session?: {
926
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
927
- port?: number | undefined;
928
- host?: string | undefined;
929
- password?: string | undefined;
930
- token?: string | undefined;
931
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
932
- url?: string | undefined;
933
- username?: string | undefined;
934
- tls?: boolean | undefined;
935
- ttl?: number | undefined;
936
- } | undefined;
937
- cache?: {
938
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
939
- port?: number | undefined;
940
- host?: string | undefined;
941
- password?: string | undefined;
942
- token?: string | undefined;
943
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
944
- url?: string | undefined;
945
- username?: string | undefined;
946
- tls?: boolean | undefined;
947
- ttl?: number | undefined;
948
- } | undefined;
949
- } | undefined;
950
- publicShopData?: string[] | undefined;
951
- }, {
952
- appKeys: {
953
- wishlistKey: string;
954
- basketKey: string;
955
- hashAlgorithm: string;
956
- };
957
- oauth: {
958
- apiHost: string;
959
- clientId: string | number;
960
- clientSecret: string;
961
- };
962
- redis?: {
963
- port?: number | undefined;
964
- host?: string | undefined;
965
- prefix?: string | undefined;
966
- sslTransit?: boolean | undefined;
967
- } | {
968
- user: string;
969
- password: string;
970
- port?: number | undefined;
971
- host?: string | undefined;
972
- prefix?: string | undefined;
973
- sslTransit?: boolean | undefined;
974
- } | undefined;
975
- idp?: {
976
- enabled: boolean;
977
- idpKeys: string[];
978
- idpRedirectURL: string;
979
- } | undefined;
980
- apiBasePath?: string | undefined;
981
- session?: {
982
- sameSite?: "lax" | "strict" | "none" | undefined;
983
- maxAge?: number | undefined;
984
- cookieName?: string | undefined;
985
- secret?: string | string[] | undefined;
986
- domain?: string | undefined;
987
- } | undefined;
988
- cache?: {
989
- auth: {
990
- password: string;
991
- username: string;
992
- };
993
- enabled?: boolean | undefined;
994
- } | undefined;
995
- storage?: {
996
- session?: {
997
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
998
- port?: number | undefined;
999
- host?: string | undefined;
1000
- password?: string | undefined;
1001
- token?: string | undefined;
1002
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1003
- url?: string | undefined;
1004
- username?: string | undefined;
1005
- tls?: boolean | undefined;
1006
- ttl?: number | undefined;
1007
- } | undefined;
1008
- cache?: {
1009
- driver: "azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http";
1010
- port?: number | undefined;
1011
- host?: string | undefined;
1012
- password?: string | undefined;
1013
- token?: string | undefined;
1014
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1015
- url?: string | undefined;
1016
- username?: string | undefined;
1017
- tls?: boolean | undefined;
1018
- ttl?: number | undefined;
1019
- } | undefined;
1020
- } | undefined;
1021
- publicShopData?: string[] | undefined;
1022
- }>, z.ZodUnion<[z.ZodObject<{
1023
- sapi: z.ZodObject<{
1024
- host: z.ZodString;
1025
- token: z.ZodString;
1026
- }, "strip", z.ZodTypeAny, {
1027
- host: string;
1028
- token: string;
1029
- }, {
1030
- host: string;
1031
- token: string;
1032
- }>;
1033
- bapi: z.ZodUndefined;
1034
- }, "strip", z.ZodTypeAny, {
1035
- sapi: {
1036
- host: string;
1037
- token: string;
1038
- };
1039
- bapi?: undefined;
1040
- }, {
1041
- sapi: {
1042
- host: string;
1043
- token: string;
1044
- };
1045
- bapi?: undefined;
1046
- }>, z.ZodObject<{
1047
- /**
1048
- * bapi was renamed. Use {@link sapi} instead.
1049
- */
1050
- bapi: z.ZodObject<{
1051
- host: z.ZodString;
1052
- token: z.ZodString;
1053
- }, "strip", z.ZodTypeAny, {
1054
- host: string;
1055
- token: string;
1056
- }, {
1057
- host: string;
1058
- token: string;
1059
- }>;
1060
- sapi: z.ZodUndefined;
1061
- }, "strip", z.ZodTypeAny, {
1062
- bapi: {
1063
- host: string;
1064
- token: string;
1065
- };
1066
- sapi?: undefined;
1067
- }, {
1068
- bapi: {
1069
- host: string;
1070
- token: string;
1071
- };
1072
- sapi?: undefined;
1073
- }>]>>;
1074
- declare const PublicRuntimeConfigSchema: z.ZodObject<{
1075
- log: z.ZodObject<{
1076
- name: z.ZodString;
1077
- level: z.ZodType<LogLevel, z.ZodTypeDef, LogLevel>;
1078
- }, "strip", z.ZodTypeAny, {
1079
- name: string;
1080
- level: LogLevel;
1081
- }, {
1082
- name: string;
1083
- level: LogLevel;
1084
- }>;
1085
- disableDefaultGetCachedDataOverride: z.ZodOptional<z.ZodBoolean>;
1086
- }, "strip", z.ZodTypeAny, {
1087
- log: {
1088
- name: string;
1089
- level: LogLevel;
1090
- };
1091
- disableDefaultGetCachedDataOverride?: boolean | undefined;
1092
- }, {
1093
- log: {
1094
- name: string;
1095
- level: LogLevel;
1096
- };
1097
- disableDefaultGetCachedDataOverride?: boolean | undefined;
1098
- }>;
1099
- type CheckoutShopConfigType = z.infer<typeof CheckoutShopConfigSchema>;
1100
- type SessionType = z.infer<typeof SessionSchema>;
1101
- type StorageType = z.infer<typeof StorageSchema>;
1102
- type SapiConfigType = z.infer<typeof SapiSchema>;
1103
- type StorefrontConfigType = z.infer<typeof StorefrontConfigSchema>;
1104
- type ShopSelectorType = z.infer<typeof ShopSelectorSchema>;
1105
- type RedirectType = z.infer<typeof RedirectsSchema>;
1106
- type IdpType = z.infer<typeof IdpSchema>;
1107
- type RedisConfigType = z.infer<typeof RedisConfigSchema>;
1108
- type ModulePublicRuntimeConfigType = z.infer<typeof PublicRuntimeConfigSchema>;
1109
-
1110
- type StorageProvider = 'memory' | 'redis';
1111
- type CheckoutShopConfig = CheckoutShopConfigType;
1112
- /**
1113
- * Options to configure how the storefront core manages sessions
1114
- */
1115
- type SessionConfig = SessionType & {
1116
- /**
1117
- * The provider to use for the persistent storage.
1118
- * @deprecated Storefront Core is now relying on a unified cache configuration. Use the storage option instead.
1119
- */
1120
- provider?: StorageProvider;
1121
- };
1122
- /**
1123
- * @deprecated
1124
- */
1125
- type RedisConfig = RedisConfigType;
1126
- type CustomDriverName = string & {
1127
- _custom?: unknown;
1128
- };
1129
- type StorageEntity<Driver extends BuiltinDriverName | CustomDriverName, DriverOptions = Driver extends keyof BuiltinDriverOptions ? BuiltinDriverOptions[Driver] : unknown> = {
1130
- driver: Driver;
1131
- compression?: CompressionEncodings;
1132
- } & DriverOptions;
1133
- interface StorageConfig {
1134
- cache?: StorageType;
1135
- session?: StorageType;
1136
- }
1137
- /**
1138
- * @deprecated Use {@link SapiConfig} instead
1139
- */
1140
- type BapiConfig = SapiConfigType;
1141
- type SapiConfig = SapiConfigType;
1142
- interface AppKeys {
1143
- wishlistKey: string;
1144
- basketKey: string;
1145
- hashAlgorithm: HashAlgorithm;
1146
- }
1147
- interface AdditionalShopConfig {
1148
- }
1149
- type ShopConfig = ShopConfigType & AdditionalShopConfig;
1150
- type ShopConfigIndexed = Record<string, ShopConfig>;
1151
- interface PublicShopConfig extends Pick<ShopConfig, 'shopId' | 'domain' | 'locale' | 'currency' | 'currencyFractionDigits'> {
1152
- checkout: Pick<CheckoutShopConfig, 'host'>;
1153
- apiBasePath: string;
1154
- idp?: IdpType;
1155
- path?: string;
1156
- }
1157
- type StorefrontConfig = StorefrontConfigType & {
1158
- withParams?: WithParams;
1159
- };
1160
- type ModuleOption = {
1161
- shopSelector: ShopSelectorType;
1162
- redirects?: RedirectType;
1163
- } & ({
1164
- /**
1165
- * @deprecated stores got renamed. Use {@link ModuleOption.shops} instead
1166
- */
1167
- stores: ShopConfigIndexed;
1168
- } | {
1169
- shops: ShopConfigIndexed;
1170
- });
1171
- type ModuleBaseOptions = StorefrontConfig & ModuleOption & {
1172
- rpcDir?: string;
1173
- rpcMethodNames?: string[];
1174
- rpcMethodOverrides?: Array<keyof typeof rpcMethods>;
1175
- };
1176
- interface CheckoutEvent {
1177
- action?: 'authenticated';
1178
- type?: 'tracking';
1179
- user: ShopUser;
1180
- accessToken: string;
1181
- event?: {
1182
- event: 'login' | 'add_to_cart' | 'remove_from_cart';
1183
- status: 'successful' | 'error';
1184
- };
1185
- }
1186
- interface ModulePublicRuntimeConfig extends ModulePublicRuntimeConfigType {
1187
- }
1188
- declare module '@nuxt/schema' {
1189
- interface RuntimeConfig {
1190
- storefront: ModuleBaseOptions;
1191
- }
1192
- interface PublicRuntimeConfig {
1193
- storefront: ModulePublicRuntimeConfig;
1194
- }
1195
- }
1196
- declare module 'nitropack' {
1197
- interface NitroRuntimeHooks extends StorefrontHooks {
1198
- 'storefront:context:created': (context: RpcContext) => HookResult;
1199
- 'storefront:rpc:before': (rpcName: RpcMethodName, context: RpcContext, payload: unknown) => HookResult;
1200
- 'storefront:rpc:after': (rpcName: RpcMethodName, context: RpcContext, result: unknown) => HookResult;
1201
- 'storefront:rpc:error': (rpcName: RpcMethodName, context: RpcContext, error: unknown) => HookResult;
1202
- }
1203
- }
1204
-
1205
- export type { AppKeys as A, BapiConfig as B, CheckoutShopConfig as C, ModuleBaseOptions as M, PublicShopConfig as P, RedisConfig as R, StorageProvider as S, SessionConfig as a, StorageEntity as b, StorageConfig as c, SapiConfig as d, AdditionalShopConfig as e, ShopConfig as f, ShopConfigIndexed as g, StorefrontConfig as h, CheckoutEvent as i, ModulePublicRuntimeConfig as j };