@scayle/storefront-nuxt 7.72.4 → 7.73.0

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.
@@ -0,0 +1,1135 @@
1
+ import { HookResult } from '@nuxt/schema';
2
+ import { LogLevel, RpcContext, HashAlgorithm, WithParams, rpcMethods, ShopUser } from '@scayle/storefront-core';
3
+ import { CompressionEncodings } from '@scayle/unstorage-compression-driver';
4
+ import { BuiltinDriverName, BuiltinDriverOptions } from 'unstorage';
5
+ import { z } from 'zod';
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 BapiSchema: 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.ZodString>;
184
+ apiBasePath: z.ZodOptional<z.ZodString>;
185
+ domain: 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
+ storeCampaignKeyword: z.ZodOptional<z.ZodString>;
195
+ currency: z.ZodString;
196
+ checkout: z.ZodObject<{
197
+ token: z.ZodString;
198
+ secret: z.ZodString;
199
+ host: z.ZodString;
200
+ user: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
201
+ cbdExpiration: z.ZodOptional<z.ZodNumber>;
202
+ }, "strip", z.ZodTypeAny, {
203
+ host: string;
204
+ user: string | number;
205
+ secret: string;
206
+ token: string;
207
+ cbdExpiration?: number | undefined;
208
+ }, {
209
+ host: string;
210
+ user: string | number;
211
+ secret: string;
212
+ token: string;
213
+ cbdExpiration?: number | undefined;
214
+ }>;
215
+ appKeys: z.ZodOptional<z.ZodObject<{
216
+ wishlistKey: z.ZodString;
217
+ basketKey: z.ZodString;
218
+ hashAlgorithm: z.ZodEnum<[string, ...string[]]>;
219
+ }, "strip", z.ZodTypeAny, {
220
+ wishlistKey: string;
221
+ basketKey: string;
222
+ hashAlgorithm: string;
223
+ }, {
224
+ wishlistKey: string;
225
+ basketKey: string;
226
+ hashAlgorithm: string;
227
+ }>>;
228
+ currencyFractionDigits: z.ZodOptional<z.ZodNumber>;
229
+ isEnabled: z.ZodOptional<z.ZodBoolean>;
230
+ sessionConfig: z.ZodOptional<z.ZodObject<{
231
+ /**
232
+ * The sameSite policy to use for the session cookie
233
+ */
234
+ sameSite: z.ZodOptional<z.ZodEnum<["lax", "strict", "none"]>>;
235
+ /**
236
+ * The default maxAge (in seconds) set on the session cookie and default TTL for session store
237
+ */
238
+ maxAge: z.ZodOptional<z.ZodNumber>;
239
+ /**
240
+ * The name used for the session cookie
241
+ */
242
+ cookieName: z.ZodOptional<z.ZodString>;
243
+ /**
244
+ * The secret used for signing session cookies. If an array is passed, the last
245
+ * value is used for signing new cookies, but all values are used to verify cookies.
246
+ */
247
+ secret: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
248
+ /**
249
+ * Controls the domain option on the session cookie
250
+ */
251
+ domain: z.ZodOptional<z.ZodString>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ sameSite?: "lax" | "strict" | "none" | undefined;
254
+ maxAge?: number | undefined;
255
+ cookieName?: string | undefined;
256
+ secret?: string | string[] | undefined;
257
+ domain?: string | undefined;
258
+ }, {
259
+ sameSite?: "lax" | "strict" | "none" | undefined;
260
+ maxAge?: number | undefined;
261
+ cookieName?: string | undefined;
262
+ secret?: string | string[] | undefined;
263
+ domain?: string | undefined;
264
+ }>>;
265
+ bapi: z.ZodOptional<z.ZodObject<{
266
+ host: z.ZodString;
267
+ token: z.ZodString;
268
+ }, "strip", z.ZodTypeAny, {
269
+ host: string;
270
+ token: string;
271
+ }, {
272
+ host: string;
273
+ token: string;
274
+ }>>;
275
+ storage: z.ZodOptional<z.ZodObject<{
276
+ session: z.ZodOptional<z.ZodObject<{
277
+ 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")[]]>;
278
+ compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
279
+ url: z.ZodOptional<z.ZodString>;
280
+ token: z.ZodOptional<z.ZodString>;
281
+ host: z.ZodOptional<z.ZodString>;
282
+ port: z.ZodOptional<z.ZodNumber>;
283
+ username: z.ZodOptional<z.ZodString>;
284
+ password: z.ZodOptional<z.ZodString>;
285
+ tls: z.ZodOptional<z.ZodBoolean>;
286
+ ttl: z.ZodOptional<z.ZodNumber>;
287
+ }, "strip", z.ZodTypeAny, {
288
+ 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";
289
+ port?: number | undefined;
290
+ host?: string | undefined;
291
+ password?: string | undefined;
292
+ token?: string | undefined;
293
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
294
+ url?: string | undefined;
295
+ username?: string | undefined;
296
+ tls?: boolean | undefined;
297
+ ttl?: number | undefined;
298
+ }, {
299
+ 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";
300
+ port?: number | undefined;
301
+ host?: string | undefined;
302
+ password?: string | undefined;
303
+ token?: string | undefined;
304
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
305
+ url?: string | undefined;
306
+ username?: string | undefined;
307
+ tls?: boolean | undefined;
308
+ ttl?: number | undefined;
309
+ }>>;
310
+ cache: z.ZodOptional<z.ZodObject<{
311
+ 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")[]]>;
312
+ compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
313
+ url: z.ZodOptional<z.ZodString>;
314
+ token: z.ZodOptional<z.ZodString>;
315
+ host: z.ZodOptional<z.ZodString>;
316
+ port: z.ZodOptional<z.ZodNumber>;
317
+ username: z.ZodOptional<z.ZodString>;
318
+ password: z.ZodOptional<z.ZodString>;
319
+ tls: z.ZodOptional<z.ZodBoolean>;
320
+ ttl: z.ZodOptional<z.ZodNumber>;
321
+ }, "strip", z.ZodTypeAny, {
322
+ 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";
323
+ port?: number | undefined;
324
+ host?: string | undefined;
325
+ password?: string | undefined;
326
+ token?: string | undefined;
327
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
328
+ url?: string | undefined;
329
+ username?: string | undefined;
330
+ tls?: boolean | undefined;
331
+ ttl?: number | undefined;
332
+ }, {
333
+ 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";
334
+ port?: number | undefined;
335
+ host?: string | undefined;
336
+ password?: string | undefined;
337
+ token?: string | undefined;
338
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
339
+ url?: string | undefined;
340
+ username?: string | undefined;
341
+ tls?: boolean | undefined;
342
+ ttl?: number | undefined;
343
+ }>>;
344
+ }, "strip", z.ZodTypeAny, {
345
+ session?: {
346
+ 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";
347
+ port?: number | undefined;
348
+ host?: string | undefined;
349
+ password?: string | undefined;
350
+ token?: string | undefined;
351
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
352
+ url?: string | undefined;
353
+ username?: string | undefined;
354
+ tls?: boolean | undefined;
355
+ ttl?: number | undefined;
356
+ } | undefined;
357
+ cache?: {
358
+ 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";
359
+ port?: number | undefined;
360
+ host?: string | undefined;
361
+ password?: string | undefined;
362
+ token?: string | undefined;
363
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
364
+ url?: string | undefined;
365
+ username?: string | undefined;
366
+ tls?: boolean | undefined;
367
+ ttl?: number | undefined;
368
+ } | undefined;
369
+ }, {
370
+ session?: {
371
+ 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";
372
+ port?: number | undefined;
373
+ host?: string | undefined;
374
+ password?: string | undefined;
375
+ token?: string | undefined;
376
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
377
+ url?: string | undefined;
378
+ username?: string | undefined;
379
+ tls?: boolean | undefined;
380
+ ttl?: number | undefined;
381
+ } | undefined;
382
+ cache?: {
383
+ 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";
384
+ port?: number | undefined;
385
+ host?: string | undefined;
386
+ password?: string | undefined;
387
+ token?: string | undefined;
388
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
389
+ url?: string | undefined;
390
+ username?: string | undefined;
391
+ tls?: boolean | undefined;
392
+ ttl?: number | undefined;
393
+ } | undefined;
394
+ }>>;
395
+ isDefault: z.ZodOptional<z.ZodBoolean>;
396
+ /** @deprecated shop-specific storefront.redis config is being removed in favor of global nitro.storage config */
397
+ redis: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
398
+ port: z.ZodOptional<z.ZodNumber>;
399
+ host: z.ZodOptional<z.ZodString>;
400
+ prefix: z.ZodOptional<z.ZodString>;
401
+ sslTransit: z.ZodOptional<z.ZodBoolean>;
402
+ }, "strip", z.ZodTypeAny, {
403
+ port?: number | undefined;
404
+ host?: string | undefined;
405
+ prefix?: string | undefined;
406
+ sslTransit?: boolean | undefined;
407
+ }, {
408
+ port?: number | undefined;
409
+ host?: string | undefined;
410
+ prefix?: string | undefined;
411
+ sslTransit?: boolean | undefined;
412
+ }>, z.ZodObject<{
413
+ port: z.ZodOptional<z.ZodNumber>;
414
+ host: z.ZodOptional<z.ZodString>;
415
+ prefix: z.ZodOptional<z.ZodString>;
416
+ sslTransit: z.ZodOptional<z.ZodBoolean>;
417
+ user: z.ZodString;
418
+ password: z.ZodString;
419
+ }, "strip", z.ZodTypeAny, {
420
+ user: string;
421
+ password: string;
422
+ port?: number | undefined;
423
+ host?: string | undefined;
424
+ prefix?: string | undefined;
425
+ sslTransit?: boolean | undefined;
426
+ }, {
427
+ user: string;
428
+ password: string;
429
+ port?: number | undefined;
430
+ host?: string | undefined;
431
+ prefix?: string | undefined;
432
+ sslTransit?: boolean | undefined;
433
+ }>]>>;
434
+ }, "strip", z.ZodTypeAny, {
435
+ domain: string;
436
+ shopId: number;
437
+ locale: string;
438
+ auth: {
439
+ resetPasswordUrl: string;
440
+ };
441
+ currency: string;
442
+ checkout: {
443
+ host: string;
444
+ user: string | number;
445
+ secret: string;
446
+ token: string;
447
+ cbdExpiration?: number | undefined;
448
+ };
449
+ path?: string | undefined;
450
+ redis?: {
451
+ port?: number | undefined;
452
+ host?: string | undefined;
453
+ prefix?: string | undefined;
454
+ sslTransit?: boolean | undefined;
455
+ } | {
456
+ user: string;
457
+ password: string;
458
+ port?: number | undefined;
459
+ host?: string | undefined;
460
+ prefix?: string | undefined;
461
+ sslTransit?: boolean | undefined;
462
+ } | undefined;
463
+ idp?: {
464
+ enabled: boolean;
465
+ idpKeys: string[];
466
+ idpRedirectURL: string;
467
+ } | undefined;
468
+ apiBasePath?: string | undefined;
469
+ storeCampaignKeyword?: string | undefined;
470
+ appKeys?: {
471
+ wishlistKey: string;
472
+ basketKey: string;
473
+ hashAlgorithm: string;
474
+ } | undefined;
475
+ currencyFractionDigits?: number | undefined;
476
+ isEnabled?: boolean | undefined;
477
+ sessionConfig?: {
478
+ sameSite?: "lax" | "strict" | "none" | undefined;
479
+ maxAge?: number | undefined;
480
+ cookieName?: string | undefined;
481
+ secret?: string | string[] | undefined;
482
+ domain?: string | undefined;
483
+ } | undefined;
484
+ bapi?: {
485
+ host: string;
486
+ token: string;
487
+ } | undefined;
488
+ storage?: {
489
+ session?: {
490
+ 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";
491
+ port?: number | undefined;
492
+ host?: string | undefined;
493
+ password?: string | undefined;
494
+ token?: string | undefined;
495
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
496
+ url?: string | undefined;
497
+ username?: string | undefined;
498
+ tls?: boolean | undefined;
499
+ ttl?: number | undefined;
500
+ } | undefined;
501
+ cache?: {
502
+ 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";
503
+ port?: number | undefined;
504
+ host?: string | undefined;
505
+ password?: string | undefined;
506
+ token?: string | undefined;
507
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
508
+ url?: string | undefined;
509
+ username?: string | undefined;
510
+ tls?: boolean | undefined;
511
+ ttl?: number | undefined;
512
+ } | undefined;
513
+ } | undefined;
514
+ isDefault?: boolean | undefined;
515
+ }, {
516
+ domain: string;
517
+ shopId: number;
518
+ locale: string;
519
+ auth: {
520
+ resetPasswordUrl: string;
521
+ };
522
+ currency: string;
523
+ checkout: {
524
+ host: string;
525
+ user: string | number;
526
+ secret: string;
527
+ token: string;
528
+ cbdExpiration?: number | undefined;
529
+ };
530
+ path?: string | undefined;
531
+ redis?: {
532
+ port?: number | undefined;
533
+ host?: string | undefined;
534
+ prefix?: string | undefined;
535
+ sslTransit?: boolean | undefined;
536
+ } | {
537
+ user: string;
538
+ password: string;
539
+ port?: number | undefined;
540
+ host?: string | undefined;
541
+ prefix?: string | undefined;
542
+ sslTransit?: boolean | undefined;
543
+ } | undefined;
544
+ idp?: {
545
+ enabled: boolean;
546
+ idpKeys: string[];
547
+ idpRedirectURL: string;
548
+ } | undefined;
549
+ apiBasePath?: string | undefined;
550
+ storeCampaignKeyword?: string | undefined;
551
+ appKeys?: {
552
+ wishlistKey: string;
553
+ basketKey: string;
554
+ hashAlgorithm: string;
555
+ } | undefined;
556
+ currencyFractionDigits?: number | undefined;
557
+ isEnabled?: boolean | undefined;
558
+ sessionConfig?: {
559
+ sameSite?: "lax" | "strict" | "none" | undefined;
560
+ maxAge?: number | undefined;
561
+ cookieName?: string | undefined;
562
+ secret?: string | string[] | undefined;
563
+ domain?: string | undefined;
564
+ } | undefined;
565
+ bapi?: {
566
+ host: string;
567
+ token: string;
568
+ } | undefined;
569
+ storage?: {
570
+ session?: {
571
+ 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";
572
+ port?: number | undefined;
573
+ host?: string | undefined;
574
+ password?: string | undefined;
575
+ token?: string | undefined;
576
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
577
+ url?: string | undefined;
578
+ username?: string | undefined;
579
+ tls?: boolean | undefined;
580
+ ttl?: number | undefined;
581
+ } | undefined;
582
+ cache?: {
583
+ 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";
584
+ port?: number | undefined;
585
+ host?: string | undefined;
586
+ password?: string | undefined;
587
+ token?: string | undefined;
588
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
589
+ url?: string | undefined;
590
+ username?: string | undefined;
591
+ tls?: boolean | undefined;
592
+ ttl?: number | undefined;
593
+ } | undefined;
594
+ } | undefined;
595
+ isDefault?: boolean | undefined;
596
+ }>;
597
+ declare const ShopSelectorSchema: z.ZodEnum<["path", "domain", "path_or_default"]>;
598
+ declare const StorefrontConfigSchema: z.ZodObject<{
599
+ session: z.ZodOptional<z.ZodObject<{
600
+ /**
601
+ * The sameSite policy to use for the session cookie
602
+ */
603
+ sameSite: z.ZodOptional<z.ZodEnum<["lax", "strict", "none"]>>;
604
+ /**
605
+ * The default maxAge (in seconds) set on the session cookie and default TTL for session store
606
+ */
607
+ maxAge: z.ZodOptional<z.ZodNumber>;
608
+ /**
609
+ * The name used for the session cookie
610
+ */
611
+ cookieName: z.ZodOptional<z.ZodString>;
612
+ /**
613
+ * The secret used for signing session cookies. If an array is passed, the last
614
+ * value is used for signing new cookies, but all values are used to verify cookies.
615
+ */
616
+ secret: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
617
+ /**
618
+ * Controls the domain option on the session cookie
619
+ */
620
+ domain: z.ZodOptional<z.ZodString>;
621
+ }, "strip", z.ZodTypeAny, {
622
+ sameSite?: "lax" | "strict" | "none" | undefined;
623
+ maxAge?: number | undefined;
624
+ cookieName?: string | undefined;
625
+ secret?: string | string[] | undefined;
626
+ domain?: string | undefined;
627
+ }, {
628
+ sameSite?: "lax" | "strict" | "none" | undefined;
629
+ maxAge?: number | undefined;
630
+ cookieName?: string | undefined;
631
+ secret?: string | string[] | undefined;
632
+ domain?: string | undefined;
633
+ }>>;
634
+ bapi: z.ZodObject<{
635
+ host: z.ZodString;
636
+ token: z.ZodString;
637
+ }, "strip", z.ZodTypeAny, {
638
+ host: string;
639
+ token: string;
640
+ }, {
641
+ host: string;
642
+ token: string;
643
+ }>;
644
+ storage: z.ZodOptional<z.ZodObject<{
645
+ session: z.ZodOptional<z.ZodObject<{
646
+ 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")[]]>;
647
+ compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
648
+ url: z.ZodOptional<z.ZodString>;
649
+ token: z.ZodOptional<z.ZodString>;
650
+ host: z.ZodOptional<z.ZodString>;
651
+ port: z.ZodOptional<z.ZodNumber>;
652
+ username: z.ZodOptional<z.ZodString>;
653
+ password: z.ZodOptional<z.ZodString>;
654
+ tls: z.ZodOptional<z.ZodBoolean>;
655
+ ttl: z.ZodOptional<z.ZodNumber>;
656
+ }, "strip", z.ZodTypeAny, {
657
+ 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";
658
+ port?: number | undefined;
659
+ host?: string | undefined;
660
+ password?: string | undefined;
661
+ token?: string | undefined;
662
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
663
+ url?: string | undefined;
664
+ username?: string | undefined;
665
+ tls?: boolean | undefined;
666
+ ttl?: number | undefined;
667
+ }, {
668
+ 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";
669
+ port?: number | undefined;
670
+ host?: string | undefined;
671
+ password?: string | undefined;
672
+ token?: string | undefined;
673
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
674
+ url?: string | undefined;
675
+ username?: string | undefined;
676
+ tls?: boolean | undefined;
677
+ ttl?: number | undefined;
678
+ }>>;
679
+ cache: z.ZodOptional<z.ZodObject<{
680
+ 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")[]]>;
681
+ compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
682
+ url: z.ZodOptional<z.ZodString>;
683
+ token: z.ZodOptional<z.ZodString>;
684
+ host: z.ZodOptional<z.ZodString>;
685
+ port: z.ZodOptional<z.ZodNumber>;
686
+ username: z.ZodOptional<z.ZodString>;
687
+ password: z.ZodOptional<z.ZodString>;
688
+ tls: z.ZodOptional<z.ZodBoolean>;
689
+ ttl: z.ZodOptional<z.ZodNumber>;
690
+ }, "strip", z.ZodTypeAny, {
691
+ 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";
692
+ port?: number | undefined;
693
+ host?: string | undefined;
694
+ password?: string | undefined;
695
+ token?: string | undefined;
696
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
697
+ url?: string | undefined;
698
+ username?: string | undefined;
699
+ tls?: boolean | undefined;
700
+ ttl?: number | undefined;
701
+ }, {
702
+ 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";
703
+ port?: number | undefined;
704
+ host?: string | undefined;
705
+ password?: string | undefined;
706
+ token?: string | undefined;
707
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
708
+ url?: string | undefined;
709
+ username?: string | undefined;
710
+ tls?: boolean | undefined;
711
+ ttl?: number | undefined;
712
+ }>>;
713
+ }, "strip", z.ZodTypeAny, {
714
+ session?: {
715
+ 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";
716
+ port?: number | undefined;
717
+ host?: string | undefined;
718
+ password?: string | undefined;
719
+ token?: string | undefined;
720
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
721
+ url?: string | undefined;
722
+ username?: string | undefined;
723
+ tls?: boolean | undefined;
724
+ ttl?: number | undefined;
725
+ } | undefined;
726
+ cache?: {
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
+ }, {
739
+ session?: {
740
+ 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";
741
+ port?: number | undefined;
742
+ host?: string | undefined;
743
+ password?: string | undefined;
744
+ token?: string | undefined;
745
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
746
+ url?: string | undefined;
747
+ username?: string | undefined;
748
+ tls?: boolean | undefined;
749
+ ttl?: number | undefined;
750
+ } | undefined;
751
+ cache?: {
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
+ }>>;
764
+ oauth: z.ZodObject<{
765
+ apiHost: z.ZodString;
766
+ clientId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
767
+ clientSecret: z.ZodString;
768
+ }, "strip", z.ZodTypeAny, {
769
+ apiHost: string;
770
+ clientId: string | number;
771
+ clientSecret: string;
772
+ }, {
773
+ apiHost: string;
774
+ clientId: string | number;
775
+ clientSecret: string;
776
+ }>;
777
+ appKeys: z.ZodObject<{
778
+ wishlistKey: z.ZodString;
779
+ basketKey: z.ZodString;
780
+ hashAlgorithm: z.ZodEnum<[string, ...string[]]>;
781
+ }, "strip", z.ZodTypeAny, {
782
+ wishlistKey: string;
783
+ basketKey: string;
784
+ hashAlgorithm: string;
785
+ }, {
786
+ wishlistKey: string;
787
+ basketKey: string;
788
+ hashAlgorithm: string;
789
+ }>;
790
+ apiBasePath: z.ZodOptional<z.ZodString>;
791
+ cache: z.ZodOptional<z.ZodObject<{
792
+ auth: z.ZodObject<{
793
+ username: z.ZodString;
794
+ password: z.ZodString;
795
+ }, "strip", z.ZodTypeAny, {
796
+ password: string;
797
+ username: string;
798
+ }, {
799
+ password: string;
800
+ username: string;
801
+ }>;
802
+ enabled: z.ZodBoolean;
803
+ }, "strip", z.ZodTypeAny, {
804
+ enabled: boolean;
805
+ auth: {
806
+ password: string;
807
+ username: string;
808
+ };
809
+ }, {
810
+ enabled: boolean;
811
+ auth: {
812
+ password: string;
813
+ username: string;
814
+ };
815
+ }>>;
816
+ publicShopData: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
817
+ idp: z.ZodOptional<z.ZodObject<{
818
+ enabled: z.ZodBoolean;
819
+ idpKeys: z.ZodArray<z.ZodString, "many">;
820
+ idpRedirectURL: z.ZodString;
821
+ }, "strip", z.ZodTypeAny, {
822
+ enabled: boolean;
823
+ idpKeys: string[];
824
+ idpRedirectURL: string;
825
+ }, {
826
+ enabled: boolean;
827
+ idpKeys: string[];
828
+ idpRedirectURL: string;
829
+ }>>;
830
+ /** @deprecated Global storefront.redis config is being removed in favor of `storefront.storage` config */
831
+ redis: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
832
+ port: z.ZodOptional<z.ZodNumber>;
833
+ host: z.ZodOptional<z.ZodString>;
834
+ prefix: z.ZodOptional<z.ZodString>;
835
+ sslTransit: z.ZodOptional<z.ZodBoolean>;
836
+ }, "strip", z.ZodTypeAny, {
837
+ port?: number | undefined;
838
+ host?: string | undefined;
839
+ prefix?: string | undefined;
840
+ sslTransit?: boolean | undefined;
841
+ }, {
842
+ port?: number | undefined;
843
+ host?: string | undefined;
844
+ prefix?: string | undefined;
845
+ sslTransit?: boolean | undefined;
846
+ }>, z.ZodObject<{
847
+ port: z.ZodOptional<z.ZodNumber>;
848
+ host: z.ZodOptional<z.ZodString>;
849
+ prefix: z.ZodOptional<z.ZodString>;
850
+ sslTransit: z.ZodOptional<z.ZodBoolean>;
851
+ user: z.ZodString;
852
+ password: z.ZodString;
853
+ }, "strip", z.ZodTypeAny, {
854
+ user: string;
855
+ password: string;
856
+ port?: number | undefined;
857
+ host?: string | undefined;
858
+ prefix?: string | undefined;
859
+ sslTransit?: boolean | undefined;
860
+ }, {
861
+ user: string;
862
+ password: string;
863
+ port?: number | undefined;
864
+ host?: string | undefined;
865
+ prefix?: string | undefined;
866
+ sslTransit?: boolean | undefined;
867
+ }>]>>;
868
+ }, "strip", z.ZodTypeAny, {
869
+ appKeys: {
870
+ wishlistKey: string;
871
+ basketKey: string;
872
+ hashAlgorithm: string;
873
+ };
874
+ bapi: {
875
+ host: string;
876
+ token: string;
877
+ };
878
+ oauth: {
879
+ apiHost: string;
880
+ clientId: string | number;
881
+ clientSecret: string;
882
+ };
883
+ redis?: {
884
+ port?: number | undefined;
885
+ host?: string | undefined;
886
+ prefix?: string | undefined;
887
+ sslTransit?: boolean | undefined;
888
+ } | {
889
+ user: string;
890
+ password: string;
891
+ port?: number | undefined;
892
+ host?: string | undefined;
893
+ prefix?: string | undefined;
894
+ sslTransit?: boolean | undefined;
895
+ } | undefined;
896
+ idp?: {
897
+ enabled: boolean;
898
+ idpKeys: string[];
899
+ idpRedirectURL: string;
900
+ } | undefined;
901
+ apiBasePath?: string | undefined;
902
+ session?: {
903
+ sameSite?: "lax" | "strict" | "none" | undefined;
904
+ maxAge?: number | undefined;
905
+ cookieName?: string | undefined;
906
+ secret?: string | string[] | undefined;
907
+ domain?: string | undefined;
908
+ } | undefined;
909
+ cache?: {
910
+ enabled: boolean;
911
+ auth: {
912
+ password: string;
913
+ username: string;
914
+ };
915
+ } | undefined;
916
+ storage?: {
917
+ session?: {
918
+ 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";
919
+ port?: number | undefined;
920
+ host?: string | undefined;
921
+ password?: string | undefined;
922
+ token?: string | undefined;
923
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
924
+ url?: string | undefined;
925
+ username?: string | undefined;
926
+ tls?: boolean | undefined;
927
+ ttl?: number | undefined;
928
+ } | undefined;
929
+ cache?: {
930
+ 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";
931
+ port?: number | undefined;
932
+ host?: string | undefined;
933
+ password?: string | undefined;
934
+ token?: string | undefined;
935
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
936
+ url?: string | undefined;
937
+ username?: string | undefined;
938
+ tls?: boolean | undefined;
939
+ ttl?: number | undefined;
940
+ } | undefined;
941
+ } | undefined;
942
+ publicShopData?: string[] | undefined;
943
+ }, {
944
+ appKeys: {
945
+ wishlistKey: string;
946
+ basketKey: string;
947
+ hashAlgorithm: string;
948
+ };
949
+ bapi: {
950
+ host: string;
951
+ token: string;
952
+ };
953
+ oauth: {
954
+ apiHost: string;
955
+ clientId: string | number;
956
+ clientSecret: string;
957
+ };
958
+ redis?: {
959
+ port?: number | undefined;
960
+ host?: string | undefined;
961
+ prefix?: string | undefined;
962
+ sslTransit?: boolean | undefined;
963
+ } | {
964
+ user: string;
965
+ password: string;
966
+ port?: number | undefined;
967
+ host?: string | undefined;
968
+ prefix?: string | undefined;
969
+ sslTransit?: boolean | undefined;
970
+ } | undefined;
971
+ idp?: {
972
+ enabled: boolean;
973
+ idpKeys: string[];
974
+ idpRedirectURL: string;
975
+ } | undefined;
976
+ apiBasePath?: string | undefined;
977
+ session?: {
978
+ sameSite?: "lax" | "strict" | "none" | undefined;
979
+ maxAge?: number | undefined;
980
+ cookieName?: string | undefined;
981
+ secret?: string | string[] | undefined;
982
+ domain?: string | undefined;
983
+ } | undefined;
984
+ cache?: {
985
+ enabled: boolean;
986
+ auth: {
987
+ password: string;
988
+ username: string;
989
+ };
990
+ } | undefined;
991
+ storage?: {
992
+ session?: {
993
+ 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";
994
+ port?: number | undefined;
995
+ host?: string | undefined;
996
+ password?: string | undefined;
997
+ token?: string | undefined;
998
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
999
+ url?: string | undefined;
1000
+ username?: string | undefined;
1001
+ tls?: boolean | undefined;
1002
+ ttl?: number | undefined;
1003
+ } | undefined;
1004
+ cache?: {
1005
+ 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";
1006
+ port?: number | undefined;
1007
+ host?: string | undefined;
1008
+ password?: string | undefined;
1009
+ token?: string | undefined;
1010
+ compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1011
+ url?: string | undefined;
1012
+ username?: string | undefined;
1013
+ tls?: boolean | undefined;
1014
+ ttl?: number | undefined;
1015
+ } | undefined;
1016
+ } | undefined;
1017
+ publicShopData?: string[] | undefined;
1018
+ }>;
1019
+ declare const PublicRuntimeConfigSchema: z.ZodObject<{
1020
+ log: z.ZodObject<{
1021
+ name: z.ZodString;
1022
+ level: z.ZodType<LogLevel, z.ZodTypeDef, LogLevel>;
1023
+ }, "strip", z.ZodTypeAny, {
1024
+ name: string;
1025
+ level: LogLevel;
1026
+ }, {
1027
+ name: string;
1028
+ level: LogLevel;
1029
+ }>;
1030
+ }, "strip", z.ZodTypeAny, {
1031
+ log: {
1032
+ name: string;
1033
+ level: LogLevel;
1034
+ };
1035
+ }, {
1036
+ log: {
1037
+ name: string;
1038
+ level: LogLevel;
1039
+ };
1040
+ }>;
1041
+ type CheckoutShopConfigType = z.infer<typeof CheckoutShopConfigSchema>;
1042
+ type SessionType = z.infer<typeof SessionSchema>;
1043
+ type StorageType = z.infer<typeof StorageSchema>;
1044
+ type BapiConfigType = z.infer<typeof BapiSchema>;
1045
+ type ShopConfigType = z.infer<typeof ShopConfigSchema>;
1046
+ type StorefrontConfigType = z.infer<typeof StorefrontConfigSchema>;
1047
+ type ShopSelectorType = z.infer<typeof ShopSelectorSchema>;
1048
+ type RedirectType = z.infer<typeof RedirectsSchema>;
1049
+ type IdpType = z.infer<typeof IdpSchema>;
1050
+ type RedisConfigType = z.infer<typeof RedisConfigSchema>;
1051
+ type ModulePublicRuntimeConfigType = z.infer<typeof PublicRuntimeConfigSchema>;
1052
+
1053
+ type StorageProvider = 'memory' | 'redis';
1054
+ type CheckoutShopConfig = CheckoutShopConfigType;
1055
+ /**
1056
+ * Options to configure how the storefront core manages sessions
1057
+ */
1058
+ type SessionConfig = SessionType & {
1059
+ /**
1060
+ * The provider to use for the persistent storage.
1061
+ * @deprecated Storefront Core is now relying on a unified cache configuration. Use the storage option instead.
1062
+ */
1063
+ provider?: StorageProvider;
1064
+ };
1065
+ /**
1066
+ * @deprecated
1067
+ */
1068
+ type RedisConfig = RedisConfigType;
1069
+ type CustomDriverName = string & {
1070
+ _custom?: any;
1071
+ };
1072
+ type StorageEntity<Driver extends BuiltinDriverName | CustomDriverName = any, DriverOptions = Driver extends keyof BuiltinDriverOptions ? BuiltinDriverOptions[Driver] : any> = {
1073
+ driver: Driver;
1074
+ compression?: CompressionEncodings;
1075
+ } & DriverOptions;
1076
+ interface StorageConfig {
1077
+ cache?: StorageType;
1078
+ session?: StorageType;
1079
+ }
1080
+ type BapiConfig = BapiConfigType;
1081
+ interface AppKeys {
1082
+ wishlistKey: string;
1083
+ basketKey: string;
1084
+ hashAlgorithm: HashAlgorithm;
1085
+ }
1086
+ interface AdditionalShopConfig {
1087
+ }
1088
+ interface ShopConfig extends ShopConfigType, AdditionalShopConfig {
1089
+ }
1090
+ type ShopConfigIndexed = Record<string, ShopConfig>;
1091
+ interface PublicShopConfig extends Pick<ShopConfig, 'shopId' | 'domain' | 'path' | 'locale' | 'currency' | 'currencyFractionDigits'> {
1092
+ checkout: Pick<CheckoutShopConfig, 'host'>;
1093
+ apiBasePath: string;
1094
+ idp?: IdpType;
1095
+ }
1096
+ interface StorefrontConfig extends StorefrontConfigType {
1097
+ withParams?: WithParams;
1098
+ }
1099
+ type ModuleOption = {
1100
+ shopSelector: ShopSelectorType;
1101
+ stores: ShopConfigIndexed;
1102
+ redirects?: RedirectType;
1103
+ };
1104
+ type ModuleBaseOptions = StorefrontConfig & ModuleOption & {
1105
+ rpcDir?: string;
1106
+ rpcMethodNames?: string[];
1107
+ rpcMethodOverrides?: Array<keyof typeof rpcMethods>;
1108
+ };
1109
+ interface CheckoutEvent {
1110
+ action?: 'authenticated';
1111
+ type?: 'tracking';
1112
+ user: ShopUser;
1113
+ accessToken: string;
1114
+ event?: {
1115
+ event: 'login' | 'add_to_cart' | 'remove_from_cart';
1116
+ status: 'successful' | 'error';
1117
+ };
1118
+ }
1119
+ interface ModulePublicRuntimeConfig extends ModulePublicRuntimeConfigType {
1120
+ }
1121
+ declare module '@nuxt/schema' {
1122
+ interface RuntimeConfig {
1123
+ storefront: ModuleBaseOptions;
1124
+ }
1125
+ interface PublicRuntimeConfig {
1126
+ storefront: ModulePublicRuntimeConfig;
1127
+ }
1128
+ }
1129
+ declare module 'nitropack' {
1130
+ interface NitroRuntimeHooks {
1131
+ 'storefront:context:created': (context: RpcContext) => HookResult;
1132
+ }
1133
+ }
1134
+
1135
+ 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, AdditionalShopConfig as d, ShopConfig as e, ShopConfigIndexed as f, StorefrontConfig as g, CheckoutEvent as h, ModulePublicRuntimeConfig as i };