@scayle/storefront-nuxt 8.34.0 → 8.34.1

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.
@@ -1,2569 +1,1084 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod/mini';
2
2
  import type { LogLevel } from '@scayle/storefront-core';
3
- import { type BuiltinDriverName } from 'unstorage';
4
- export declare const RedirectsSchema: z.ZodObject<{
5
- enabled: z.ZodBoolean;
6
- queryParamWhitelist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7
- strategy: z.ZodOptional<z.ZodEnum<["before-request", "on-missing"]>>;
8
- }, "strip", z.ZodTypeAny, {
9
- enabled: boolean;
10
- queryParamWhitelist?: string[] | undefined;
11
- strategy?: "before-request" | "on-missing" | undefined;
12
- }, {
13
- enabled: boolean;
14
- queryParamWhitelist?: string[] | undefined;
15
- strategy?: "before-request" | "on-missing" | undefined;
16
- }>;
17
- declare const SessionSchema: z.ZodObject<{
3
+ export declare const RedirectsSchema: z.ZodMiniObject<{
4
+ enabled: z.ZodMiniBoolean<boolean>;
5
+ queryParamWhitelist: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
6
+ strategy: z.ZodMiniOptional<z.ZodMiniEnum<{
7
+ "before-request": "before-request";
8
+ "on-missing": "on-missing";
9
+ }>>;
10
+ }, z.core.$strip>;
11
+ declare const SessionSchema: z.ZodMiniObject<{
18
12
  /**
19
13
  * The sameSite policy to use for the session cookie
20
14
  */
21
- sameSite: z.ZodOptional<z.ZodEnum<["lax", "strict", "none"]>>;
15
+ sameSite: z.ZodMiniOptional<z.ZodMiniEnum<{
16
+ lax: "lax";
17
+ strict: "strict";
18
+ none: "none";
19
+ }>>;
22
20
  /**
23
21
  * The default maxAge (in seconds) set on the session cookie and default TTL for session store
24
22
  */
25
- maxAge: z.ZodOptional<z.ZodNumber>;
23
+ maxAge: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
26
24
  /**
27
25
  * The name used for the session cookie
28
26
  */
29
- cookieName: z.ZodOptional<z.ZodString>;
27
+ cookieName: z.ZodMiniOptional<z.ZodMiniString<string>>;
30
28
  /**
31
29
  * The secret used for signing session cookies. If an array is passed, the last
32
30
  * value is used for signing new cookies, but all values are used to verify cookies.
33
31
  */
34
- secret: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
32
+ secret: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
35
33
  /**
36
34
  * Controls the domain option on the session cookie
37
35
  */
38
- domain: z.ZodOptional<z.ZodString>;
39
- }, "strip", z.ZodTypeAny, {
40
- sameSite?: "lax" | "strict" | "none" | undefined;
41
- maxAge?: number | undefined;
42
- cookieName?: string | undefined;
43
- secret?: string | string[] | undefined;
44
- domain?: string | undefined;
45
- }, {
46
- sameSite?: "lax" | "strict" | "none" | undefined;
47
- maxAge?: number | undefined;
48
- cookieName?: string | undefined;
49
- secret?: string | string[] | undefined;
50
- domain?: string | undefined;
51
- }>;
52
- declare const SapiSchema: z.ZodObject<{
53
- host: z.ZodString;
54
- token: z.ZodString;
55
- }, "strip", z.ZodTypeAny, {
56
- host: string;
57
- token: string;
58
- }, {
59
- host: string;
60
- token: string;
61
- }>;
62
- declare const IdpSchema: z.ZodObject<{
63
- enabled: z.ZodBoolean;
64
- idpKeys: z.ZodArray<z.ZodString, "many">;
65
- idpRedirectURL: z.ZodString;
66
- }, "strip", z.ZodTypeAny, {
67
- enabled: boolean;
68
- idpKeys: string[];
69
- idpRedirectURL: string;
70
- }, {
71
- enabled: boolean;
72
- idpKeys: string[];
73
- idpRedirectURL: string;
74
- }>;
75
- declare const StorageSchema: z.ZodDiscriminatedUnion<"driver", [z.ZodObject<{
76
- driver: z.ZodEnum<[BuiltinDriverName, ...BuiltinDriverName[]]>;
77
- compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
78
- url: z.ZodOptional<z.ZodString>;
79
- token: z.ZodOptional<z.ZodString>;
80
- host: z.ZodOptional<z.ZodString>;
81
- port: z.ZodOptional<z.ZodNumber>;
82
- username: z.ZodOptional<z.ZodString>;
83
- password: z.ZodOptional<z.ZodString>;
84
- tls: z.ZodOptional<z.ZodBoolean>;
85
- ttl: z.ZodOptional<z.ZodNumber>;
86
- }, "strip", z.ZodTypeAny, {
87
- driver: BuiltinDriverName;
88
- ttl?: number | undefined;
89
- host?: string | undefined;
90
- token?: string | undefined;
91
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
92
- url?: string | undefined;
93
- port?: number | undefined;
94
- username?: string | undefined;
95
- password?: string | undefined;
96
- tls?: boolean | undefined;
97
- }, {
98
- driver: BuiltinDriverName;
99
- ttl?: number | undefined;
100
- host?: string | undefined;
101
- token?: string | undefined;
102
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
103
- url?: string | undefined;
104
- port?: number | undefined;
105
- username?: string | undefined;
106
- password?: string | undefined;
107
- tls?: boolean | undefined;
108
- }>, z.ZodObject<{
109
- driver: z.ZodLiteral<"scayleKv">;
110
- compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
111
- ttl: z.ZodOptional<z.ZodNumber>;
112
- disableClusterMode: z.ZodOptional<z.ZodBoolean>;
113
- }, "strip", z.ZodTypeAny, {
114
- driver: "scayleKv";
115
- ttl?: number | undefined;
116
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
117
- disableClusterMode?: boolean | undefined;
118
- }, {
119
- driver: "scayleKv";
120
- ttl?: number | undefined;
121
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
122
- disableClusterMode?: boolean | undefined;
123
- }>]>;
124
- declare const CheckoutShopConfigSchema: z.ZodObject<{
125
- token: z.ZodString;
126
- secret: z.ZodString;
127
- host: z.ZodString;
128
- user: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
129
- cbdExpiration: z.ZodOptional<z.ZodNumber>;
130
- shopId: z.ZodOptional<z.ZodNumber>;
131
- }, "strip", z.ZodTypeAny, {
132
- secret: string;
133
- host: string;
134
- token: string;
135
- user: string | number;
136
- cbdExpiration?: number | undefined;
137
- shopId?: number | undefined;
138
- }, {
139
- secret: string;
140
- host: string;
141
- token: string;
142
- user: string | number;
143
- cbdExpiration?: number | undefined;
144
- shopId?: number | undefined;
145
- }>;
146
- declare const ShopConfigSchema: z.ZodObject<{
147
- idp: z.ZodOptional<z.ZodObject<{
148
- enabled: z.ZodBoolean;
149
- idpKeys: z.ZodArray<z.ZodString, "many">;
150
- idpRedirectURL: z.ZodString;
151
- }, "strip", z.ZodTypeAny, {
152
- enabled: boolean;
153
- idpKeys: string[];
154
- idpRedirectURL: string;
155
- }, {
156
- enabled: boolean;
157
- idpKeys: string[];
158
- idpRedirectURL: string;
159
- }>>;
160
- shopId: z.ZodNumber;
161
- path: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
162
- domain: z.ZodOptional<z.ZodString>;
163
- locale: z.ZodString;
164
- auth: z.ZodObject<{
165
- resetPasswordUrl: z.ZodString;
166
- }, "strip", z.ZodTypeAny, {
167
- resetPasswordUrl: string;
168
- }, {
169
- resetPasswordUrl: string;
36
+ domain: z.ZodMiniOptional<z.ZodMiniString<string>>;
37
+ }, z.core.$strip>;
38
+ declare const SapiSchema: z.ZodMiniObject<{
39
+ host: z.ZodMiniURL;
40
+ token: z.ZodMiniString<string>;
41
+ }, z.core.$strip>;
42
+ declare const IdpSchema: z.ZodMiniObject<{
43
+ enabled: z.ZodMiniBoolean<boolean>;
44
+ idpKeys: z.ZodMiniArray<z.ZodMiniString<string>>;
45
+ idpRedirectURL: z.ZodMiniString<string>;
46
+ }, z.core.$strip>;
47
+ declare const StorageSchema: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
48
+ driver: z.ZodMiniEnum<{
49
+ null: "null";
50
+ "azure-app-configuration": "azure-app-configuration";
51
+ azureAppConfiguration: "azureAppConfiguration";
52
+ "azure-cosmos": "azure-cosmos";
53
+ azureCosmos: "azureCosmos";
54
+ "azure-key-vault": "azure-key-vault";
55
+ azureKeyVault: "azureKeyVault";
56
+ "azure-storage-blob": "azure-storage-blob";
57
+ azureStorageBlob: "azureStorageBlob";
58
+ "azure-storage-table": "azure-storage-table";
59
+ azureStorageTable: "azureStorageTable";
60
+ "capacitor-preferences": "capacitor-preferences";
61
+ capacitorPreferences: "capacitorPreferences";
62
+ "cloudflare-kv-binding": "cloudflare-kv-binding";
63
+ cloudflareKVBinding: "cloudflareKVBinding";
64
+ "cloudflare-kv-http": "cloudflare-kv-http";
65
+ cloudflareKVHttp: "cloudflareKVHttp";
66
+ "cloudflare-r2-binding": "cloudflare-r2-binding";
67
+ cloudflareR2Binding: "cloudflareR2Binding";
68
+ db0: "db0";
69
+ "deno-kv-node": "deno-kv-node";
70
+ denoKVNode: "denoKVNode";
71
+ "deno-kv": "deno-kv";
72
+ denoKV: "denoKV";
73
+ "fs-lite": "fs-lite";
74
+ fsLite: "fsLite";
75
+ fs: "fs";
76
+ github: "github";
77
+ http: "http";
78
+ indexedb: "indexedb";
79
+ localstorage: "localstorage";
80
+ "lru-cache": "lru-cache";
81
+ lruCache: "lruCache";
82
+ memory: "memory";
83
+ mongodb: "mongodb";
84
+ "netlify-blobs": "netlify-blobs";
85
+ netlifyBlobs: "netlifyBlobs";
86
+ overlay: "overlay";
87
+ planetscale: "planetscale";
88
+ redis: "redis";
89
+ s3: "s3";
90
+ "session-storage": "session-storage";
91
+ sessionStorage: "sessionStorage";
92
+ uploadthing: "uploadthing";
93
+ upstash: "upstash";
94
+ "vercel-blob": "vercel-blob";
95
+ vercelBlob: "vercelBlob";
96
+ "vercel-kv": "vercel-kv";
97
+ vercelKV: "vercelKV";
170
98
  }>;
171
- currency: z.ZodString;
172
- checkout: z.ZodObject<{
173
- token: z.ZodString;
174
- secret: z.ZodString;
175
- host: z.ZodString;
176
- user: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
177
- cbdExpiration: z.ZodOptional<z.ZodNumber>;
178
- shopId: z.ZodOptional<z.ZodNumber>;
179
- }, "strip", z.ZodTypeAny, {
180
- secret: string;
181
- host: string;
182
- token: string;
183
- user: string | number;
184
- cbdExpiration?: number | undefined;
185
- shopId?: number | undefined;
186
- }, {
187
- secret: string;
188
- host: string;
189
- token: string;
190
- user: string | number;
191
- cbdExpiration?: number | undefined;
192
- shopId?: number | undefined;
193
- }>;
194
- appKeys: z.ZodOptional<z.ZodObject<{
195
- wishlistKey: z.ZodString;
196
- basketKey: z.ZodString;
197
- hashAlgorithm: z.ZodEnum<["md5", "sha256", "none"]>;
198
- }, "strip", z.ZodTypeAny, {
199
- wishlistKey: string;
200
- basketKey: string;
201
- hashAlgorithm: "none" | "md5" | "sha256";
202
- }, {
203
- wishlistKey: string;
204
- basketKey: string;
205
- hashAlgorithm: "none" | "md5" | "sha256";
99
+ compression: z.ZodMiniOptional<z.ZodMiniEnum<{
100
+ none: "none";
101
+ deflate: "deflate";
102
+ gzip: "gzip";
103
+ brotli: "brotli";
104
+ }>>;
105
+ url: z.ZodMiniOptional<z.ZodMiniURL>;
106
+ token: z.ZodMiniOptional<z.ZodMiniString<string>>;
107
+ host: z.ZodMiniOptional<z.ZodMiniString<string>>;
108
+ port: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
109
+ username: z.ZodMiniOptional<z.ZodMiniString<string>>;
110
+ password: z.ZodMiniOptional<z.ZodMiniString<string>>;
111
+ tls: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
112
+ ttl: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
113
+ }, z.core.$strip>, z.ZodMiniObject<{
114
+ driver: z.ZodMiniLiteral<"scayleKv">;
115
+ compression: z.ZodMiniOptional<z.ZodMiniEnum<{
116
+ none: "none";
117
+ deflate: "deflate";
118
+ gzip: "gzip";
119
+ brotli: "brotli";
206
120
  }>>;
207
- currencyFractionDigits: z.ZodOptional<z.ZodNumber>;
208
- isEnabled: z.ZodOptional<z.ZodBoolean>;
209
- sessionConfig: z.ZodOptional<z.ZodObject<{
121
+ ttl: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
122
+ disableClusterMode: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
123
+ }, z.core.$strip>]>;
124
+ declare const CheckoutShopConfigSchema: z.ZodMiniObject<{
125
+ token: z.ZodMiniString<string>;
126
+ secret: z.ZodMiniString<string>;
127
+ host: z.ZodMiniURL;
128
+ user: z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>;
129
+ cbdExpiration: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
130
+ shopId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
131
+ }, z.core.$strip>;
132
+ declare const ShopConfigSchema: z.ZodMiniObject<{
133
+ idp: z.ZodMiniOptional<z.ZodMiniObject<{
134
+ enabled: z.ZodMiniBoolean<boolean>;
135
+ idpKeys: z.ZodMiniArray<z.ZodMiniString<string>>;
136
+ idpRedirectURL: z.ZodMiniString<string>;
137
+ }, z.core.$strip>>;
138
+ shopId: z.ZodMiniNumber<number>;
139
+ path: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
140
+ domain: z.ZodMiniOptional<z.ZodMiniString<string>>;
141
+ locale: z.ZodMiniString<string>;
142
+ auth: z.ZodMiniObject<{
143
+ resetPasswordUrl: z.ZodMiniString<string>;
144
+ }, z.core.$strip>;
145
+ currency: z.ZodMiniString<string>;
146
+ checkout: z.ZodMiniObject<{
147
+ token: z.ZodMiniString<string>;
148
+ secret: z.ZodMiniString<string>;
149
+ host: z.ZodMiniURL;
150
+ user: z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>;
151
+ cbdExpiration: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
152
+ shopId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
153
+ }, z.core.$strip>;
154
+ appKeys: z.ZodMiniOptional<z.ZodMiniObject<{
155
+ wishlistKey: z.ZodMiniString<string>;
156
+ basketKey: z.ZodMiniString<string>;
157
+ hashAlgorithm: z.ZodMiniEnum<{
158
+ none: "none";
159
+ md5: "md5";
160
+ sha256: "sha256";
161
+ }>;
162
+ }, z.core.$strip>>;
163
+ currencyFractionDigits: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
164
+ isEnabled: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
165
+ sessionConfig: z.ZodMiniOptional<z.ZodMiniObject<{
210
166
  /**
211
167
  * The sameSite policy to use for the session cookie
212
168
  */
213
- sameSite: z.ZodOptional<z.ZodEnum<["lax", "strict", "none"]>>;
169
+ sameSite: z.ZodMiniOptional<z.ZodMiniEnum<{
170
+ lax: "lax";
171
+ strict: "strict";
172
+ none: "none";
173
+ }>>;
214
174
  /**
215
175
  * The default maxAge (in seconds) set on the session cookie and default TTL for session store
216
176
  */
217
- maxAge: z.ZodOptional<z.ZodNumber>;
177
+ maxAge: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
218
178
  /**
219
179
  * The name used for the session cookie
220
180
  */
221
- cookieName: z.ZodOptional<z.ZodString>;
181
+ cookieName: z.ZodMiniOptional<z.ZodMiniString<string>>;
222
182
  /**
223
183
  * The secret used for signing session cookies. If an array is passed, the last
224
184
  * value is used for signing new cookies, but all values are used to verify cookies.
225
185
  */
226
- secret: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
186
+ secret: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
227
187
  /**
228
188
  * Controls the domain option on the session cookie
229
189
  */
230
- domain: z.ZodOptional<z.ZodString>;
231
- }, "strip", z.ZodTypeAny, {
232
- sameSite?: "lax" | "strict" | "none" | undefined;
233
- maxAge?: number | undefined;
234
- cookieName?: string | undefined;
235
- secret?: string | string[] | undefined;
236
- domain?: string | undefined;
237
- }, {
238
- sameSite?: "lax" | "strict" | "none" | undefined;
239
- maxAge?: number | undefined;
240
- cookieName?: string | undefined;
241
- secret?: string | string[] | undefined;
242
- domain?: string | undefined;
243
- }>>;
244
- sapi: z.ZodOptional<z.ZodObject<{
245
- host: z.ZodString;
246
- token: z.ZodString;
247
- }, "strip", z.ZodTypeAny, {
248
- host: string;
249
- token: string;
250
- }, {
251
- host: string;
252
- token: string;
253
- }>>;
190
+ domain: z.ZodMiniOptional<z.ZodMiniString<string>>;
191
+ }, z.core.$strip>>;
192
+ sapi: z.ZodMiniOptional<z.ZodMiniObject<{
193
+ host: z.ZodMiniURL;
194
+ token: z.ZodMiniString<string>;
195
+ }, z.core.$strip>>;
254
196
  /** @deprecated The `storage` option within `shopConfig` is deprecated. Consider using nuxt storage configuration instead. */
255
- storage: z.ZodOptional<z.ZodObject<{
256
- session: z.ZodOptional<z.ZodDiscriminatedUnion<"driver", [z.ZodObject<{
257
- driver: z.ZodEnum<[BuiltinDriverName, ...BuiltinDriverName[]]>;
258
- compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
259
- url: z.ZodOptional<z.ZodString>;
260
- token: z.ZodOptional<z.ZodString>;
261
- host: z.ZodOptional<z.ZodString>;
262
- port: z.ZodOptional<z.ZodNumber>;
263
- username: z.ZodOptional<z.ZodString>;
264
- password: z.ZodOptional<z.ZodString>;
265
- tls: z.ZodOptional<z.ZodBoolean>;
266
- ttl: z.ZodOptional<z.ZodNumber>;
267
- }, "strip", z.ZodTypeAny, {
268
- driver: BuiltinDriverName;
269
- ttl?: number | undefined;
270
- host?: string | undefined;
271
- token?: string | undefined;
272
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
273
- url?: string | undefined;
274
- port?: number | undefined;
275
- username?: string | undefined;
276
- password?: string | undefined;
277
- tls?: boolean | undefined;
278
- }, {
279
- driver: BuiltinDriverName;
280
- ttl?: number | undefined;
281
- host?: string | undefined;
282
- token?: string | undefined;
283
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
284
- url?: string | undefined;
285
- port?: number | undefined;
286
- username?: string | undefined;
287
- password?: string | undefined;
288
- tls?: boolean | undefined;
289
- }>, z.ZodObject<{
290
- driver: z.ZodLiteral<"scayleKv">;
291
- compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
292
- ttl: z.ZodOptional<z.ZodNumber>;
293
- disableClusterMode: z.ZodOptional<z.ZodBoolean>;
294
- }, "strip", z.ZodTypeAny, {
295
- driver: "scayleKv";
296
- ttl?: number | undefined;
297
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
298
- disableClusterMode?: boolean | undefined;
299
- }, {
300
- driver: "scayleKv";
301
- ttl?: number | undefined;
302
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
303
- disableClusterMode?: boolean | undefined;
304
- }>]>>;
305
- cache: z.ZodOptional<z.ZodDiscriminatedUnion<"driver", [z.ZodObject<{
306
- driver: z.ZodEnum<[BuiltinDriverName, ...BuiltinDriverName[]]>;
307
- compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
308
- url: z.ZodOptional<z.ZodString>;
309
- token: z.ZodOptional<z.ZodString>;
310
- host: z.ZodOptional<z.ZodString>;
311
- port: z.ZodOptional<z.ZodNumber>;
312
- username: z.ZodOptional<z.ZodString>;
313
- password: z.ZodOptional<z.ZodString>;
314
- tls: z.ZodOptional<z.ZodBoolean>;
315
- ttl: z.ZodOptional<z.ZodNumber>;
316
- }, "strip", z.ZodTypeAny, {
317
- driver: BuiltinDriverName;
318
- ttl?: number | undefined;
319
- host?: string | undefined;
320
- token?: string | undefined;
321
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
322
- url?: string | undefined;
323
- port?: number | undefined;
324
- username?: string | undefined;
325
- password?: string | undefined;
326
- tls?: boolean | undefined;
327
- }, {
328
- driver: BuiltinDriverName;
329
- ttl?: number | undefined;
330
- host?: string | undefined;
331
- token?: string | undefined;
332
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
333
- url?: string | undefined;
334
- port?: number | undefined;
335
- username?: string | undefined;
336
- password?: string | undefined;
337
- tls?: boolean | undefined;
338
- }>, z.ZodObject<{
339
- driver: z.ZodLiteral<"scayleKv">;
340
- compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
341
- ttl: z.ZodOptional<z.ZodNumber>;
342
- disableClusterMode: z.ZodOptional<z.ZodBoolean>;
343
- }, "strip", z.ZodTypeAny, {
344
- driver: "scayleKv";
345
- ttl?: number | undefined;
346
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
347
- disableClusterMode?: boolean | undefined;
348
- }, {
349
- driver: "scayleKv";
350
- ttl?: number | undefined;
351
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
352
- disableClusterMode?: boolean | undefined;
353
- }>]>>;
354
- }, "strip", z.ZodTypeAny, {
355
- session?: {
356
- driver: "scayleKv";
357
- ttl?: number | undefined;
358
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
359
- disableClusterMode?: boolean | undefined;
360
- } | {
361
- driver: BuiltinDriverName;
362
- ttl?: number | undefined;
363
- host?: string | undefined;
364
- token?: string | undefined;
365
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
366
- url?: string | undefined;
367
- port?: number | undefined;
368
- username?: string | undefined;
369
- password?: string | undefined;
370
- tls?: boolean | undefined;
371
- } | undefined;
372
- cache?: {
373
- driver: "scayleKv";
374
- ttl?: number | undefined;
375
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
376
- disableClusterMode?: boolean | undefined;
377
- } | {
378
- driver: BuiltinDriverName;
379
- ttl?: number | undefined;
380
- host?: string | undefined;
381
- token?: string | undefined;
382
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
383
- url?: string | undefined;
384
- port?: number | undefined;
385
- username?: string | undefined;
386
- password?: string | undefined;
387
- tls?: boolean | undefined;
388
- } | undefined;
389
- }, {
390
- session?: {
391
- driver: "scayleKv";
392
- ttl?: number | undefined;
393
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
394
- disableClusterMode?: boolean | undefined;
395
- } | {
396
- driver: BuiltinDriverName;
397
- ttl?: number | undefined;
398
- host?: string | undefined;
399
- token?: string | undefined;
400
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
401
- url?: string | undefined;
402
- port?: number | undefined;
403
- username?: string | undefined;
404
- password?: string | undefined;
405
- tls?: boolean | undefined;
406
- } | undefined;
407
- cache?: {
408
- driver: "scayleKv";
409
- ttl?: number | undefined;
410
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
411
- disableClusterMode?: boolean | undefined;
412
- } | {
413
- driver: BuiltinDriverName;
414
- ttl?: number | undefined;
415
- host?: string | undefined;
416
- token?: string | undefined;
417
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
418
- url?: string | undefined;
419
- port?: number | undefined;
420
- username?: string | undefined;
421
- password?: string | undefined;
422
- tls?: boolean | undefined;
423
- } | undefined;
424
- }>>;
425
- isDefault: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodEffects<z.ZodString, "", string>]>;
426
- }, "strip", z.ZodTypeAny, {
427
- shopId: number;
428
- locale: string;
429
- auth: {
430
- resetPasswordUrl: string;
431
- };
432
- currency: string;
433
- checkout: {
434
- secret: string;
435
- host: string;
436
- token: string;
437
- user: string | number;
438
- cbdExpiration?: number | undefined;
439
- shopId?: number | undefined;
440
- };
441
- path?: string | string[] | undefined;
442
- domain?: string | undefined;
443
- idp?: {
444
- enabled: boolean;
445
- idpKeys: string[];
446
- idpRedirectURL: string;
447
- } | undefined;
448
- appKeys?: {
449
- wishlistKey: string;
450
- basketKey: string;
451
- hashAlgorithm: "none" | "md5" | "sha256";
452
- } | undefined;
453
- currencyFractionDigits?: number | undefined;
454
- isEnabled?: boolean | undefined;
455
- sessionConfig?: {
456
- sameSite?: "lax" | "strict" | "none" | undefined;
457
- maxAge?: number | undefined;
458
- cookieName?: string | undefined;
459
- secret?: string | string[] | undefined;
460
- domain?: string | undefined;
461
- } | undefined;
462
- sapi?: {
463
- host: string;
464
- token: string;
465
- } | undefined;
466
- storage?: {
467
- session?: {
468
- driver: "scayleKv";
469
- ttl?: number | undefined;
470
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
471
- disableClusterMode?: boolean | undefined;
472
- } | {
473
- driver: BuiltinDriverName;
474
- ttl?: number | undefined;
475
- host?: string | undefined;
476
- token?: string | undefined;
477
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
478
- url?: string | undefined;
479
- port?: number | undefined;
480
- username?: string | undefined;
481
- password?: string | undefined;
482
- tls?: boolean | undefined;
483
- } | undefined;
484
- cache?: {
485
- driver: "scayleKv";
486
- ttl?: number | undefined;
487
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
488
- disableClusterMode?: boolean | undefined;
489
- } | {
490
- driver: BuiltinDriverName;
491
- ttl?: number | undefined;
492
- host?: string | undefined;
493
- token?: string | undefined;
494
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
495
- url?: string | undefined;
496
- port?: number | undefined;
497
- username?: string | undefined;
498
- password?: string | undefined;
499
- tls?: boolean | undefined;
500
- } | undefined;
501
- } | undefined;
502
- isDefault?: boolean | "" | undefined;
503
- }, {
504
- shopId: number;
505
- locale: string;
506
- auth: {
507
- resetPasswordUrl: string;
508
- };
509
- currency: string;
510
- checkout: {
511
- secret: string;
512
- host: string;
513
- token: string;
514
- user: string | number;
515
- cbdExpiration?: number | undefined;
516
- shopId?: number | undefined;
517
- };
518
- path?: string | string[] | undefined;
519
- domain?: string | undefined;
520
- idp?: {
521
- enabled: boolean;
522
- idpKeys: string[];
523
- idpRedirectURL: string;
524
- } | undefined;
525
- appKeys?: {
526
- wishlistKey: string;
527
- basketKey: string;
528
- hashAlgorithm: "none" | "md5" | "sha256";
529
- } | undefined;
530
- currencyFractionDigits?: number | undefined;
531
- isEnabled?: boolean | undefined;
532
- sessionConfig?: {
533
- sameSite?: "lax" | "strict" | "none" | undefined;
534
- maxAge?: number | undefined;
535
- cookieName?: string | undefined;
536
- secret?: string | string[] | undefined;
537
- domain?: string | undefined;
538
- } | undefined;
539
- sapi?: {
540
- host: string;
541
- token: string;
542
- } | undefined;
543
- storage?: {
544
- session?: {
545
- driver: "scayleKv";
546
- ttl?: number | undefined;
547
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
548
- disableClusterMode?: boolean | undefined;
549
- } | {
550
- driver: BuiltinDriverName;
551
- ttl?: number | undefined;
552
- host?: string | undefined;
553
- token?: string | undefined;
554
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
555
- url?: string | undefined;
556
- port?: number | undefined;
557
- username?: string | undefined;
558
- password?: string | undefined;
559
- tls?: boolean | undefined;
560
- } | undefined;
561
- cache?: {
562
- driver: "scayleKv";
563
- ttl?: number | undefined;
564
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
565
- disableClusterMode?: boolean | undefined;
566
- } | {
567
- driver: BuiltinDriverName;
568
- ttl?: number | undefined;
569
- host?: string | undefined;
570
- token?: string | undefined;
571
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
572
- url?: string | undefined;
573
- port?: number | undefined;
574
- username?: string | undefined;
575
- password?: string | undefined;
576
- tls?: boolean | undefined;
577
- } | undefined;
578
- } | undefined;
579
- isDefault?: string | boolean | undefined;
197
+ storage: z.ZodMiniOptional<z.ZodMiniObject<{
198
+ session: z.ZodMiniOptional<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
199
+ driver: z.ZodMiniEnum<{
200
+ null: "null";
201
+ "azure-app-configuration": "azure-app-configuration";
202
+ azureAppConfiguration: "azureAppConfiguration";
203
+ "azure-cosmos": "azure-cosmos";
204
+ azureCosmos: "azureCosmos";
205
+ "azure-key-vault": "azure-key-vault";
206
+ azureKeyVault: "azureKeyVault";
207
+ "azure-storage-blob": "azure-storage-blob";
208
+ azureStorageBlob: "azureStorageBlob";
209
+ "azure-storage-table": "azure-storage-table";
210
+ azureStorageTable: "azureStorageTable";
211
+ "capacitor-preferences": "capacitor-preferences";
212
+ capacitorPreferences: "capacitorPreferences";
213
+ "cloudflare-kv-binding": "cloudflare-kv-binding";
214
+ cloudflareKVBinding: "cloudflareKVBinding";
215
+ "cloudflare-kv-http": "cloudflare-kv-http";
216
+ cloudflareKVHttp: "cloudflareKVHttp";
217
+ "cloudflare-r2-binding": "cloudflare-r2-binding";
218
+ cloudflareR2Binding: "cloudflareR2Binding";
219
+ db0: "db0";
220
+ "deno-kv-node": "deno-kv-node";
221
+ denoKVNode: "denoKVNode";
222
+ "deno-kv": "deno-kv";
223
+ denoKV: "denoKV";
224
+ "fs-lite": "fs-lite";
225
+ fsLite: "fsLite";
226
+ fs: "fs";
227
+ github: "github";
228
+ http: "http";
229
+ indexedb: "indexedb";
230
+ localstorage: "localstorage";
231
+ "lru-cache": "lru-cache";
232
+ lruCache: "lruCache";
233
+ memory: "memory";
234
+ mongodb: "mongodb";
235
+ "netlify-blobs": "netlify-blobs";
236
+ netlifyBlobs: "netlifyBlobs";
237
+ overlay: "overlay";
238
+ planetscale: "planetscale";
239
+ redis: "redis";
240
+ s3: "s3";
241
+ "session-storage": "session-storage";
242
+ sessionStorage: "sessionStorage";
243
+ uploadthing: "uploadthing";
244
+ upstash: "upstash";
245
+ "vercel-blob": "vercel-blob";
246
+ vercelBlob: "vercelBlob";
247
+ "vercel-kv": "vercel-kv";
248
+ vercelKV: "vercelKV";
249
+ }>;
250
+ compression: z.ZodMiniOptional<z.ZodMiniEnum<{
251
+ none: "none";
252
+ deflate: "deflate";
253
+ gzip: "gzip";
254
+ brotli: "brotli";
255
+ }>>;
256
+ url: z.ZodMiniOptional<z.ZodMiniURL>;
257
+ token: z.ZodMiniOptional<z.ZodMiniString<string>>;
258
+ host: z.ZodMiniOptional<z.ZodMiniString<string>>;
259
+ port: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
260
+ username: z.ZodMiniOptional<z.ZodMiniString<string>>;
261
+ password: z.ZodMiniOptional<z.ZodMiniString<string>>;
262
+ tls: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
263
+ ttl: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
264
+ }, z.core.$strip>, z.ZodMiniObject<{
265
+ driver: z.ZodMiniLiteral<"scayleKv">;
266
+ compression: z.ZodMiniOptional<z.ZodMiniEnum<{
267
+ none: "none";
268
+ deflate: "deflate";
269
+ gzip: "gzip";
270
+ brotli: "brotli";
271
+ }>>;
272
+ ttl: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
273
+ disableClusterMode: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
274
+ }, z.core.$strip>]>>;
275
+ cache: z.ZodMiniOptional<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
276
+ driver: z.ZodMiniEnum<{
277
+ null: "null";
278
+ "azure-app-configuration": "azure-app-configuration";
279
+ azureAppConfiguration: "azureAppConfiguration";
280
+ "azure-cosmos": "azure-cosmos";
281
+ azureCosmos: "azureCosmos";
282
+ "azure-key-vault": "azure-key-vault";
283
+ azureKeyVault: "azureKeyVault";
284
+ "azure-storage-blob": "azure-storage-blob";
285
+ azureStorageBlob: "azureStorageBlob";
286
+ "azure-storage-table": "azure-storage-table";
287
+ azureStorageTable: "azureStorageTable";
288
+ "capacitor-preferences": "capacitor-preferences";
289
+ capacitorPreferences: "capacitorPreferences";
290
+ "cloudflare-kv-binding": "cloudflare-kv-binding";
291
+ cloudflareKVBinding: "cloudflareKVBinding";
292
+ "cloudflare-kv-http": "cloudflare-kv-http";
293
+ cloudflareKVHttp: "cloudflareKVHttp";
294
+ "cloudflare-r2-binding": "cloudflare-r2-binding";
295
+ cloudflareR2Binding: "cloudflareR2Binding";
296
+ db0: "db0";
297
+ "deno-kv-node": "deno-kv-node";
298
+ denoKVNode: "denoKVNode";
299
+ "deno-kv": "deno-kv";
300
+ denoKV: "denoKV";
301
+ "fs-lite": "fs-lite";
302
+ fsLite: "fsLite";
303
+ fs: "fs";
304
+ github: "github";
305
+ http: "http";
306
+ indexedb: "indexedb";
307
+ localstorage: "localstorage";
308
+ "lru-cache": "lru-cache";
309
+ lruCache: "lruCache";
310
+ memory: "memory";
311
+ mongodb: "mongodb";
312
+ "netlify-blobs": "netlify-blobs";
313
+ netlifyBlobs: "netlifyBlobs";
314
+ overlay: "overlay";
315
+ planetscale: "planetscale";
316
+ redis: "redis";
317
+ s3: "s3";
318
+ "session-storage": "session-storage";
319
+ sessionStorage: "sessionStorage";
320
+ uploadthing: "uploadthing";
321
+ upstash: "upstash";
322
+ "vercel-blob": "vercel-blob";
323
+ vercelBlob: "vercelBlob";
324
+ "vercel-kv": "vercel-kv";
325
+ vercelKV: "vercelKV";
326
+ }>;
327
+ compression: z.ZodMiniOptional<z.ZodMiniEnum<{
328
+ none: "none";
329
+ deflate: "deflate";
330
+ gzip: "gzip";
331
+ brotli: "brotli";
332
+ }>>;
333
+ url: z.ZodMiniOptional<z.ZodMiniURL>;
334
+ token: z.ZodMiniOptional<z.ZodMiniString<string>>;
335
+ host: z.ZodMiniOptional<z.ZodMiniString<string>>;
336
+ port: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
337
+ username: z.ZodMiniOptional<z.ZodMiniString<string>>;
338
+ password: z.ZodMiniOptional<z.ZodMiniString<string>>;
339
+ tls: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
340
+ ttl: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
341
+ }, z.core.$strip>, z.ZodMiniObject<{
342
+ driver: z.ZodMiniLiteral<"scayleKv">;
343
+ compression: z.ZodMiniOptional<z.ZodMiniEnum<{
344
+ none: "none";
345
+ deflate: "deflate";
346
+ gzip: "gzip";
347
+ brotli: "brotli";
348
+ }>>;
349
+ ttl: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
350
+ disableClusterMode: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
351
+ }, z.core.$strip>]>>;
352
+ }, z.core.$strip>>;
353
+ isDefault: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>]>>;
354
+ }, z.core.$strip>;
355
+ declare const ShopSelectorSchema: z.ZodMiniEnum<{
356
+ domain: "domain";
357
+ path: "path";
358
+ path_or_default: "path_or_default";
580
359
  }>;
581
- declare const ShopSelectorSchema: z.ZodEnum<["path", "domain", "path_or_default"]>;
582
360
  type ShopConfigType = z.infer<typeof ShopConfigSchema>;
583
- declare const StorefrontConfigSchema: z.ZodObject<{
584
- session: z.ZodOptional<z.ZodObject<{
361
+ declare const StorefrontConfigSchema: z.ZodMiniObject<{
362
+ session: z.ZodMiniOptional<z.ZodMiniObject<{
585
363
  /**
586
364
  * The sameSite policy to use for the session cookie
587
365
  */
588
- sameSite: z.ZodOptional<z.ZodEnum<["lax", "strict", "none"]>>;
366
+ sameSite: z.ZodMiniOptional<z.ZodMiniEnum<{
367
+ lax: "lax";
368
+ strict: "strict";
369
+ none: "none";
370
+ }>>;
589
371
  /**
590
372
  * The default maxAge (in seconds) set on the session cookie and default TTL for session store
591
373
  */
592
- maxAge: z.ZodOptional<z.ZodNumber>;
374
+ maxAge: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
593
375
  /**
594
376
  * The name used for the session cookie
595
377
  */
596
- cookieName: z.ZodOptional<z.ZodString>;
378
+ cookieName: z.ZodMiniOptional<z.ZodMiniString<string>>;
597
379
  /**
598
380
  * The secret used for signing session cookies. If an array is passed, the last
599
381
  * value is used for signing new cookies, but all values are used to verify cookies.
600
382
  */
601
- secret: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
383
+ secret: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
602
384
  /**
603
385
  * Controls the domain option on the session cookie
604
386
  */
605
- domain: z.ZodOptional<z.ZodString>;
606
- }, "strip", z.ZodTypeAny, {
607
- sameSite?: "lax" | "strict" | "none" | undefined;
608
- maxAge?: number | undefined;
609
- cookieName?: string | undefined;
610
- secret?: string | string[] | undefined;
611
- domain?: string | undefined;
612
- }, {
613
- sameSite?: "lax" | "strict" | "none" | undefined;
614
- maxAge?: number | undefined;
615
- cookieName?: string | undefined;
616
- secret?: string | string[] | undefined;
617
- domain?: string | undefined;
618
- }>>;
387
+ domain: z.ZodMiniOptional<z.ZodMiniString<string>>;
388
+ }, z.core.$strip>>;
619
389
  /** @deprecated The `storage` option within `storefront` is deprecated. Consider using nuxt storage configuration instead. */
620
- storage: z.ZodOptional<z.ZodObject<{
621
- session: z.ZodOptional<z.ZodDiscriminatedUnion<"driver", [z.ZodObject<{
622
- driver: z.ZodEnum<[BuiltinDriverName, ...BuiltinDriverName[]]>;
623
- compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
624
- url: z.ZodOptional<z.ZodString>;
625
- token: z.ZodOptional<z.ZodString>;
626
- host: z.ZodOptional<z.ZodString>;
627
- port: z.ZodOptional<z.ZodNumber>;
628
- username: z.ZodOptional<z.ZodString>;
629
- password: z.ZodOptional<z.ZodString>;
630
- tls: z.ZodOptional<z.ZodBoolean>;
631
- ttl: z.ZodOptional<z.ZodNumber>;
632
- }, "strip", z.ZodTypeAny, {
633
- driver: BuiltinDriverName;
634
- ttl?: number | undefined;
635
- host?: string | undefined;
636
- token?: string | undefined;
637
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
638
- url?: string | undefined;
639
- port?: number | undefined;
640
- username?: string | undefined;
641
- password?: string | undefined;
642
- tls?: boolean | undefined;
643
- }, {
644
- driver: BuiltinDriverName;
645
- ttl?: number | undefined;
646
- host?: string | undefined;
647
- token?: string | undefined;
648
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
649
- url?: string | undefined;
650
- port?: number | undefined;
651
- username?: string | undefined;
652
- password?: string | undefined;
653
- tls?: boolean | undefined;
654
- }>, z.ZodObject<{
655
- driver: z.ZodLiteral<"scayleKv">;
656
- compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
657
- ttl: z.ZodOptional<z.ZodNumber>;
658
- disableClusterMode: z.ZodOptional<z.ZodBoolean>;
659
- }, "strip", z.ZodTypeAny, {
660
- driver: "scayleKv";
661
- ttl?: number | undefined;
662
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
663
- disableClusterMode?: boolean | undefined;
664
- }, {
665
- driver: "scayleKv";
666
- ttl?: number | undefined;
667
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
668
- disableClusterMode?: boolean | undefined;
669
- }>]>>;
670
- cache: z.ZodOptional<z.ZodDiscriminatedUnion<"driver", [z.ZodObject<{
671
- driver: z.ZodEnum<[BuiltinDriverName, ...BuiltinDriverName[]]>;
672
- compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
673
- url: z.ZodOptional<z.ZodString>;
674
- token: z.ZodOptional<z.ZodString>;
675
- host: z.ZodOptional<z.ZodString>;
676
- port: z.ZodOptional<z.ZodNumber>;
677
- username: z.ZodOptional<z.ZodString>;
678
- password: z.ZodOptional<z.ZodString>;
679
- tls: z.ZodOptional<z.ZodBoolean>;
680
- ttl: z.ZodOptional<z.ZodNumber>;
681
- }, "strip", z.ZodTypeAny, {
682
- driver: BuiltinDriverName;
683
- ttl?: number | undefined;
684
- host?: string | undefined;
685
- token?: string | undefined;
686
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
687
- url?: string | undefined;
688
- port?: number | undefined;
689
- username?: string | undefined;
690
- password?: string | undefined;
691
- tls?: boolean | undefined;
692
- }, {
693
- driver: BuiltinDriverName;
694
- ttl?: number | undefined;
695
- host?: string | undefined;
696
- token?: string | undefined;
697
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
698
- url?: string | undefined;
699
- port?: number | undefined;
700
- username?: string | undefined;
701
- password?: string | undefined;
702
- tls?: boolean | undefined;
703
- }>, z.ZodObject<{
704
- driver: z.ZodLiteral<"scayleKv">;
705
- compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
706
- ttl: z.ZodOptional<z.ZodNumber>;
707
- disableClusterMode: z.ZodOptional<z.ZodBoolean>;
708
- }, "strip", z.ZodTypeAny, {
709
- driver: "scayleKv";
710
- ttl?: number | undefined;
711
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
712
- disableClusterMode?: boolean | undefined;
713
- }, {
714
- driver: "scayleKv";
715
- ttl?: number | undefined;
716
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
717
- disableClusterMode?: boolean | undefined;
718
- }>]>>;
719
- }, "strip", z.ZodTypeAny, {
720
- session?: {
721
- driver: "scayleKv";
722
- ttl?: number | undefined;
723
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
724
- disableClusterMode?: boolean | undefined;
725
- } | {
726
- driver: BuiltinDriverName;
727
- ttl?: number | undefined;
728
- host?: string | undefined;
729
- token?: string | undefined;
730
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
731
- url?: string | undefined;
732
- port?: number | undefined;
733
- username?: string | undefined;
734
- password?: string | undefined;
735
- tls?: boolean | undefined;
736
- } | undefined;
737
- cache?: {
738
- driver: "scayleKv";
739
- ttl?: number | undefined;
740
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
741
- disableClusterMode?: boolean | undefined;
742
- } | {
743
- driver: BuiltinDriverName;
744
- ttl?: number | undefined;
745
- host?: string | undefined;
746
- token?: string | undefined;
747
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
748
- url?: string | undefined;
749
- port?: number | undefined;
750
- username?: string | undefined;
751
- password?: string | undefined;
752
- tls?: boolean | undefined;
753
- } | undefined;
754
- }, {
755
- session?: {
756
- driver: "scayleKv";
757
- ttl?: number | undefined;
758
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
759
- disableClusterMode?: boolean | undefined;
760
- } | {
761
- driver: BuiltinDriverName;
762
- ttl?: number | undefined;
763
- host?: string | undefined;
764
- token?: string | undefined;
765
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
766
- url?: string | undefined;
767
- port?: number | undefined;
768
- username?: string | undefined;
769
- password?: string | undefined;
770
- tls?: boolean | undefined;
771
- } | undefined;
772
- cache?: {
773
- driver: "scayleKv";
774
- ttl?: number | undefined;
775
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
776
- disableClusterMode?: boolean | undefined;
777
- } | {
778
- driver: BuiltinDriverName;
779
- ttl?: number | undefined;
780
- host?: string | undefined;
781
- token?: string | undefined;
782
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
783
- url?: string | undefined;
784
- port?: number | undefined;
785
- username?: string | undefined;
786
- password?: string | undefined;
787
- tls?: boolean | undefined;
788
- } | undefined;
789
- }>>;
790
- oauth: z.ZodObject<{
791
- apiHost: z.ZodString;
792
- clientId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
793
- clientSecret: z.ZodString;
794
- }, "strip", z.ZodTypeAny, {
795
- apiHost: string;
796
- clientId: string | number;
797
- clientSecret: string;
798
- }, {
799
- apiHost: string;
800
- clientId: string | number;
801
- clientSecret: string;
802
- }>;
803
- appKeys: z.ZodObject<{
804
- wishlistKey: z.ZodString;
805
- basketKey: z.ZodString;
806
- hashAlgorithm: z.ZodEnum<["md5", "sha256", "none"]>;
807
- }, "strip", z.ZodTypeAny, {
808
- wishlistKey: string;
809
- basketKey: string;
810
- hashAlgorithm: "none" | "md5" | "sha256";
811
- }, {
812
- wishlistKey: string;
813
- basketKey: string;
814
- hashAlgorithm: "none" | "md5" | "sha256";
815
- }>;
816
- apiBasePath: z.ZodOptional<z.ZodString>;
817
- cache: z.ZodOptional<z.ZodObject<{
818
- auth: z.ZodOptional<z.ZodObject<{
819
- username: z.ZodString;
820
- password: z.ZodString;
821
- }, "strip", z.ZodTypeAny, {
822
- username: string;
823
- password: string;
824
- }, {
825
- username: string;
826
- password: string;
827
- }>>;
828
- enabled: z.ZodOptional<z.ZodBoolean>;
829
- }, "strip", z.ZodTypeAny, {
830
- enabled?: boolean | undefined;
831
- auth?: {
832
- username: string;
833
- password: string;
834
- } | undefined;
835
- }, {
836
- enabled?: boolean | undefined;
837
- auth?: {
838
- username: string;
839
- password: string;
840
- } | undefined;
841
- }>>;
842
- publicShopData: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
843
- idp: z.ZodOptional<z.ZodObject<{
844
- enabled: z.ZodBoolean;
845
- idpKeys: z.ZodArray<z.ZodString, "many">;
846
- idpRedirectURL: z.ZodString;
847
- }, "strip", z.ZodTypeAny, {
848
- enabled: boolean;
849
- idpKeys: string[];
850
- idpRedirectURL: string;
851
- }, {
852
- enabled: boolean;
853
- idpKeys: string[];
854
- idpRedirectURL: string;
855
- }>>;
856
- sapi: z.ZodObject<{
857
- host: z.ZodString;
858
- token: z.ZodString;
859
- }, "strip", z.ZodTypeAny, {
860
- host: string;
861
- token: string;
862
- }, {
863
- host: string;
864
- token: string;
865
- }>;
390
+ storage: z.ZodMiniOptional<z.ZodMiniObject<{
391
+ session: z.ZodMiniOptional<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
392
+ driver: z.ZodMiniEnum<{
393
+ null: "null";
394
+ "azure-app-configuration": "azure-app-configuration";
395
+ azureAppConfiguration: "azureAppConfiguration";
396
+ "azure-cosmos": "azure-cosmos";
397
+ azureCosmos: "azureCosmos";
398
+ "azure-key-vault": "azure-key-vault";
399
+ azureKeyVault: "azureKeyVault";
400
+ "azure-storage-blob": "azure-storage-blob";
401
+ azureStorageBlob: "azureStorageBlob";
402
+ "azure-storage-table": "azure-storage-table";
403
+ azureStorageTable: "azureStorageTable";
404
+ "capacitor-preferences": "capacitor-preferences";
405
+ capacitorPreferences: "capacitorPreferences";
406
+ "cloudflare-kv-binding": "cloudflare-kv-binding";
407
+ cloudflareKVBinding: "cloudflareKVBinding";
408
+ "cloudflare-kv-http": "cloudflare-kv-http";
409
+ cloudflareKVHttp: "cloudflareKVHttp";
410
+ "cloudflare-r2-binding": "cloudflare-r2-binding";
411
+ cloudflareR2Binding: "cloudflareR2Binding";
412
+ db0: "db0";
413
+ "deno-kv-node": "deno-kv-node";
414
+ denoKVNode: "denoKVNode";
415
+ "deno-kv": "deno-kv";
416
+ denoKV: "denoKV";
417
+ "fs-lite": "fs-lite";
418
+ fsLite: "fsLite";
419
+ fs: "fs";
420
+ github: "github";
421
+ http: "http";
422
+ indexedb: "indexedb";
423
+ localstorage: "localstorage";
424
+ "lru-cache": "lru-cache";
425
+ lruCache: "lruCache";
426
+ memory: "memory";
427
+ mongodb: "mongodb";
428
+ "netlify-blobs": "netlify-blobs";
429
+ netlifyBlobs: "netlifyBlobs";
430
+ overlay: "overlay";
431
+ planetscale: "planetscale";
432
+ redis: "redis";
433
+ s3: "s3";
434
+ "session-storage": "session-storage";
435
+ sessionStorage: "sessionStorage";
436
+ uploadthing: "uploadthing";
437
+ upstash: "upstash";
438
+ "vercel-blob": "vercel-blob";
439
+ vercelBlob: "vercelBlob";
440
+ "vercel-kv": "vercel-kv";
441
+ vercelKV: "vercelKV";
442
+ }>;
443
+ compression: z.ZodMiniOptional<z.ZodMiniEnum<{
444
+ none: "none";
445
+ deflate: "deflate";
446
+ gzip: "gzip";
447
+ brotli: "brotli";
448
+ }>>;
449
+ url: z.ZodMiniOptional<z.ZodMiniURL>;
450
+ token: z.ZodMiniOptional<z.ZodMiniString<string>>;
451
+ host: z.ZodMiniOptional<z.ZodMiniString<string>>;
452
+ port: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
453
+ username: z.ZodMiniOptional<z.ZodMiniString<string>>;
454
+ password: z.ZodMiniOptional<z.ZodMiniString<string>>;
455
+ tls: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
456
+ ttl: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
457
+ }, z.core.$strip>, z.ZodMiniObject<{
458
+ driver: z.ZodMiniLiteral<"scayleKv">;
459
+ compression: z.ZodMiniOptional<z.ZodMiniEnum<{
460
+ none: "none";
461
+ deflate: "deflate";
462
+ gzip: "gzip";
463
+ brotli: "brotli";
464
+ }>>;
465
+ ttl: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
466
+ disableClusterMode: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
467
+ }, z.core.$strip>]>>;
468
+ cache: z.ZodMiniOptional<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
469
+ driver: z.ZodMiniEnum<{
470
+ null: "null";
471
+ "azure-app-configuration": "azure-app-configuration";
472
+ azureAppConfiguration: "azureAppConfiguration";
473
+ "azure-cosmos": "azure-cosmos";
474
+ azureCosmos: "azureCosmos";
475
+ "azure-key-vault": "azure-key-vault";
476
+ azureKeyVault: "azureKeyVault";
477
+ "azure-storage-blob": "azure-storage-blob";
478
+ azureStorageBlob: "azureStorageBlob";
479
+ "azure-storage-table": "azure-storage-table";
480
+ azureStorageTable: "azureStorageTable";
481
+ "capacitor-preferences": "capacitor-preferences";
482
+ capacitorPreferences: "capacitorPreferences";
483
+ "cloudflare-kv-binding": "cloudflare-kv-binding";
484
+ cloudflareKVBinding: "cloudflareKVBinding";
485
+ "cloudflare-kv-http": "cloudflare-kv-http";
486
+ cloudflareKVHttp: "cloudflareKVHttp";
487
+ "cloudflare-r2-binding": "cloudflare-r2-binding";
488
+ cloudflareR2Binding: "cloudflareR2Binding";
489
+ db0: "db0";
490
+ "deno-kv-node": "deno-kv-node";
491
+ denoKVNode: "denoKVNode";
492
+ "deno-kv": "deno-kv";
493
+ denoKV: "denoKV";
494
+ "fs-lite": "fs-lite";
495
+ fsLite: "fsLite";
496
+ fs: "fs";
497
+ github: "github";
498
+ http: "http";
499
+ indexedb: "indexedb";
500
+ localstorage: "localstorage";
501
+ "lru-cache": "lru-cache";
502
+ lruCache: "lruCache";
503
+ memory: "memory";
504
+ mongodb: "mongodb";
505
+ "netlify-blobs": "netlify-blobs";
506
+ netlifyBlobs: "netlifyBlobs";
507
+ overlay: "overlay";
508
+ planetscale: "planetscale";
509
+ redis: "redis";
510
+ s3: "s3";
511
+ "session-storage": "session-storage";
512
+ sessionStorage: "sessionStorage";
513
+ uploadthing: "uploadthing";
514
+ upstash: "upstash";
515
+ "vercel-blob": "vercel-blob";
516
+ vercelBlob: "vercelBlob";
517
+ "vercel-kv": "vercel-kv";
518
+ vercelKV: "vercelKV";
519
+ }>;
520
+ compression: z.ZodMiniOptional<z.ZodMiniEnum<{
521
+ none: "none";
522
+ deflate: "deflate";
523
+ gzip: "gzip";
524
+ brotli: "brotli";
525
+ }>>;
526
+ url: z.ZodMiniOptional<z.ZodMiniURL>;
527
+ token: z.ZodMiniOptional<z.ZodMiniString<string>>;
528
+ host: z.ZodMiniOptional<z.ZodMiniString<string>>;
529
+ port: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
530
+ username: z.ZodMiniOptional<z.ZodMiniString<string>>;
531
+ password: z.ZodMiniOptional<z.ZodMiniString<string>>;
532
+ tls: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
533
+ ttl: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
534
+ }, z.core.$strip>, z.ZodMiniObject<{
535
+ driver: z.ZodMiniLiteral<"scayleKv">;
536
+ compression: z.ZodMiniOptional<z.ZodMiniEnum<{
537
+ none: "none";
538
+ deflate: "deflate";
539
+ gzip: "gzip";
540
+ brotli: "brotli";
541
+ }>>;
542
+ ttl: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
543
+ disableClusterMode: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
544
+ }, z.core.$strip>]>>;
545
+ }, z.core.$strip>>;
546
+ oauth: z.ZodMiniObject<{
547
+ apiHost: z.ZodMiniURL;
548
+ clientId: z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniString<string>]>;
549
+ clientSecret: z.ZodMiniString<string>;
550
+ }, z.core.$strip>;
551
+ appKeys: z.ZodMiniObject<{
552
+ wishlistKey: z.ZodMiniString<string>;
553
+ basketKey: z.ZodMiniString<string>;
554
+ hashAlgorithm: z.ZodMiniEnum<{
555
+ none: "none";
556
+ md5: "md5";
557
+ sha256: "sha256";
558
+ }>;
559
+ }, z.core.$strip>;
560
+ apiBasePath: z.ZodMiniOptional<z.ZodMiniString<string>>;
561
+ cache: z.ZodMiniOptional<z.ZodMiniObject<{
562
+ auth: z.ZodMiniOptional<z.ZodMiniObject<{
563
+ username: z.ZodMiniString<string>;
564
+ password: z.ZodMiniString<string>;
565
+ }, z.core.$strip>>;
566
+ enabled: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
567
+ }, z.core.$strip>>;
568
+ publicShopData: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
569
+ idp: z.ZodMiniOptional<z.ZodMiniObject<{
570
+ enabled: z.ZodMiniBoolean<boolean>;
571
+ idpKeys: z.ZodMiniArray<z.ZodMiniString<string>>;
572
+ idpRedirectURL: z.ZodMiniString<string>;
573
+ }, z.core.$strip>>;
574
+ sapi: z.ZodMiniObject<{
575
+ host: z.ZodMiniURL;
576
+ token: z.ZodMiniString<string>;
577
+ }, z.core.$strip>;
866
578
  /** Collection of feature flags regarding legacy features and functionalities */
867
- legacy: z.ZodOptional<z.ZodObject<{
868
- enableSessionMigration: z.ZodOptional<z.ZodBoolean>;
869
- }, "strip", z.ZodTypeAny, {
870
- enableSessionMigration?: boolean | undefined;
871
- }, {
872
- enableSessionMigration?: boolean | undefined;
873
- }>>;
579
+ legacy: z.ZodMiniOptional<z.ZodMiniObject<{
580
+ enableSessionMigration: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
581
+ }, z.core.$strip>>;
874
582
  /** Undocumented property intended for internal usage only */
875
- internalAccessHeader: z.ZodOptional<z.ZodString>;
876
- }, "strip", z.ZodTypeAny, {
877
- appKeys: {
878
- wishlistKey: string;
879
- basketKey: string;
880
- hashAlgorithm: "none" | "md5" | "sha256";
881
- };
882
- sapi: {
883
- host: string;
884
- token: string;
885
- };
886
- oauth: {
887
- apiHost: string;
888
- clientId: string | number;
889
- clientSecret: string;
890
- };
891
- idp?: {
892
- enabled: boolean;
893
- idpKeys: string[];
894
- idpRedirectURL: string;
895
- } | undefined;
896
- session?: {
897
- sameSite?: "lax" | "strict" | "none" | undefined;
898
- maxAge?: number | undefined;
899
- cookieName?: string | undefined;
900
- secret?: string | string[] | undefined;
901
- domain?: string | undefined;
902
- } | undefined;
903
- cache?: {
904
- enabled?: boolean | undefined;
905
- auth?: {
906
- username: string;
907
- password: string;
908
- } | undefined;
909
- } | undefined;
910
- storage?: {
911
- session?: {
912
- driver: "scayleKv";
913
- ttl?: number | undefined;
914
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
915
- disableClusterMode?: boolean | undefined;
916
- } | {
917
- driver: BuiltinDriverName;
918
- ttl?: number | undefined;
919
- host?: string | undefined;
920
- token?: string | undefined;
921
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
922
- url?: string | undefined;
923
- port?: number | undefined;
924
- username?: string | undefined;
925
- password?: string | undefined;
926
- tls?: boolean | undefined;
927
- } | undefined;
928
- cache?: {
929
- driver: "scayleKv";
930
- ttl?: number | undefined;
931
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
932
- disableClusterMode?: boolean | undefined;
933
- } | {
934
- driver: BuiltinDriverName;
935
- ttl?: number | undefined;
936
- host?: string | undefined;
937
- token?: string | undefined;
938
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
939
- url?: string | undefined;
940
- port?: number | undefined;
941
- username?: string | undefined;
942
- password?: string | undefined;
943
- tls?: boolean | undefined;
944
- } | undefined;
945
- } | undefined;
946
- apiBasePath?: string | undefined;
947
- publicShopData?: string[] | undefined;
948
- legacy?: {
949
- enableSessionMigration?: boolean | undefined;
950
- } | undefined;
951
- internalAccessHeader?: string | undefined;
952
- }, {
953
- appKeys: {
954
- wishlistKey: string;
955
- basketKey: string;
956
- hashAlgorithm: "none" | "md5" | "sha256";
957
- };
958
- sapi: {
959
- host: string;
960
- token: string;
961
- };
962
- oauth: {
963
- apiHost: string;
964
- clientId: string | number;
965
- clientSecret: string;
966
- };
967
- idp?: {
968
- enabled: boolean;
969
- idpKeys: string[];
970
- idpRedirectURL: string;
971
- } | undefined;
972
- session?: {
973
- sameSite?: "lax" | "strict" | "none" | undefined;
974
- maxAge?: number | undefined;
975
- cookieName?: string | undefined;
976
- secret?: string | string[] | undefined;
977
- domain?: string | undefined;
978
- } | undefined;
979
- cache?: {
980
- enabled?: boolean | undefined;
981
- auth?: {
982
- username: string;
983
- password: string;
984
- } | undefined;
985
- } | undefined;
986
- storage?: {
987
- session?: {
988
- driver: "scayleKv";
989
- ttl?: number | undefined;
990
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
991
- disableClusterMode?: boolean | undefined;
992
- } | {
993
- driver: BuiltinDriverName;
994
- ttl?: number | undefined;
995
- host?: string | undefined;
996
- token?: string | undefined;
997
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
998
- url?: string | undefined;
999
- port?: number | undefined;
1000
- username?: string | undefined;
1001
- password?: string | undefined;
1002
- tls?: boolean | undefined;
1003
- } | undefined;
1004
- cache?: {
1005
- driver: "scayleKv";
1006
- ttl?: number | undefined;
1007
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1008
- disableClusterMode?: boolean | undefined;
1009
- } | {
1010
- driver: BuiltinDriverName;
1011
- ttl?: number | undefined;
1012
- host?: string | undefined;
1013
- token?: string | undefined;
1014
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1015
- url?: string | undefined;
1016
- port?: number | undefined;
1017
- username?: string | undefined;
1018
- password?: string | undefined;
1019
- tls?: boolean | undefined;
1020
- } | undefined;
1021
- } | undefined;
1022
- apiBasePath?: string | undefined;
1023
- publicShopData?: string[] | undefined;
1024
- legacy?: {
1025
- enableSessionMigration?: boolean | undefined;
1026
- } | undefined;
1027
- internalAccessHeader?: string | undefined;
1028
- }>;
1029
- declare const PublicRuntimeConfigSchema: z.ZodObject<{
1030
- log: z.ZodObject<{
1031
- name: z.ZodString;
1032
- level: z.ZodType<LogLevel, z.ZodTypeDef, LogLevel>;
1033
- json: z.ZodOptional<z.ZodBoolean>;
1034
- output: z.ZodDefault<z.ZodEnum<["stdout", "stderr", "auto"]>>;
1035
- }, "strip", z.ZodTypeAny, {
1036
- name: string;
1037
- level: LogLevel;
1038
- output: "stdout" | "stderr" | "auto";
1039
- json?: boolean | undefined;
1040
- }, {
1041
- name: string;
1042
- level: LogLevel;
1043
- json?: boolean | undefined;
1044
- output?: "stdout" | "stderr" | "auto" | undefined;
1045
- }>;
1046
- /** Collection of feature flags regarding legacy features and functionalities */
1047
- legacy: z.ZodOptional<z.ZodObject<{
1048
- enableDefaultGetCachedDataOverride: z.ZodOptional<z.ZodBoolean>;
1049
- }, "strip", z.ZodTypeAny, {
1050
- enableDefaultGetCachedDataOverride?: boolean | undefined;
1051
- }, {
1052
- enableDefaultGetCachedDataOverride?: boolean | undefined;
1053
- }>>;
1054
- }, "strip", z.ZodTypeAny, {
1055
- log: {
1056
- name: string;
1057
- level: LogLevel;
1058
- output: "stdout" | "stderr" | "auto";
1059
- json?: boolean | undefined;
1060
- };
1061
- legacy?: {
1062
- enableDefaultGetCachedDataOverride?: boolean | undefined;
1063
- } | undefined;
1064
- }, {
1065
- log: {
1066
- name: string;
1067
- level: LogLevel;
1068
- json?: boolean | undefined;
1069
- output?: "stdout" | "stderr" | "auto" | undefined;
1070
- };
1071
- legacy?: {
1072
- enableDefaultGetCachedDataOverride?: boolean | undefined;
1073
- } | undefined;
1074
- }>;
1075
- export declare const RuntimeConfigSchema: z.ZodObject<{
1076
- storefront: z.ZodIntersection<z.ZodObject<{
1077
- shopSelector: z.ZodEnum<["path", "domain", "path_or_default"]>;
1078
- redirects: z.ZodOptional<z.ZodObject<{
1079
- enabled: z.ZodBoolean;
1080
- queryParamWhitelist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1081
- strategy: z.ZodOptional<z.ZodEnum<["before-request", "on-missing"]>>;
1082
- }, "strip", z.ZodTypeAny, {
1083
- enabled: boolean;
1084
- queryParamWhitelist?: string[] | undefined;
1085
- strategy?: "before-request" | "on-missing" | undefined;
1086
- }, {
1087
- enabled: boolean;
1088
- queryParamWhitelist?: string[] | undefined;
1089
- strategy?: "before-request" | "on-missing" | undefined;
583
+ internalAccessHeader: z.ZodMiniOptional<z.ZodMiniString<string>>;
584
+ }, z.core.$strip>;
585
+ declare const PublicRuntimeConfigSchema: z.ZodMiniObject<{
586
+ log: z.ZodMiniObject<{
587
+ name: z.ZodMiniString<string>;
588
+ level: z.ZodMiniType<LogLevel, unknown, z.core.$ZodTypeInternals<LogLevel, unknown>>;
589
+ json: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
590
+ output: z.ZodMiniDefault<z.ZodMiniEnum<{
591
+ stdout: "stdout";
592
+ stderr: "stderr";
593
+ auto: "auto";
1090
594
  }>>;
1091
- shops: z.ZodRecord<z.ZodString, z.ZodObject<{
1092
- idp: z.ZodOptional<z.ZodObject<{
1093
- enabled: z.ZodBoolean;
1094
- idpKeys: z.ZodArray<z.ZodString, "many">;
1095
- idpRedirectURL: z.ZodString;
1096
- }, "strip", z.ZodTypeAny, {
1097
- enabled: boolean;
1098
- idpKeys: string[];
1099
- idpRedirectURL: string;
1100
- }, {
1101
- enabled: boolean;
1102
- idpKeys: string[];
1103
- idpRedirectURL: string;
1104
- }>>;
1105
- shopId: z.ZodNumber;
1106
- path: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1107
- domain: z.ZodOptional<z.ZodString>;
1108
- locale: z.ZodString;
1109
- auth: z.ZodObject<{
1110
- resetPasswordUrl: z.ZodString;
1111
- }, "strip", z.ZodTypeAny, {
1112
- resetPasswordUrl: string;
1113
- }, {
1114
- resetPasswordUrl: string;
1115
- }>;
1116
- currency: z.ZodString;
1117
- checkout: z.ZodObject<{
1118
- token: z.ZodString;
1119
- secret: z.ZodString;
1120
- host: z.ZodString;
1121
- user: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1122
- cbdExpiration: z.ZodOptional<z.ZodNumber>;
1123
- shopId: z.ZodOptional<z.ZodNumber>;
1124
- }, "strip", z.ZodTypeAny, {
1125
- secret: string;
1126
- host: string;
1127
- token: string;
1128
- user: string | number;
1129
- cbdExpiration?: number | undefined;
1130
- shopId?: number | undefined;
1131
- }, {
1132
- secret: string;
1133
- host: string;
1134
- token: string;
1135
- user: string | number;
1136
- cbdExpiration?: number | undefined;
1137
- shopId?: number | undefined;
1138
- }>;
1139
- appKeys: z.ZodOptional<z.ZodObject<{
1140
- wishlistKey: z.ZodString;
1141
- basketKey: z.ZodString;
1142
- hashAlgorithm: z.ZodEnum<["md5", "sha256", "none"]>;
1143
- }, "strip", z.ZodTypeAny, {
1144
- wishlistKey: string;
1145
- basketKey: string;
1146
- hashAlgorithm: "none" | "md5" | "sha256";
1147
- }, {
1148
- wishlistKey: string;
1149
- basketKey: string;
1150
- hashAlgorithm: "none" | "md5" | "sha256";
595
+ }, z.core.$strip>;
596
+ /** Collection of feature flags regarding legacy features and functionalities */
597
+ legacy: z.ZodMiniOptional<z.ZodMiniObject<{
598
+ enableDefaultGetCachedDataOverride: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
599
+ }, z.core.$strip>>;
600
+ }, z.core.$strip>;
601
+ export declare const RuntimeConfigSchema: z.ZodMiniObject<{
602
+ storefront: z.ZodMiniIntersection<z.ZodMiniObject<{
603
+ shopSelector: z.ZodMiniEnum<{
604
+ domain: "domain";
605
+ path: "path";
606
+ path_or_default: "path_or_default";
607
+ }>;
608
+ redirects: z.ZodMiniOptional<z.ZodMiniObject<{
609
+ enabled: z.ZodMiniBoolean<boolean>;
610
+ queryParamWhitelist: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
611
+ strategy: z.ZodMiniOptional<z.ZodMiniEnum<{
612
+ "before-request": "before-request";
613
+ "on-missing": "on-missing";
1151
614
  }>>;
1152
- currencyFractionDigits: z.ZodOptional<z.ZodNumber>;
1153
- isEnabled: z.ZodOptional<z.ZodBoolean>;
1154
- sessionConfig: z.ZodOptional<z.ZodObject<{
615
+ }, z.core.$strip>>;
616
+ shops: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
617
+ idp: z.ZodMiniOptional<z.ZodMiniObject<{
618
+ enabled: z.ZodMiniBoolean<boolean>;
619
+ idpKeys: z.ZodMiniArray<z.ZodMiniString<string>>;
620
+ idpRedirectURL: z.ZodMiniString<string>;
621
+ }, z.core.$strip>>;
622
+ shopId: z.ZodMiniNumber<number>;
623
+ path: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
624
+ domain: z.ZodMiniOptional<z.ZodMiniString<string>>;
625
+ locale: z.ZodMiniString<string>;
626
+ auth: z.ZodMiniObject<{
627
+ resetPasswordUrl: z.ZodMiniString<string>;
628
+ }, z.core.$strip>;
629
+ currency: z.ZodMiniString<string>;
630
+ checkout: z.ZodMiniObject<{
631
+ token: z.ZodMiniString<string>;
632
+ secret: z.ZodMiniString<string>;
633
+ host: z.ZodMiniURL;
634
+ user: z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>]>;
635
+ cbdExpiration: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
636
+ shopId: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
637
+ }, z.core.$strip>;
638
+ appKeys: z.ZodMiniOptional<z.ZodMiniObject<{
639
+ wishlistKey: z.ZodMiniString<string>;
640
+ basketKey: z.ZodMiniString<string>;
641
+ hashAlgorithm: z.ZodMiniEnum<{
642
+ none: "none";
643
+ md5: "md5";
644
+ sha256: "sha256";
645
+ }>;
646
+ }, z.core.$strip>>;
647
+ currencyFractionDigits: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
648
+ isEnabled: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
649
+ sessionConfig: z.ZodMiniOptional<z.ZodMiniObject<{
1155
650
  /**
1156
651
  * The sameSite policy to use for the session cookie
1157
652
  */
1158
- sameSite: z.ZodOptional<z.ZodEnum<["lax", "strict", "none"]>>;
653
+ sameSite: z.ZodMiniOptional<z.ZodMiniEnum<{
654
+ lax: "lax";
655
+ strict: "strict";
656
+ none: "none";
657
+ }>>;
1159
658
  /**
1160
659
  * The default maxAge (in seconds) set on the session cookie and default TTL for session store
1161
660
  */
1162
- maxAge: z.ZodOptional<z.ZodNumber>;
661
+ maxAge: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
1163
662
  /**
1164
663
  * The name used for the session cookie
1165
664
  */
1166
- cookieName: z.ZodOptional<z.ZodString>;
665
+ cookieName: z.ZodMiniOptional<z.ZodMiniString<string>>;
1167
666
  /**
1168
667
  * The secret used for signing session cookies. If an array is passed, the last
1169
668
  * value is used for signing new cookies, but all values are used to verify cookies.
1170
669
  */
1171
- secret: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
670
+ secret: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1172
671
  /**
1173
672
  * Controls the domain option on the session cookie
1174
673
  */
1175
- domain: z.ZodOptional<z.ZodString>;
1176
- }, "strip", z.ZodTypeAny, {
1177
- sameSite?: "lax" | "strict" | "none" | undefined;
1178
- maxAge?: number | undefined;
1179
- cookieName?: string | undefined;
1180
- secret?: string | string[] | undefined;
1181
- domain?: string | undefined;
1182
- }, {
1183
- sameSite?: "lax" | "strict" | "none" | undefined;
1184
- maxAge?: number | undefined;
1185
- cookieName?: string | undefined;
1186
- secret?: string | string[] | undefined;
1187
- domain?: string | undefined;
1188
- }>>;
1189
- sapi: z.ZodOptional<z.ZodObject<{
1190
- host: z.ZodString;
1191
- token: z.ZodString;
1192
- }, "strip", z.ZodTypeAny, {
1193
- host: string;
1194
- token: string;
1195
- }, {
1196
- host: string;
1197
- token: string;
1198
- }>>;
674
+ domain: z.ZodMiniOptional<z.ZodMiniString<string>>;
675
+ }, z.core.$strip>>;
676
+ sapi: z.ZodMiniOptional<z.ZodMiniObject<{
677
+ host: z.ZodMiniURL;
678
+ token: z.ZodMiniString<string>;
679
+ }, z.core.$strip>>;
1199
680
  /** @deprecated The `storage` option within `shopConfig` is deprecated. Consider using nuxt storage configuration instead. */
1200
- storage: z.ZodOptional<z.ZodObject<{
1201
- session: z.ZodOptional<z.ZodDiscriminatedUnion<"driver", [z.ZodObject<{
1202
- driver: z.ZodEnum<[BuiltinDriverName, ...BuiltinDriverName[]]>;
1203
- compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
1204
- url: z.ZodOptional<z.ZodString>;
1205
- token: z.ZodOptional<z.ZodString>;
1206
- host: z.ZodOptional<z.ZodString>;
1207
- port: z.ZodOptional<z.ZodNumber>;
1208
- username: z.ZodOptional<z.ZodString>;
1209
- password: z.ZodOptional<z.ZodString>;
1210
- tls: z.ZodOptional<z.ZodBoolean>;
1211
- ttl: z.ZodOptional<z.ZodNumber>;
1212
- }, "strip", z.ZodTypeAny, {
1213
- driver: BuiltinDriverName;
1214
- ttl?: number | undefined;
1215
- host?: string | undefined;
1216
- token?: string | undefined;
1217
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1218
- url?: string | undefined;
1219
- port?: number | undefined;
1220
- username?: string | undefined;
1221
- password?: string | undefined;
1222
- tls?: boolean | undefined;
1223
- }, {
1224
- driver: BuiltinDriverName;
1225
- ttl?: number | undefined;
1226
- host?: string | undefined;
1227
- token?: string | undefined;
1228
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1229
- url?: string | undefined;
1230
- port?: number | undefined;
1231
- username?: string | undefined;
1232
- password?: string | undefined;
1233
- tls?: boolean | undefined;
1234
- }>, z.ZodObject<{
1235
- driver: z.ZodLiteral<"scayleKv">;
1236
- compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
1237
- ttl: z.ZodOptional<z.ZodNumber>;
1238
- disableClusterMode: z.ZodOptional<z.ZodBoolean>;
1239
- }, "strip", z.ZodTypeAny, {
1240
- driver: "scayleKv";
1241
- ttl?: number | undefined;
1242
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1243
- disableClusterMode?: boolean | undefined;
1244
- }, {
1245
- driver: "scayleKv";
1246
- ttl?: number | undefined;
1247
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1248
- disableClusterMode?: boolean | undefined;
1249
- }>]>>;
1250
- cache: z.ZodOptional<z.ZodDiscriminatedUnion<"driver", [z.ZodObject<{
1251
- driver: z.ZodEnum<[BuiltinDriverName, ...BuiltinDriverName[]]>;
1252
- compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
1253
- url: z.ZodOptional<z.ZodString>;
1254
- token: z.ZodOptional<z.ZodString>;
1255
- host: z.ZodOptional<z.ZodString>;
1256
- port: z.ZodOptional<z.ZodNumber>;
1257
- username: z.ZodOptional<z.ZodString>;
1258
- password: z.ZodOptional<z.ZodString>;
1259
- tls: z.ZodOptional<z.ZodBoolean>;
1260
- ttl: z.ZodOptional<z.ZodNumber>;
1261
- }, "strip", z.ZodTypeAny, {
1262
- driver: BuiltinDriverName;
1263
- ttl?: number | undefined;
1264
- host?: string | undefined;
1265
- token?: string | undefined;
1266
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1267
- url?: string | undefined;
1268
- port?: number | undefined;
1269
- username?: string | undefined;
1270
- password?: string | undefined;
1271
- tls?: boolean | undefined;
1272
- }, {
1273
- driver: BuiltinDriverName;
1274
- ttl?: number | undefined;
1275
- host?: string | undefined;
1276
- token?: string | undefined;
1277
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1278
- url?: string | undefined;
1279
- port?: number | undefined;
1280
- username?: string | undefined;
1281
- password?: string | undefined;
1282
- tls?: boolean | undefined;
1283
- }>, z.ZodObject<{
1284
- driver: z.ZodLiteral<"scayleKv">;
1285
- compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
1286
- ttl: z.ZodOptional<z.ZodNumber>;
1287
- disableClusterMode: z.ZodOptional<z.ZodBoolean>;
1288
- }, "strip", z.ZodTypeAny, {
1289
- driver: "scayleKv";
1290
- ttl?: number | undefined;
1291
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1292
- disableClusterMode?: boolean | undefined;
1293
- }, {
1294
- driver: "scayleKv";
1295
- ttl?: number | undefined;
1296
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1297
- disableClusterMode?: boolean | undefined;
1298
- }>]>>;
1299
- }, "strip", z.ZodTypeAny, {
1300
- session?: {
1301
- driver: "scayleKv";
1302
- ttl?: number | undefined;
1303
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1304
- disableClusterMode?: boolean | undefined;
1305
- } | {
1306
- driver: BuiltinDriverName;
1307
- ttl?: number | undefined;
1308
- host?: string | undefined;
1309
- token?: string | undefined;
1310
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1311
- url?: string | undefined;
1312
- port?: number | undefined;
1313
- username?: string | undefined;
1314
- password?: string | undefined;
1315
- tls?: boolean | undefined;
1316
- } | undefined;
1317
- cache?: {
1318
- driver: "scayleKv";
1319
- ttl?: number | undefined;
1320
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1321
- disableClusterMode?: boolean | undefined;
1322
- } | {
1323
- driver: BuiltinDriverName;
1324
- ttl?: number | undefined;
1325
- host?: string | undefined;
1326
- token?: string | undefined;
1327
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1328
- url?: string | undefined;
1329
- port?: number | undefined;
1330
- username?: string | undefined;
1331
- password?: string | undefined;
1332
- tls?: boolean | undefined;
1333
- } | undefined;
1334
- }, {
1335
- session?: {
1336
- driver: "scayleKv";
1337
- ttl?: number | undefined;
1338
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1339
- disableClusterMode?: boolean | undefined;
1340
- } | {
1341
- driver: BuiltinDriverName;
1342
- ttl?: number | undefined;
1343
- host?: string | undefined;
1344
- token?: string | undefined;
1345
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1346
- url?: string | undefined;
1347
- port?: number | undefined;
1348
- username?: string | undefined;
1349
- password?: string | undefined;
1350
- tls?: boolean | undefined;
1351
- } | undefined;
1352
- cache?: {
1353
- driver: "scayleKv";
1354
- ttl?: number | undefined;
1355
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1356
- disableClusterMode?: boolean | undefined;
1357
- } | {
1358
- driver: BuiltinDriverName;
1359
- ttl?: number | undefined;
1360
- host?: string | undefined;
1361
- token?: string | undefined;
1362
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1363
- url?: string | undefined;
1364
- port?: number | undefined;
1365
- username?: string | undefined;
1366
- password?: string | undefined;
1367
- tls?: boolean | undefined;
1368
- } | undefined;
1369
- }>>;
1370
- isDefault: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodEffects<z.ZodString, "", string>]>;
1371
- }, "strip", z.ZodTypeAny, {
1372
- shopId: number;
1373
- locale: string;
1374
- auth: {
1375
- resetPasswordUrl: string;
1376
- };
1377
- currency: string;
1378
- checkout: {
1379
- secret: string;
1380
- host: string;
1381
- token: string;
1382
- user: string | number;
1383
- cbdExpiration?: number | undefined;
1384
- shopId?: number | undefined;
1385
- };
1386
- path?: string | string[] | undefined;
1387
- domain?: string | undefined;
1388
- idp?: {
1389
- enabled: boolean;
1390
- idpKeys: string[];
1391
- idpRedirectURL: string;
1392
- } | undefined;
1393
- appKeys?: {
1394
- wishlistKey: string;
1395
- basketKey: string;
1396
- hashAlgorithm: "none" | "md5" | "sha256";
1397
- } | undefined;
1398
- currencyFractionDigits?: number | undefined;
1399
- isEnabled?: boolean | undefined;
1400
- sessionConfig?: {
1401
- sameSite?: "lax" | "strict" | "none" | undefined;
1402
- maxAge?: number | undefined;
1403
- cookieName?: string | undefined;
1404
- secret?: string | string[] | undefined;
1405
- domain?: string | undefined;
1406
- } | undefined;
1407
- sapi?: {
1408
- host: string;
1409
- token: string;
1410
- } | undefined;
1411
- storage?: {
1412
- session?: {
1413
- driver: "scayleKv";
1414
- ttl?: number | undefined;
1415
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1416
- disableClusterMode?: boolean | undefined;
1417
- } | {
1418
- driver: BuiltinDriverName;
1419
- ttl?: number | undefined;
1420
- host?: string | undefined;
1421
- token?: string | undefined;
1422
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1423
- url?: string | undefined;
1424
- port?: number | undefined;
1425
- username?: string | undefined;
1426
- password?: string | undefined;
1427
- tls?: boolean | undefined;
1428
- } | undefined;
1429
- cache?: {
1430
- driver: "scayleKv";
1431
- ttl?: number | undefined;
1432
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1433
- disableClusterMode?: boolean | undefined;
1434
- } | {
1435
- driver: BuiltinDriverName;
1436
- ttl?: number | undefined;
1437
- host?: string | undefined;
1438
- token?: string | undefined;
1439
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1440
- url?: string | undefined;
1441
- port?: number | undefined;
1442
- username?: string | undefined;
1443
- password?: string | undefined;
1444
- tls?: boolean | undefined;
1445
- } | undefined;
1446
- } | undefined;
1447
- isDefault?: boolean | "" | undefined;
1448
- }, {
1449
- shopId: number;
1450
- locale: string;
1451
- auth: {
1452
- resetPasswordUrl: string;
1453
- };
1454
- currency: string;
1455
- checkout: {
1456
- secret: string;
1457
- host: string;
1458
- token: string;
1459
- user: string | number;
1460
- cbdExpiration?: number | undefined;
1461
- shopId?: number | undefined;
1462
- };
1463
- path?: string | string[] | undefined;
1464
- domain?: string | undefined;
1465
- idp?: {
1466
- enabled: boolean;
1467
- idpKeys: string[];
1468
- idpRedirectURL: string;
1469
- } | undefined;
1470
- appKeys?: {
1471
- wishlistKey: string;
1472
- basketKey: string;
1473
- hashAlgorithm: "none" | "md5" | "sha256";
1474
- } | undefined;
1475
- currencyFractionDigits?: number | undefined;
1476
- isEnabled?: boolean | undefined;
1477
- sessionConfig?: {
1478
- sameSite?: "lax" | "strict" | "none" | undefined;
1479
- maxAge?: number | undefined;
1480
- cookieName?: string | undefined;
1481
- secret?: string | string[] | undefined;
1482
- domain?: string | undefined;
1483
- } | undefined;
1484
- sapi?: {
1485
- host: string;
1486
- token: string;
1487
- } | undefined;
1488
- storage?: {
1489
- session?: {
1490
- driver: "scayleKv";
1491
- ttl?: number | undefined;
1492
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1493
- disableClusterMode?: boolean | undefined;
1494
- } | {
1495
- driver: BuiltinDriverName;
1496
- ttl?: number | undefined;
1497
- host?: string | undefined;
1498
- token?: string | undefined;
1499
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1500
- url?: string | undefined;
1501
- port?: number | undefined;
1502
- username?: string | undefined;
1503
- password?: string | undefined;
1504
- tls?: boolean | undefined;
1505
- } | undefined;
1506
- cache?: {
1507
- driver: "scayleKv";
1508
- ttl?: number | undefined;
1509
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1510
- disableClusterMode?: boolean | undefined;
1511
- } | {
1512
- driver: BuiltinDriverName;
1513
- ttl?: number | undefined;
1514
- host?: string | undefined;
1515
- token?: string | undefined;
1516
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1517
- url?: string | undefined;
1518
- port?: number | undefined;
1519
- username?: string | undefined;
1520
- password?: string | undefined;
1521
- tls?: boolean | undefined;
1522
- } | undefined;
1523
- } | undefined;
1524
- isDefault?: string | boolean | undefined;
1525
- }>>;
1526
- }, "strip", z.ZodTypeAny, {
1527
- shopSelector: "path" | "domain" | "path_or_default";
1528
- shops: Record<string, {
1529
- shopId: number;
1530
- locale: string;
1531
- auth: {
1532
- resetPasswordUrl: string;
1533
- };
1534
- currency: string;
1535
- checkout: {
1536
- secret: string;
1537
- host: string;
1538
- token: string;
1539
- user: string | number;
1540
- cbdExpiration?: number | undefined;
1541
- shopId?: number | undefined;
1542
- };
1543
- path?: string | string[] | undefined;
1544
- domain?: string | undefined;
1545
- idp?: {
1546
- enabled: boolean;
1547
- idpKeys: string[];
1548
- idpRedirectURL: string;
1549
- } | undefined;
1550
- appKeys?: {
1551
- wishlistKey: string;
1552
- basketKey: string;
1553
- hashAlgorithm: "none" | "md5" | "sha256";
1554
- } | undefined;
1555
- currencyFractionDigits?: number | undefined;
1556
- isEnabled?: boolean | undefined;
1557
- sessionConfig?: {
1558
- sameSite?: "lax" | "strict" | "none" | undefined;
1559
- maxAge?: number | undefined;
1560
- cookieName?: string | undefined;
1561
- secret?: string | string[] | undefined;
1562
- domain?: string | undefined;
1563
- } | undefined;
1564
- sapi?: {
1565
- host: string;
1566
- token: string;
1567
- } | undefined;
1568
- storage?: {
1569
- session?: {
1570
- driver: "scayleKv";
1571
- ttl?: number | undefined;
1572
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1573
- disableClusterMode?: boolean | undefined;
1574
- } | {
1575
- driver: BuiltinDriverName;
1576
- ttl?: number | undefined;
1577
- host?: string | undefined;
1578
- token?: string | undefined;
1579
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1580
- url?: string | undefined;
1581
- port?: number | undefined;
1582
- username?: string | undefined;
1583
- password?: string | undefined;
1584
- tls?: boolean | undefined;
1585
- } | undefined;
1586
- cache?: {
1587
- driver: "scayleKv";
1588
- ttl?: number | undefined;
1589
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1590
- disableClusterMode?: boolean | undefined;
1591
- } | {
1592
- driver: BuiltinDriverName;
1593
- ttl?: number | undefined;
1594
- host?: string | undefined;
1595
- token?: string | undefined;
1596
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1597
- url?: string | undefined;
1598
- port?: number | undefined;
1599
- username?: string | undefined;
1600
- password?: string | undefined;
1601
- tls?: boolean | undefined;
1602
- } | undefined;
1603
- } | undefined;
1604
- isDefault?: boolean | "" | undefined;
1605
- }>;
1606
- redirects?: {
1607
- enabled: boolean;
1608
- queryParamWhitelist?: string[] | undefined;
1609
- strategy?: "before-request" | "on-missing" | undefined;
1610
- } | undefined;
1611
- }, {
1612
- shopSelector: "path" | "domain" | "path_or_default";
1613
- shops: Record<string, {
1614
- shopId: number;
1615
- locale: string;
1616
- auth: {
1617
- resetPasswordUrl: string;
1618
- };
1619
- currency: string;
1620
- checkout: {
1621
- secret: string;
1622
- host: string;
1623
- token: string;
1624
- user: string | number;
1625
- cbdExpiration?: number | undefined;
1626
- shopId?: number | undefined;
1627
- };
1628
- path?: string | string[] | undefined;
1629
- domain?: string | undefined;
1630
- idp?: {
1631
- enabled: boolean;
1632
- idpKeys: string[];
1633
- idpRedirectURL: string;
1634
- } | undefined;
1635
- appKeys?: {
1636
- wishlistKey: string;
1637
- basketKey: string;
1638
- hashAlgorithm: "none" | "md5" | "sha256";
1639
- } | undefined;
1640
- currencyFractionDigits?: number | undefined;
1641
- isEnabled?: boolean | undefined;
1642
- sessionConfig?: {
1643
- sameSite?: "lax" | "strict" | "none" | undefined;
1644
- maxAge?: number | undefined;
1645
- cookieName?: string | undefined;
1646
- secret?: string | string[] | undefined;
1647
- domain?: string | undefined;
1648
- } | undefined;
1649
- sapi?: {
1650
- host: string;
1651
- token: string;
1652
- } | undefined;
1653
- storage?: {
1654
- session?: {
1655
- driver: "scayleKv";
1656
- ttl?: number | undefined;
1657
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1658
- disableClusterMode?: boolean | undefined;
1659
- } | {
1660
- driver: BuiltinDriverName;
1661
- ttl?: number | undefined;
1662
- host?: string | undefined;
1663
- token?: string | undefined;
1664
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1665
- url?: string | undefined;
1666
- port?: number | undefined;
1667
- username?: string | undefined;
1668
- password?: string | undefined;
1669
- tls?: boolean | undefined;
1670
- } | undefined;
1671
- cache?: {
1672
- driver: "scayleKv";
1673
- ttl?: number | undefined;
1674
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1675
- disableClusterMode?: boolean | undefined;
1676
- } | {
1677
- driver: BuiltinDriverName;
1678
- ttl?: number | undefined;
1679
- host?: string | undefined;
1680
- token?: string | undefined;
1681
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1682
- url?: string | undefined;
1683
- port?: number | undefined;
1684
- username?: string | undefined;
1685
- password?: string | undefined;
1686
- tls?: boolean | undefined;
1687
- } | undefined;
1688
- } | undefined;
1689
- isDefault?: string | boolean | undefined;
1690
- }>;
1691
- redirects?: {
1692
- enabled: boolean;
1693
- queryParamWhitelist?: string[] | undefined;
1694
- strategy?: "before-request" | "on-missing" | undefined;
1695
- } | undefined;
1696
- }>, z.ZodObject<{
1697
- session: z.ZodOptional<z.ZodObject<{
681
+ storage: z.ZodMiniOptional<z.ZodMiniObject<{
682
+ session: z.ZodMiniOptional<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
683
+ driver: z.ZodMiniEnum<{
684
+ null: "null";
685
+ "azure-app-configuration": "azure-app-configuration";
686
+ azureAppConfiguration: "azureAppConfiguration";
687
+ "azure-cosmos": "azure-cosmos";
688
+ azureCosmos: "azureCosmos";
689
+ "azure-key-vault": "azure-key-vault";
690
+ azureKeyVault: "azureKeyVault";
691
+ "azure-storage-blob": "azure-storage-blob";
692
+ azureStorageBlob: "azureStorageBlob";
693
+ "azure-storage-table": "azure-storage-table";
694
+ azureStorageTable: "azureStorageTable";
695
+ "capacitor-preferences": "capacitor-preferences";
696
+ capacitorPreferences: "capacitorPreferences";
697
+ "cloudflare-kv-binding": "cloudflare-kv-binding";
698
+ cloudflareKVBinding: "cloudflareKVBinding";
699
+ "cloudflare-kv-http": "cloudflare-kv-http";
700
+ cloudflareKVHttp: "cloudflareKVHttp";
701
+ "cloudflare-r2-binding": "cloudflare-r2-binding";
702
+ cloudflareR2Binding: "cloudflareR2Binding";
703
+ db0: "db0";
704
+ "deno-kv-node": "deno-kv-node";
705
+ denoKVNode: "denoKVNode";
706
+ "deno-kv": "deno-kv";
707
+ denoKV: "denoKV";
708
+ "fs-lite": "fs-lite";
709
+ fsLite: "fsLite";
710
+ fs: "fs";
711
+ github: "github";
712
+ http: "http";
713
+ indexedb: "indexedb";
714
+ localstorage: "localstorage";
715
+ "lru-cache": "lru-cache";
716
+ lruCache: "lruCache";
717
+ memory: "memory";
718
+ mongodb: "mongodb";
719
+ "netlify-blobs": "netlify-blobs";
720
+ netlifyBlobs: "netlifyBlobs";
721
+ overlay: "overlay";
722
+ planetscale: "planetscale";
723
+ redis: "redis";
724
+ s3: "s3";
725
+ "session-storage": "session-storage";
726
+ sessionStorage: "sessionStorage";
727
+ uploadthing: "uploadthing";
728
+ upstash: "upstash";
729
+ "vercel-blob": "vercel-blob";
730
+ vercelBlob: "vercelBlob";
731
+ "vercel-kv": "vercel-kv";
732
+ vercelKV: "vercelKV";
733
+ }>;
734
+ compression: z.ZodMiniOptional<z.ZodMiniEnum<{
735
+ none: "none";
736
+ deflate: "deflate";
737
+ gzip: "gzip";
738
+ brotli: "brotli";
739
+ }>>;
740
+ url: z.ZodMiniOptional<z.ZodMiniURL>;
741
+ token: z.ZodMiniOptional<z.ZodMiniString<string>>;
742
+ host: z.ZodMiniOptional<z.ZodMiniString<string>>;
743
+ port: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
744
+ username: z.ZodMiniOptional<z.ZodMiniString<string>>;
745
+ password: z.ZodMiniOptional<z.ZodMiniString<string>>;
746
+ tls: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
747
+ ttl: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
748
+ }, z.core.$strip>, z.ZodMiniObject<{
749
+ driver: z.ZodMiniLiteral<"scayleKv">;
750
+ compression: z.ZodMiniOptional<z.ZodMiniEnum<{
751
+ none: "none";
752
+ deflate: "deflate";
753
+ gzip: "gzip";
754
+ brotli: "brotli";
755
+ }>>;
756
+ ttl: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
757
+ disableClusterMode: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
758
+ }, z.core.$strip>]>>;
759
+ cache: z.ZodMiniOptional<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
760
+ driver: z.ZodMiniEnum<{
761
+ null: "null";
762
+ "azure-app-configuration": "azure-app-configuration";
763
+ azureAppConfiguration: "azureAppConfiguration";
764
+ "azure-cosmos": "azure-cosmos";
765
+ azureCosmos: "azureCosmos";
766
+ "azure-key-vault": "azure-key-vault";
767
+ azureKeyVault: "azureKeyVault";
768
+ "azure-storage-blob": "azure-storage-blob";
769
+ azureStorageBlob: "azureStorageBlob";
770
+ "azure-storage-table": "azure-storage-table";
771
+ azureStorageTable: "azureStorageTable";
772
+ "capacitor-preferences": "capacitor-preferences";
773
+ capacitorPreferences: "capacitorPreferences";
774
+ "cloudflare-kv-binding": "cloudflare-kv-binding";
775
+ cloudflareKVBinding: "cloudflareKVBinding";
776
+ "cloudflare-kv-http": "cloudflare-kv-http";
777
+ cloudflareKVHttp: "cloudflareKVHttp";
778
+ "cloudflare-r2-binding": "cloudflare-r2-binding";
779
+ cloudflareR2Binding: "cloudflareR2Binding";
780
+ db0: "db0";
781
+ "deno-kv-node": "deno-kv-node";
782
+ denoKVNode: "denoKVNode";
783
+ "deno-kv": "deno-kv";
784
+ denoKV: "denoKV";
785
+ "fs-lite": "fs-lite";
786
+ fsLite: "fsLite";
787
+ fs: "fs";
788
+ github: "github";
789
+ http: "http";
790
+ indexedb: "indexedb";
791
+ localstorage: "localstorage";
792
+ "lru-cache": "lru-cache";
793
+ lruCache: "lruCache";
794
+ memory: "memory";
795
+ mongodb: "mongodb";
796
+ "netlify-blobs": "netlify-blobs";
797
+ netlifyBlobs: "netlifyBlobs";
798
+ overlay: "overlay";
799
+ planetscale: "planetscale";
800
+ redis: "redis";
801
+ s3: "s3";
802
+ "session-storage": "session-storage";
803
+ sessionStorage: "sessionStorage";
804
+ uploadthing: "uploadthing";
805
+ upstash: "upstash";
806
+ "vercel-blob": "vercel-blob";
807
+ vercelBlob: "vercelBlob";
808
+ "vercel-kv": "vercel-kv";
809
+ vercelKV: "vercelKV";
810
+ }>;
811
+ compression: z.ZodMiniOptional<z.ZodMiniEnum<{
812
+ none: "none";
813
+ deflate: "deflate";
814
+ gzip: "gzip";
815
+ brotli: "brotli";
816
+ }>>;
817
+ url: z.ZodMiniOptional<z.ZodMiniURL>;
818
+ token: z.ZodMiniOptional<z.ZodMiniString<string>>;
819
+ host: z.ZodMiniOptional<z.ZodMiniString<string>>;
820
+ port: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
821
+ username: z.ZodMiniOptional<z.ZodMiniString<string>>;
822
+ password: z.ZodMiniOptional<z.ZodMiniString<string>>;
823
+ tls: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
824
+ ttl: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
825
+ }, z.core.$strip>, z.ZodMiniObject<{
826
+ driver: z.ZodMiniLiteral<"scayleKv">;
827
+ compression: z.ZodMiniOptional<z.ZodMiniEnum<{
828
+ none: "none";
829
+ deflate: "deflate";
830
+ gzip: "gzip";
831
+ brotli: "brotli";
832
+ }>>;
833
+ ttl: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
834
+ disableClusterMode: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
835
+ }, z.core.$strip>]>>;
836
+ }, z.core.$strip>>;
837
+ isDefault: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>]>>;
838
+ }, z.core.$strip>>;
839
+ }, z.core.$strip>, z.ZodMiniObject<{
840
+ session: z.ZodMiniOptional<z.ZodMiniObject<{
1698
841
  /**
1699
842
  * The sameSite policy to use for the session cookie
1700
843
  */
1701
- sameSite: z.ZodOptional<z.ZodEnum<["lax", "strict", "none"]>>;
844
+ sameSite: z.ZodMiniOptional<z.ZodMiniEnum<{
845
+ lax: "lax";
846
+ strict: "strict";
847
+ none: "none";
848
+ }>>;
1702
849
  /**
1703
850
  * The default maxAge (in seconds) set on the session cookie and default TTL for session store
1704
851
  */
1705
- maxAge: z.ZodOptional<z.ZodNumber>;
852
+ maxAge: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
1706
853
  /**
1707
854
  * The name used for the session cookie
1708
855
  */
1709
- cookieName: z.ZodOptional<z.ZodString>;
856
+ cookieName: z.ZodMiniOptional<z.ZodMiniString<string>>;
1710
857
  /**
1711
858
  * The secret used for signing session cookies. If an array is passed, the last
1712
859
  * value is used for signing new cookies, but all values are used to verify cookies.
1713
860
  */
1714
- secret: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
861
+ secret: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
1715
862
  /**
1716
863
  * Controls the domain option on the session cookie
1717
864
  */
1718
- domain: z.ZodOptional<z.ZodString>;
1719
- }, "strip", z.ZodTypeAny, {
1720
- sameSite?: "lax" | "strict" | "none" | undefined;
1721
- maxAge?: number | undefined;
1722
- cookieName?: string | undefined;
1723
- secret?: string | string[] | undefined;
1724
- domain?: string | undefined;
1725
- }, {
1726
- sameSite?: "lax" | "strict" | "none" | undefined;
1727
- maxAge?: number | undefined;
1728
- cookieName?: string | undefined;
1729
- secret?: string | string[] | undefined;
1730
- domain?: string | undefined;
1731
- }>>;
865
+ domain: z.ZodMiniOptional<z.ZodMiniString<string>>;
866
+ }, z.core.$strip>>;
1732
867
  /** @deprecated The `storage` option within `storefront` is deprecated. Consider using nuxt storage configuration instead. */
1733
- storage: z.ZodOptional<z.ZodObject<{
1734
- session: z.ZodOptional<z.ZodDiscriminatedUnion<"driver", [z.ZodObject<{
1735
- driver: z.ZodEnum<[BuiltinDriverName, ...BuiltinDriverName[]]>;
1736
- compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
1737
- url: z.ZodOptional<z.ZodString>;
1738
- token: z.ZodOptional<z.ZodString>;
1739
- host: z.ZodOptional<z.ZodString>;
1740
- port: z.ZodOptional<z.ZodNumber>;
1741
- username: z.ZodOptional<z.ZodString>;
1742
- password: z.ZodOptional<z.ZodString>;
1743
- tls: z.ZodOptional<z.ZodBoolean>;
1744
- ttl: z.ZodOptional<z.ZodNumber>;
1745
- }, "strip", z.ZodTypeAny, {
1746
- driver: BuiltinDriverName;
1747
- ttl?: number | undefined;
1748
- host?: string | undefined;
1749
- token?: string | undefined;
1750
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1751
- url?: string | undefined;
1752
- port?: number | undefined;
1753
- username?: string | undefined;
1754
- password?: string | undefined;
1755
- tls?: boolean | undefined;
1756
- }, {
1757
- driver: BuiltinDriverName;
1758
- ttl?: number | undefined;
1759
- host?: string | undefined;
1760
- token?: string | undefined;
1761
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1762
- url?: string | undefined;
1763
- port?: number | undefined;
1764
- username?: string | undefined;
1765
- password?: string | undefined;
1766
- tls?: boolean | undefined;
1767
- }>, z.ZodObject<{
1768
- driver: z.ZodLiteral<"scayleKv">;
1769
- compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
1770
- ttl: z.ZodOptional<z.ZodNumber>;
1771
- disableClusterMode: z.ZodOptional<z.ZodBoolean>;
1772
- }, "strip", z.ZodTypeAny, {
1773
- driver: "scayleKv";
1774
- ttl?: number | undefined;
1775
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1776
- disableClusterMode?: boolean | undefined;
1777
- }, {
1778
- driver: "scayleKv";
1779
- ttl?: number | undefined;
1780
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1781
- disableClusterMode?: boolean | undefined;
1782
- }>]>>;
1783
- cache: z.ZodOptional<z.ZodDiscriminatedUnion<"driver", [z.ZodObject<{
1784
- driver: z.ZodEnum<[BuiltinDriverName, ...BuiltinDriverName[]]>;
1785
- compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
1786
- url: z.ZodOptional<z.ZodString>;
1787
- token: z.ZodOptional<z.ZodString>;
1788
- host: z.ZodOptional<z.ZodString>;
1789
- port: z.ZodOptional<z.ZodNumber>;
1790
- username: z.ZodOptional<z.ZodString>;
1791
- password: z.ZodOptional<z.ZodString>;
1792
- tls: z.ZodOptional<z.ZodBoolean>;
1793
- ttl: z.ZodOptional<z.ZodNumber>;
1794
- }, "strip", z.ZodTypeAny, {
1795
- driver: BuiltinDriverName;
1796
- ttl?: number | undefined;
1797
- host?: string | undefined;
1798
- token?: string | undefined;
1799
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1800
- url?: string | undefined;
1801
- port?: number | undefined;
1802
- username?: string | undefined;
1803
- password?: string | undefined;
1804
- tls?: boolean | undefined;
1805
- }, {
1806
- driver: BuiltinDriverName;
1807
- ttl?: number | undefined;
1808
- host?: string | undefined;
1809
- token?: string | undefined;
1810
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1811
- url?: string | undefined;
1812
- port?: number | undefined;
1813
- username?: string | undefined;
1814
- password?: string | undefined;
1815
- tls?: boolean | undefined;
1816
- }>, z.ZodObject<{
1817
- driver: z.ZodLiteral<"scayleKv">;
1818
- compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
1819
- ttl: z.ZodOptional<z.ZodNumber>;
1820
- disableClusterMode: z.ZodOptional<z.ZodBoolean>;
1821
- }, "strip", z.ZodTypeAny, {
1822
- driver: "scayleKv";
1823
- ttl?: number | undefined;
1824
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1825
- disableClusterMode?: boolean | undefined;
1826
- }, {
1827
- driver: "scayleKv";
1828
- ttl?: number | undefined;
1829
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1830
- disableClusterMode?: boolean | undefined;
1831
- }>]>>;
1832
- }, "strip", z.ZodTypeAny, {
1833
- session?: {
1834
- driver: "scayleKv";
1835
- ttl?: number | undefined;
1836
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1837
- disableClusterMode?: boolean | undefined;
1838
- } | {
1839
- driver: BuiltinDriverName;
1840
- ttl?: number | undefined;
1841
- host?: string | undefined;
1842
- token?: string | undefined;
1843
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1844
- url?: string | undefined;
1845
- port?: number | undefined;
1846
- username?: string | undefined;
1847
- password?: string | undefined;
1848
- tls?: boolean | undefined;
1849
- } | undefined;
1850
- cache?: {
1851
- driver: "scayleKv";
1852
- ttl?: number | undefined;
1853
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1854
- disableClusterMode?: boolean | undefined;
1855
- } | {
1856
- driver: BuiltinDriverName;
1857
- ttl?: number | undefined;
1858
- host?: string | undefined;
1859
- token?: string | undefined;
1860
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1861
- url?: string | undefined;
1862
- port?: number | undefined;
1863
- username?: string | undefined;
1864
- password?: string | undefined;
1865
- tls?: boolean | undefined;
1866
- } | undefined;
1867
- }, {
1868
- session?: {
1869
- driver: "scayleKv";
1870
- ttl?: number | undefined;
1871
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1872
- disableClusterMode?: boolean | undefined;
1873
- } | {
1874
- driver: BuiltinDriverName;
1875
- ttl?: number | undefined;
1876
- host?: string | undefined;
1877
- token?: string | undefined;
1878
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1879
- url?: string | undefined;
1880
- port?: number | undefined;
1881
- username?: string | undefined;
1882
- password?: string | undefined;
1883
- tls?: boolean | undefined;
1884
- } | undefined;
1885
- cache?: {
1886
- driver: "scayleKv";
1887
- ttl?: number | undefined;
1888
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1889
- disableClusterMode?: boolean | undefined;
1890
- } | {
1891
- driver: BuiltinDriverName;
1892
- ttl?: number | undefined;
1893
- host?: string | undefined;
1894
- token?: string | undefined;
1895
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
1896
- url?: string | undefined;
1897
- port?: number | undefined;
1898
- username?: string | undefined;
1899
- password?: string | undefined;
1900
- tls?: boolean | undefined;
1901
- } | undefined;
1902
- }>>;
1903
- oauth: z.ZodObject<{
1904
- apiHost: z.ZodString;
1905
- clientId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
1906
- clientSecret: z.ZodString;
1907
- }, "strip", z.ZodTypeAny, {
1908
- apiHost: string;
1909
- clientId: string | number;
1910
- clientSecret: string;
1911
- }, {
1912
- apiHost: string;
1913
- clientId: string | number;
1914
- clientSecret: string;
1915
- }>;
1916
- appKeys: z.ZodObject<{
1917
- wishlistKey: z.ZodString;
1918
- basketKey: z.ZodString;
1919
- hashAlgorithm: z.ZodEnum<["md5", "sha256", "none"]>;
1920
- }, "strip", z.ZodTypeAny, {
1921
- wishlistKey: string;
1922
- basketKey: string;
1923
- hashAlgorithm: "none" | "md5" | "sha256";
1924
- }, {
1925
- wishlistKey: string;
1926
- basketKey: string;
1927
- hashAlgorithm: "none" | "md5" | "sha256";
1928
- }>;
1929
- apiBasePath: z.ZodOptional<z.ZodString>;
1930
- cache: z.ZodOptional<z.ZodObject<{
1931
- auth: z.ZodOptional<z.ZodObject<{
1932
- username: z.ZodString;
1933
- password: z.ZodString;
1934
- }, "strip", z.ZodTypeAny, {
1935
- username: string;
1936
- password: string;
1937
- }, {
1938
- username: string;
1939
- password: string;
1940
- }>>;
1941
- enabled: z.ZodOptional<z.ZodBoolean>;
1942
- }, "strip", z.ZodTypeAny, {
1943
- enabled?: boolean | undefined;
1944
- auth?: {
1945
- username: string;
1946
- password: string;
1947
- } | undefined;
1948
- }, {
1949
- enabled?: boolean | undefined;
1950
- auth?: {
1951
- username: string;
1952
- password: string;
1953
- } | undefined;
1954
- }>>;
1955
- publicShopData: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1956
- idp: z.ZodOptional<z.ZodObject<{
1957
- enabled: z.ZodBoolean;
1958
- idpKeys: z.ZodArray<z.ZodString, "many">;
1959
- idpRedirectURL: z.ZodString;
1960
- }, "strip", z.ZodTypeAny, {
1961
- enabled: boolean;
1962
- idpKeys: string[];
1963
- idpRedirectURL: string;
1964
- }, {
1965
- enabled: boolean;
1966
- idpKeys: string[];
1967
- idpRedirectURL: string;
1968
- }>>;
1969
- sapi: z.ZodObject<{
1970
- host: z.ZodString;
1971
- token: z.ZodString;
1972
- }, "strip", z.ZodTypeAny, {
1973
- host: string;
1974
- token: string;
1975
- }, {
1976
- host: string;
1977
- token: string;
1978
- }>;
868
+ storage: z.ZodMiniOptional<z.ZodMiniObject<{
869
+ session: z.ZodMiniOptional<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
870
+ driver: z.ZodMiniEnum<{
871
+ null: "null";
872
+ "azure-app-configuration": "azure-app-configuration";
873
+ azureAppConfiguration: "azureAppConfiguration";
874
+ "azure-cosmos": "azure-cosmos";
875
+ azureCosmos: "azureCosmos";
876
+ "azure-key-vault": "azure-key-vault";
877
+ azureKeyVault: "azureKeyVault";
878
+ "azure-storage-blob": "azure-storage-blob";
879
+ azureStorageBlob: "azureStorageBlob";
880
+ "azure-storage-table": "azure-storage-table";
881
+ azureStorageTable: "azureStorageTable";
882
+ "capacitor-preferences": "capacitor-preferences";
883
+ capacitorPreferences: "capacitorPreferences";
884
+ "cloudflare-kv-binding": "cloudflare-kv-binding";
885
+ cloudflareKVBinding: "cloudflareKVBinding";
886
+ "cloudflare-kv-http": "cloudflare-kv-http";
887
+ cloudflareKVHttp: "cloudflareKVHttp";
888
+ "cloudflare-r2-binding": "cloudflare-r2-binding";
889
+ cloudflareR2Binding: "cloudflareR2Binding";
890
+ db0: "db0";
891
+ "deno-kv-node": "deno-kv-node";
892
+ denoKVNode: "denoKVNode";
893
+ "deno-kv": "deno-kv";
894
+ denoKV: "denoKV";
895
+ "fs-lite": "fs-lite";
896
+ fsLite: "fsLite";
897
+ fs: "fs";
898
+ github: "github";
899
+ http: "http";
900
+ indexedb: "indexedb";
901
+ localstorage: "localstorage";
902
+ "lru-cache": "lru-cache";
903
+ lruCache: "lruCache";
904
+ memory: "memory";
905
+ mongodb: "mongodb";
906
+ "netlify-blobs": "netlify-blobs";
907
+ netlifyBlobs: "netlifyBlobs";
908
+ overlay: "overlay";
909
+ planetscale: "planetscale";
910
+ redis: "redis";
911
+ s3: "s3";
912
+ "session-storage": "session-storage";
913
+ sessionStorage: "sessionStorage";
914
+ uploadthing: "uploadthing";
915
+ upstash: "upstash";
916
+ "vercel-blob": "vercel-blob";
917
+ vercelBlob: "vercelBlob";
918
+ "vercel-kv": "vercel-kv";
919
+ vercelKV: "vercelKV";
920
+ }>;
921
+ compression: z.ZodMiniOptional<z.ZodMiniEnum<{
922
+ none: "none";
923
+ deflate: "deflate";
924
+ gzip: "gzip";
925
+ brotli: "brotli";
926
+ }>>;
927
+ url: z.ZodMiniOptional<z.ZodMiniURL>;
928
+ token: z.ZodMiniOptional<z.ZodMiniString<string>>;
929
+ host: z.ZodMiniOptional<z.ZodMiniString<string>>;
930
+ port: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
931
+ username: z.ZodMiniOptional<z.ZodMiniString<string>>;
932
+ password: z.ZodMiniOptional<z.ZodMiniString<string>>;
933
+ tls: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
934
+ ttl: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
935
+ }, z.core.$strip>, z.ZodMiniObject<{
936
+ driver: z.ZodMiniLiteral<"scayleKv">;
937
+ compression: z.ZodMiniOptional<z.ZodMiniEnum<{
938
+ none: "none";
939
+ deflate: "deflate";
940
+ gzip: "gzip";
941
+ brotli: "brotli";
942
+ }>>;
943
+ ttl: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
944
+ disableClusterMode: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
945
+ }, z.core.$strip>]>>;
946
+ cache: z.ZodMiniOptional<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
947
+ driver: z.ZodMiniEnum<{
948
+ null: "null";
949
+ "azure-app-configuration": "azure-app-configuration";
950
+ azureAppConfiguration: "azureAppConfiguration";
951
+ "azure-cosmos": "azure-cosmos";
952
+ azureCosmos: "azureCosmos";
953
+ "azure-key-vault": "azure-key-vault";
954
+ azureKeyVault: "azureKeyVault";
955
+ "azure-storage-blob": "azure-storage-blob";
956
+ azureStorageBlob: "azureStorageBlob";
957
+ "azure-storage-table": "azure-storage-table";
958
+ azureStorageTable: "azureStorageTable";
959
+ "capacitor-preferences": "capacitor-preferences";
960
+ capacitorPreferences: "capacitorPreferences";
961
+ "cloudflare-kv-binding": "cloudflare-kv-binding";
962
+ cloudflareKVBinding: "cloudflareKVBinding";
963
+ "cloudflare-kv-http": "cloudflare-kv-http";
964
+ cloudflareKVHttp: "cloudflareKVHttp";
965
+ "cloudflare-r2-binding": "cloudflare-r2-binding";
966
+ cloudflareR2Binding: "cloudflareR2Binding";
967
+ db0: "db0";
968
+ "deno-kv-node": "deno-kv-node";
969
+ denoKVNode: "denoKVNode";
970
+ "deno-kv": "deno-kv";
971
+ denoKV: "denoKV";
972
+ "fs-lite": "fs-lite";
973
+ fsLite: "fsLite";
974
+ fs: "fs";
975
+ github: "github";
976
+ http: "http";
977
+ indexedb: "indexedb";
978
+ localstorage: "localstorage";
979
+ "lru-cache": "lru-cache";
980
+ lruCache: "lruCache";
981
+ memory: "memory";
982
+ mongodb: "mongodb";
983
+ "netlify-blobs": "netlify-blobs";
984
+ netlifyBlobs: "netlifyBlobs";
985
+ overlay: "overlay";
986
+ planetscale: "planetscale";
987
+ redis: "redis";
988
+ s3: "s3";
989
+ "session-storage": "session-storage";
990
+ sessionStorage: "sessionStorage";
991
+ uploadthing: "uploadthing";
992
+ upstash: "upstash";
993
+ "vercel-blob": "vercel-blob";
994
+ vercelBlob: "vercelBlob";
995
+ "vercel-kv": "vercel-kv";
996
+ vercelKV: "vercelKV";
997
+ }>;
998
+ compression: z.ZodMiniOptional<z.ZodMiniEnum<{
999
+ none: "none";
1000
+ deflate: "deflate";
1001
+ gzip: "gzip";
1002
+ brotli: "brotli";
1003
+ }>>;
1004
+ url: z.ZodMiniOptional<z.ZodMiniURL>;
1005
+ token: z.ZodMiniOptional<z.ZodMiniString<string>>;
1006
+ host: z.ZodMiniOptional<z.ZodMiniString<string>>;
1007
+ port: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
1008
+ username: z.ZodMiniOptional<z.ZodMiniString<string>>;
1009
+ password: z.ZodMiniOptional<z.ZodMiniString<string>>;
1010
+ tls: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
1011
+ ttl: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
1012
+ }, z.core.$strip>, z.ZodMiniObject<{
1013
+ driver: z.ZodMiniLiteral<"scayleKv">;
1014
+ compression: z.ZodMiniOptional<z.ZodMiniEnum<{
1015
+ none: "none";
1016
+ deflate: "deflate";
1017
+ gzip: "gzip";
1018
+ brotli: "brotli";
1019
+ }>>;
1020
+ ttl: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
1021
+ disableClusterMode: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
1022
+ }, z.core.$strip>]>>;
1023
+ }, z.core.$strip>>;
1024
+ oauth: z.ZodMiniObject<{
1025
+ apiHost: z.ZodMiniURL;
1026
+ clientId: z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniString<string>]>;
1027
+ clientSecret: z.ZodMiniString<string>;
1028
+ }, z.core.$strip>;
1029
+ appKeys: z.ZodMiniObject<{
1030
+ wishlistKey: z.ZodMiniString<string>;
1031
+ basketKey: z.ZodMiniString<string>;
1032
+ hashAlgorithm: z.ZodMiniEnum<{
1033
+ none: "none";
1034
+ md5: "md5";
1035
+ sha256: "sha256";
1036
+ }>;
1037
+ }, z.core.$strip>;
1038
+ apiBasePath: z.ZodMiniOptional<z.ZodMiniString<string>>;
1039
+ cache: z.ZodMiniOptional<z.ZodMiniObject<{
1040
+ auth: z.ZodMiniOptional<z.ZodMiniObject<{
1041
+ username: z.ZodMiniString<string>;
1042
+ password: z.ZodMiniString<string>;
1043
+ }, z.core.$strip>>;
1044
+ enabled: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
1045
+ }, z.core.$strip>>;
1046
+ publicShopData: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
1047
+ idp: z.ZodMiniOptional<z.ZodMiniObject<{
1048
+ enabled: z.ZodMiniBoolean<boolean>;
1049
+ idpKeys: z.ZodMiniArray<z.ZodMiniString<string>>;
1050
+ idpRedirectURL: z.ZodMiniString<string>;
1051
+ }, z.core.$strip>>;
1052
+ sapi: z.ZodMiniObject<{
1053
+ host: z.ZodMiniURL;
1054
+ token: z.ZodMiniString<string>;
1055
+ }, z.core.$strip>;
1979
1056
  /** Collection of feature flags regarding legacy features and functionalities */
1980
- legacy: z.ZodOptional<z.ZodObject<{
1981
- enableSessionMigration: z.ZodOptional<z.ZodBoolean>;
1982
- }, "strip", z.ZodTypeAny, {
1983
- enableSessionMigration?: boolean | undefined;
1984
- }, {
1985
- enableSessionMigration?: boolean | undefined;
1986
- }>>;
1057
+ legacy: z.ZodMiniOptional<z.ZodMiniObject<{
1058
+ enableSessionMigration: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
1059
+ }, z.core.$strip>>;
1987
1060
  /** Undocumented property intended for internal usage only */
1988
- internalAccessHeader: z.ZodOptional<z.ZodString>;
1989
- }, "strip", z.ZodTypeAny, {
1990
- appKeys: {
1991
- wishlistKey: string;
1992
- basketKey: string;
1993
- hashAlgorithm: "none" | "md5" | "sha256";
1994
- };
1995
- sapi: {
1996
- host: string;
1997
- token: string;
1998
- };
1999
- oauth: {
2000
- apiHost: string;
2001
- clientId: string | number;
2002
- clientSecret: string;
2003
- };
2004
- idp?: {
2005
- enabled: boolean;
2006
- idpKeys: string[];
2007
- idpRedirectURL: string;
2008
- } | undefined;
2009
- session?: {
2010
- sameSite?: "lax" | "strict" | "none" | undefined;
2011
- maxAge?: number | undefined;
2012
- cookieName?: string | undefined;
2013
- secret?: string | string[] | undefined;
2014
- domain?: string | undefined;
2015
- } | undefined;
2016
- cache?: {
2017
- enabled?: boolean | undefined;
2018
- auth?: {
2019
- username: string;
2020
- password: string;
2021
- } | undefined;
2022
- } | undefined;
2023
- storage?: {
2024
- session?: {
2025
- driver: "scayleKv";
2026
- ttl?: number | undefined;
2027
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2028
- disableClusterMode?: boolean | undefined;
2029
- } | {
2030
- driver: BuiltinDriverName;
2031
- ttl?: number | undefined;
2032
- host?: string | undefined;
2033
- token?: string | undefined;
2034
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2035
- url?: string | undefined;
2036
- port?: number | undefined;
2037
- username?: string | undefined;
2038
- password?: string | undefined;
2039
- tls?: boolean | undefined;
2040
- } | undefined;
2041
- cache?: {
2042
- driver: "scayleKv";
2043
- ttl?: number | undefined;
2044
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2045
- disableClusterMode?: boolean | undefined;
2046
- } | {
2047
- driver: BuiltinDriverName;
2048
- ttl?: number | undefined;
2049
- host?: string | undefined;
2050
- token?: string | undefined;
2051
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2052
- url?: string | undefined;
2053
- port?: number | undefined;
2054
- username?: string | undefined;
2055
- password?: string | undefined;
2056
- tls?: boolean | undefined;
2057
- } | undefined;
2058
- } | undefined;
2059
- apiBasePath?: string | undefined;
2060
- publicShopData?: string[] | undefined;
2061
- legacy?: {
2062
- enableSessionMigration?: boolean | undefined;
2063
- } | undefined;
2064
- internalAccessHeader?: string | undefined;
2065
- }, {
2066
- appKeys: {
2067
- wishlistKey: string;
2068
- basketKey: string;
2069
- hashAlgorithm: "none" | "md5" | "sha256";
2070
- };
2071
- sapi: {
2072
- host: string;
2073
- token: string;
2074
- };
2075
- oauth: {
2076
- apiHost: string;
2077
- clientId: string | number;
2078
- clientSecret: string;
2079
- };
2080
- idp?: {
2081
- enabled: boolean;
2082
- idpKeys: string[];
2083
- idpRedirectURL: string;
2084
- } | undefined;
2085
- session?: {
2086
- sameSite?: "lax" | "strict" | "none" | undefined;
2087
- maxAge?: number | undefined;
2088
- cookieName?: string | undefined;
2089
- secret?: string | string[] | undefined;
2090
- domain?: string | undefined;
2091
- } | undefined;
2092
- cache?: {
2093
- enabled?: boolean | undefined;
2094
- auth?: {
2095
- username: string;
2096
- password: string;
2097
- } | undefined;
2098
- } | undefined;
2099
- storage?: {
2100
- session?: {
2101
- driver: "scayleKv";
2102
- ttl?: number | undefined;
2103
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2104
- disableClusterMode?: boolean | undefined;
2105
- } | {
2106
- driver: BuiltinDriverName;
2107
- ttl?: number | undefined;
2108
- host?: string | undefined;
2109
- token?: string | undefined;
2110
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2111
- url?: string | undefined;
2112
- port?: number | undefined;
2113
- username?: string | undefined;
2114
- password?: string | undefined;
2115
- tls?: boolean | undefined;
2116
- } | undefined;
2117
- cache?: {
2118
- driver: "scayleKv";
2119
- ttl?: number | undefined;
2120
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2121
- disableClusterMode?: boolean | undefined;
2122
- } | {
2123
- driver: BuiltinDriverName;
2124
- ttl?: number | undefined;
2125
- host?: string | undefined;
2126
- token?: string | undefined;
2127
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2128
- url?: string | undefined;
2129
- port?: number | undefined;
2130
- username?: string | undefined;
2131
- password?: string | undefined;
2132
- tls?: boolean | undefined;
2133
- } | undefined;
2134
- } | undefined;
2135
- apiBasePath?: string | undefined;
2136
- publicShopData?: string[] | undefined;
2137
- legacy?: {
2138
- enableSessionMigration?: boolean | undefined;
2139
- } | undefined;
2140
- internalAccessHeader?: string | undefined;
2141
- }>>;
2142
- public: z.ZodObject<{
2143
- storefront: z.ZodObject<{
2144
- log: z.ZodObject<{
2145
- name: z.ZodString;
2146
- level: z.ZodType<LogLevel, z.ZodTypeDef, LogLevel>;
2147
- json: z.ZodOptional<z.ZodBoolean>;
2148
- output: z.ZodDefault<z.ZodEnum<["stdout", "stderr", "auto"]>>;
2149
- }, "strip", z.ZodTypeAny, {
2150
- name: string;
2151
- level: LogLevel;
2152
- output: "stdout" | "stderr" | "auto";
2153
- json?: boolean | undefined;
2154
- }, {
2155
- name: string;
2156
- level: LogLevel;
2157
- json?: boolean | undefined;
2158
- output?: "stdout" | "stderr" | "auto" | undefined;
2159
- }>;
1061
+ internalAccessHeader: z.ZodMiniOptional<z.ZodMiniString<string>>;
1062
+ }, z.core.$strip>>;
1063
+ public: z.ZodMiniObject<{
1064
+ storefront: z.ZodMiniObject<{
1065
+ log: z.ZodMiniObject<{
1066
+ name: z.ZodMiniString<string>;
1067
+ level: z.ZodMiniType<LogLevel, unknown, z.core.$ZodTypeInternals<LogLevel, unknown>>;
1068
+ json: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
1069
+ output: z.ZodMiniDefault<z.ZodMiniEnum<{
1070
+ stdout: "stdout";
1071
+ stderr: "stderr";
1072
+ auto: "auto";
1073
+ }>>;
1074
+ }, z.core.$strip>;
2160
1075
  /** Collection of feature flags regarding legacy features and functionalities */
2161
- legacy: z.ZodOptional<z.ZodObject<{
2162
- enableDefaultGetCachedDataOverride: z.ZodOptional<z.ZodBoolean>;
2163
- }, "strip", z.ZodTypeAny, {
2164
- enableDefaultGetCachedDataOverride?: boolean | undefined;
2165
- }, {
2166
- enableDefaultGetCachedDataOverride?: boolean | undefined;
2167
- }>>;
2168
- }, "strip", z.ZodTypeAny, {
2169
- log: {
2170
- name: string;
2171
- level: LogLevel;
2172
- output: "stdout" | "stderr" | "auto";
2173
- json?: boolean | undefined;
2174
- };
2175
- legacy?: {
2176
- enableDefaultGetCachedDataOverride?: boolean | undefined;
2177
- } | undefined;
2178
- }, {
2179
- log: {
2180
- name: string;
2181
- level: LogLevel;
2182
- json?: boolean | undefined;
2183
- output?: "stdout" | "stderr" | "auto" | undefined;
2184
- };
2185
- legacy?: {
2186
- enableDefaultGetCachedDataOverride?: boolean | undefined;
2187
- } | undefined;
2188
- }>;
2189
- }, "strip", z.ZodTypeAny, {
2190
- storefront: {
2191
- log: {
2192
- name: string;
2193
- level: LogLevel;
2194
- output: "stdout" | "stderr" | "auto";
2195
- json?: boolean | undefined;
2196
- };
2197
- legacy?: {
2198
- enableDefaultGetCachedDataOverride?: boolean | undefined;
2199
- } | undefined;
2200
- };
2201
- }, {
2202
- storefront: {
2203
- log: {
2204
- name: string;
2205
- level: LogLevel;
2206
- json?: boolean | undefined;
2207
- output?: "stdout" | "stderr" | "auto" | undefined;
2208
- };
2209
- legacy?: {
2210
- enableDefaultGetCachedDataOverride?: boolean | undefined;
2211
- } | undefined;
2212
- };
2213
- }>;
2214
- }, "strip", z.ZodTypeAny, {
2215
- storefront: {
2216
- shopSelector: "path" | "domain" | "path_or_default";
2217
- shops: Record<string, {
2218
- shopId: number;
2219
- locale: string;
2220
- auth: {
2221
- resetPasswordUrl: string;
2222
- };
2223
- currency: string;
2224
- checkout: {
2225
- secret: string;
2226
- host: string;
2227
- token: string;
2228
- user: string | number;
2229
- cbdExpiration?: number | undefined;
2230
- shopId?: number | undefined;
2231
- };
2232
- path?: string | string[] | undefined;
2233
- domain?: string | undefined;
2234
- idp?: {
2235
- enabled: boolean;
2236
- idpKeys: string[];
2237
- idpRedirectURL: string;
2238
- } | undefined;
2239
- appKeys?: {
2240
- wishlistKey: string;
2241
- basketKey: string;
2242
- hashAlgorithm: "none" | "md5" | "sha256";
2243
- } | undefined;
2244
- currencyFractionDigits?: number | undefined;
2245
- isEnabled?: boolean | undefined;
2246
- sessionConfig?: {
2247
- sameSite?: "lax" | "strict" | "none" | undefined;
2248
- maxAge?: number | undefined;
2249
- cookieName?: string | undefined;
2250
- secret?: string | string[] | undefined;
2251
- domain?: string | undefined;
2252
- } | undefined;
2253
- sapi?: {
2254
- host: string;
2255
- token: string;
2256
- } | undefined;
2257
- storage?: {
2258
- session?: {
2259
- driver: "scayleKv";
2260
- ttl?: number | undefined;
2261
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2262
- disableClusterMode?: boolean | undefined;
2263
- } | {
2264
- driver: BuiltinDriverName;
2265
- ttl?: number | undefined;
2266
- host?: string | undefined;
2267
- token?: string | undefined;
2268
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2269
- url?: string | undefined;
2270
- port?: number | undefined;
2271
- username?: string | undefined;
2272
- password?: string | undefined;
2273
- tls?: boolean | undefined;
2274
- } | undefined;
2275
- cache?: {
2276
- driver: "scayleKv";
2277
- ttl?: number | undefined;
2278
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2279
- disableClusterMode?: boolean | undefined;
2280
- } | {
2281
- driver: BuiltinDriverName;
2282
- ttl?: number | undefined;
2283
- host?: string | undefined;
2284
- token?: string | undefined;
2285
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2286
- url?: string | undefined;
2287
- port?: number | undefined;
2288
- username?: string | undefined;
2289
- password?: string | undefined;
2290
- tls?: boolean | undefined;
2291
- } | undefined;
2292
- } | undefined;
2293
- isDefault?: boolean | "" | undefined;
2294
- }>;
2295
- redirects?: {
2296
- enabled: boolean;
2297
- queryParamWhitelist?: string[] | undefined;
2298
- strategy?: "before-request" | "on-missing" | undefined;
2299
- } | undefined;
2300
- } & {
2301
- appKeys: {
2302
- wishlistKey: string;
2303
- basketKey: string;
2304
- hashAlgorithm: "none" | "md5" | "sha256";
2305
- };
2306
- sapi: {
2307
- host: string;
2308
- token: string;
2309
- };
2310
- oauth: {
2311
- apiHost: string;
2312
- clientId: string | number;
2313
- clientSecret: string;
2314
- };
2315
- idp?: {
2316
- enabled: boolean;
2317
- idpKeys: string[];
2318
- idpRedirectURL: string;
2319
- } | undefined;
2320
- session?: {
2321
- sameSite?: "lax" | "strict" | "none" | undefined;
2322
- maxAge?: number | undefined;
2323
- cookieName?: string | undefined;
2324
- secret?: string | string[] | undefined;
2325
- domain?: string | undefined;
2326
- } | undefined;
2327
- cache?: {
2328
- enabled?: boolean | undefined;
2329
- auth?: {
2330
- username: string;
2331
- password: string;
2332
- } | undefined;
2333
- } | undefined;
2334
- storage?: {
2335
- session?: {
2336
- driver: "scayleKv";
2337
- ttl?: number | undefined;
2338
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2339
- disableClusterMode?: boolean | undefined;
2340
- } | {
2341
- driver: BuiltinDriverName;
2342
- ttl?: number | undefined;
2343
- host?: string | undefined;
2344
- token?: string | undefined;
2345
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2346
- url?: string | undefined;
2347
- port?: number | undefined;
2348
- username?: string | undefined;
2349
- password?: string | undefined;
2350
- tls?: boolean | undefined;
2351
- } | undefined;
2352
- cache?: {
2353
- driver: "scayleKv";
2354
- ttl?: number | undefined;
2355
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2356
- disableClusterMode?: boolean | undefined;
2357
- } | {
2358
- driver: BuiltinDriverName;
2359
- ttl?: number | undefined;
2360
- host?: string | undefined;
2361
- token?: string | undefined;
2362
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2363
- url?: string | undefined;
2364
- port?: number | undefined;
2365
- username?: string | undefined;
2366
- password?: string | undefined;
2367
- tls?: boolean | undefined;
2368
- } | undefined;
2369
- } | undefined;
2370
- apiBasePath?: string | undefined;
2371
- publicShopData?: string[] | undefined;
2372
- legacy?: {
2373
- enableSessionMigration?: boolean | undefined;
2374
- } | undefined;
2375
- internalAccessHeader?: string | undefined;
2376
- };
2377
- public: {
2378
- storefront: {
2379
- log: {
2380
- name: string;
2381
- level: LogLevel;
2382
- output: "stdout" | "stderr" | "auto";
2383
- json?: boolean | undefined;
2384
- };
2385
- legacy?: {
2386
- enableDefaultGetCachedDataOverride?: boolean | undefined;
2387
- } | undefined;
2388
- };
2389
- };
2390
- }, {
2391
- storefront: {
2392
- shopSelector: "path" | "domain" | "path_or_default";
2393
- shops: Record<string, {
2394
- shopId: number;
2395
- locale: string;
2396
- auth: {
2397
- resetPasswordUrl: string;
2398
- };
2399
- currency: string;
2400
- checkout: {
2401
- secret: string;
2402
- host: string;
2403
- token: string;
2404
- user: string | number;
2405
- cbdExpiration?: number | undefined;
2406
- shopId?: number | undefined;
2407
- };
2408
- path?: string | string[] | undefined;
2409
- domain?: string | undefined;
2410
- idp?: {
2411
- enabled: boolean;
2412
- idpKeys: string[];
2413
- idpRedirectURL: string;
2414
- } | undefined;
2415
- appKeys?: {
2416
- wishlistKey: string;
2417
- basketKey: string;
2418
- hashAlgorithm: "none" | "md5" | "sha256";
2419
- } | undefined;
2420
- currencyFractionDigits?: number | undefined;
2421
- isEnabled?: boolean | undefined;
2422
- sessionConfig?: {
2423
- sameSite?: "lax" | "strict" | "none" | undefined;
2424
- maxAge?: number | undefined;
2425
- cookieName?: string | undefined;
2426
- secret?: string | string[] | undefined;
2427
- domain?: string | undefined;
2428
- } | undefined;
2429
- sapi?: {
2430
- host: string;
2431
- token: string;
2432
- } | undefined;
2433
- storage?: {
2434
- session?: {
2435
- driver: "scayleKv";
2436
- ttl?: number | undefined;
2437
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2438
- disableClusterMode?: boolean | undefined;
2439
- } | {
2440
- driver: BuiltinDriverName;
2441
- ttl?: number | undefined;
2442
- host?: string | undefined;
2443
- token?: string | undefined;
2444
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2445
- url?: string | undefined;
2446
- port?: number | undefined;
2447
- username?: string | undefined;
2448
- password?: string | undefined;
2449
- tls?: boolean | undefined;
2450
- } | undefined;
2451
- cache?: {
2452
- driver: "scayleKv";
2453
- ttl?: number | undefined;
2454
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2455
- disableClusterMode?: boolean | undefined;
2456
- } | {
2457
- driver: BuiltinDriverName;
2458
- ttl?: number | undefined;
2459
- host?: string | undefined;
2460
- token?: string | undefined;
2461
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2462
- url?: string | undefined;
2463
- port?: number | undefined;
2464
- username?: string | undefined;
2465
- password?: string | undefined;
2466
- tls?: boolean | undefined;
2467
- } | undefined;
2468
- } | undefined;
2469
- isDefault?: string | boolean | undefined;
2470
- }>;
2471
- redirects?: {
2472
- enabled: boolean;
2473
- queryParamWhitelist?: string[] | undefined;
2474
- strategy?: "before-request" | "on-missing" | undefined;
2475
- } | undefined;
2476
- } & {
2477
- appKeys: {
2478
- wishlistKey: string;
2479
- basketKey: string;
2480
- hashAlgorithm: "none" | "md5" | "sha256";
2481
- };
2482
- sapi: {
2483
- host: string;
2484
- token: string;
2485
- };
2486
- oauth: {
2487
- apiHost: string;
2488
- clientId: string | number;
2489
- clientSecret: string;
2490
- };
2491
- idp?: {
2492
- enabled: boolean;
2493
- idpKeys: string[];
2494
- idpRedirectURL: string;
2495
- } | undefined;
2496
- session?: {
2497
- sameSite?: "lax" | "strict" | "none" | undefined;
2498
- maxAge?: number | undefined;
2499
- cookieName?: string | undefined;
2500
- secret?: string | string[] | undefined;
2501
- domain?: string | undefined;
2502
- } | undefined;
2503
- cache?: {
2504
- enabled?: boolean | undefined;
2505
- auth?: {
2506
- username: string;
2507
- password: string;
2508
- } | undefined;
2509
- } | undefined;
2510
- storage?: {
2511
- session?: {
2512
- driver: "scayleKv";
2513
- ttl?: number | undefined;
2514
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2515
- disableClusterMode?: boolean | undefined;
2516
- } | {
2517
- driver: BuiltinDriverName;
2518
- ttl?: number | undefined;
2519
- host?: string | undefined;
2520
- token?: string | undefined;
2521
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2522
- url?: string | undefined;
2523
- port?: number | undefined;
2524
- username?: string | undefined;
2525
- password?: string | undefined;
2526
- tls?: boolean | undefined;
2527
- } | undefined;
2528
- cache?: {
2529
- driver: "scayleKv";
2530
- ttl?: number | undefined;
2531
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2532
- disableClusterMode?: boolean | undefined;
2533
- } | {
2534
- driver: BuiltinDriverName;
2535
- ttl?: number | undefined;
2536
- host?: string | undefined;
2537
- token?: string | undefined;
2538
- compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
2539
- url?: string | undefined;
2540
- port?: number | undefined;
2541
- username?: string | undefined;
2542
- password?: string | undefined;
2543
- tls?: boolean | undefined;
2544
- } | undefined;
2545
- } | undefined;
2546
- apiBasePath?: string | undefined;
2547
- publicShopData?: string[] | undefined;
2548
- legacy?: {
2549
- enableSessionMigration?: boolean | undefined;
2550
- } | undefined;
2551
- internalAccessHeader?: string | undefined;
2552
- };
2553
- public: {
2554
- storefront: {
2555
- log: {
2556
- name: string;
2557
- level: LogLevel;
2558
- json?: boolean | undefined;
2559
- output?: "stdout" | "stderr" | "auto" | undefined;
2560
- };
2561
- legacy?: {
2562
- enableDefaultGetCachedDataOverride?: boolean | undefined;
2563
- } | undefined;
2564
- };
2565
- };
2566
- }>;
1076
+ legacy: z.ZodMiniOptional<z.ZodMiniObject<{
1077
+ enableDefaultGetCachedDataOverride: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
1078
+ }, z.core.$strip>>;
1079
+ }, z.core.$strip>;
1080
+ }, z.core.$strip>;
1081
+ }, z.core.$strip>;
2567
1082
  type CheckoutShopConfigType = z.infer<typeof CheckoutShopConfigSchema>;
2568
1083
  type SessionType = z.infer<typeof SessionSchema>;
2569
1084
  type StorageType = z.infer<typeof StorageSchema>;