@firfi/voila-sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +165 -0
  3. package/dist/src/domain/cart.d.ts +10 -0
  4. package/dist/src/domain/cart.d.ts.map +1 -0
  5. package/dist/src/domain/cart.js +14 -0
  6. package/dist/src/domain/cart.js.map +1 -0
  7. package/dist/src/domain/checkout-readiness.d.ts +3 -0
  8. package/dist/src/domain/checkout-readiness.d.ts.map +1 -0
  9. package/dist/src/domain/checkout-readiness.js +18 -0
  10. package/dist/src/domain/checkout-readiness.js.map +1 -0
  11. package/dist/src/domain/parse.d.ts +5 -0
  12. package/dist/src/domain/parse.d.ts.map +1 -0
  13. package/dist/src/domain/parse.js +11 -0
  14. package/dist/src/domain/parse.js.map +1 -0
  15. package/dist/src/domain/schemas/auth.d.ts +123 -0
  16. package/dist/src/domain/schemas/auth.d.ts.map +1 -0
  17. package/dist/src/domain/schemas/auth.js +36 -0
  18. package/dist/src/domain/schemas/auth.js.map +1 -0
  19. package/dist/src/domain/schemas/cart.d.ts +1224 -0
  20. package/dist/src/domain/schemas/cart.d.ts.map +1 -0
  21. package/dist/src/domain/schemas/cart.js +123 -0
  22. package/dist/src/domain/schemas/cart.js.map +1 -0
  23. package/dist/src/domain/schemas/category-page.d.ts +187 -0
  24. package/dist/src/domain/schemas/category-page.d.ts.map +1 -0
  25. package/dist/src/domain/schemas/category-page.js +43 -0
  26. package/dist/src/domain/schemas/category-page.js.map +1 -0
  27. package/dist/src/domain/schemas/category.d.ts +25 -0
  28. package/dist/src/domain/schemas/category.d.ts.map +1 -0
  29. package/dist/src/domain/schemas/category.js +30 -0
  30. package/dist/src/domain/schemas/category.js.map +1 -0
  31. package/dist/src/domain/schemas/checkout-summary.d.ts +1035 -0
  32. package/dist/src/domain/schemas/checkout-summary.d.ts.map +1 -0
  33. package/dist/src/domain/schemas/checkout-summary.js +103 -0
  34. package/dist/src/domain/schemas/checkout-summary.js.map +1 -0
  35. package/dist/src/domain/schemas/delivery-destination.d.ts +176 -0
  36. package/dist/src/domain/schemas/delivery-destination.d.ts.map +1 -0
  37. package/dist/src/domain/schemas/delivery-destination.js +52 -0
  38. package/dist/src/domain/schemas/delivery-destination.js.map +1 -0
  39. package/dist/src/domain/schemas/index.d.ts +13 -0
  40. package/dist/src/domain/schemas/index.d.ts.map +1 -0
  41. package/dist/src/domain/schemas/index.js +13 -0
  42. package/dist/src/domain/schemas/index.js.map +1 -0
  43. package/dist/src/domain/schemas/money.d.ts +18 -0
  44. package/dist/src/domain/schemas/money.d.ts.map +1 -0
  45. package/dist/src/domain/schemas/money.js +11 -0
  46. package/dist/src/domain/schemas/money.js.map +1 -0
  47. package/dist/src/domain/schemas/product.d.ts +230 -0
  48. package/dist/src/domain/schemas/product.d.ts.map +1 -0
  49. package/dist/src/domain/schemas/product.js +32 -0
  50. package/dist/src/domain/schemas/product.js.map +1 -0
  51. package/dist/src/domain/schemas/proposition.d.ts +746 -0
  52. package/dist/src/domain/schemas/proposition.d.ts.map +1 -0
  53. package/dist/src/domain/schemas/proposition.js +110 -0
  54. package/dist/src/domain/schemas/proposition.js.map +1 -0
  55. package/dist/src/domain/schemas/search.d.ts +31 -0
  56. package/dist/src/domain/schemas/search.d.ts.map +1 -0
  57. package/dist/src/domain/schemas/search.js +16 -0
  58. package/dist/src/domain/schemas/search.js.map +1 -0
  59. package/dist/src/domain/schemas/session.d.ts +1341 -0
  60. package/dist/src/domain/schemas/session.d.ts.map +1 -0
  61. package/dist/src/domain/schemas/session.js +140 -0
  62. package/dist/src/domain/schemas/session.js.map +1 -0
  63. package/dist/src/domain/schemas/slot.d.ts +844 -0
  64. package/dist/src/domain/schemas/slot.d.ts.map +1 -0
  65. package/dist/src/domain/schemas/slot.js +130 -0
  66. package/dist/src/domain/schemas/slot.js.map +1 -0
  67. package/dist/src/index.d.ts +26 -0
  68. package/dist/src/index.d.ts.map +1 -0
  69. package/dist/src/index.js +26 -0
  70. package/dist/src/index.js.map +1 -0
  71. package/dist/src/voila/browser-login-adapter.d.ts +108 -0
  72. package/dist/src/voila/browser-login-adapter.d.ts.map +1 -0
  73. package/dist/src/voila/browser-login-adapter.js +128 -0
  74. package/dist/src/voila/browser-login-adapter.js.map +1 -0
  75. package/dist/src/voila/browser-login.d.ts +32 -0
  76. package/dist/src/voila/browser-login.d.ts.map +1 -0
  77. package/dist/src/voila/browser-login.js +86 -0
  78. package/dist/src/voila/browser-login.js.map +1 -0
  79. package/dist/src/voila/cart-mutation.d.ts +23 -0
  80. package/dist/src/voila/cart-mutation.d.ts.map +1 -0
  81. package/dist/src/voila/cart-mutation.js +52 -0
  82. package/dist/src/voila/cart-mutation.js.map +1 -0
  83. package/dist/src/voila/cart-view.d.ts +14 -0
  84. package/dist/src/voila/cart-view.d.ts.map +1 -0
  85. package/dist/src/voila/cart-view.js +45 -0
  86. package/dist/src/voila/cart-view.js.map +1 -0
  87. package/dist/src/voila/catalog-search.d.ts +27 -0
  88. package/dist/src/voila/catalog-search.d.ts.map +1 -0
  89. package/dist/src/voila/catalog-search.js +40 -0
  90. package/dist/src/voila/catalog-search.js.map +1 -0
  91. package/dist/src/voila/categories.d.ts +4 -0
  92. package/dist/src/voila/categories.d.ts.map +1 -0
  93. package/dist/src/voila/categories.js +22 -0
  94. package/dist/src/voila/categories.js.map +1 -0
  95. package/dist/src/voila/category-products.d.ts +22 -0
  96. package/dist/src/voila/category-products.d.ts.map +1 -0
  97. package/dist/src/voila/category-products.js +32 -0
  98. package/dist/src/voila/category-products.js.map +1 -0
  99. package/dist/src/voila/checkout-summary.d.ts +15 -0
  100. package/dist/src/voila/checkout-summary.d.ts.map +1 -0
  101. package/dist/src/voila/checkout-summary.js +93 -0
  102. package/dist/src/voila/checkout-summary.js.map +1 -0
  103. package/dist/src/voila/checkout-urls.d.ts +11 -0
  104. package/dist/src/voila/checkout-urls.d.ts.map +1 -0
  105. package/dist/src/voila/checkout-urls.js +23 -0
  106. package/dist/src/voila/checkout-urls.js.map +1 -0
  107. package/dist/src/voila/delivery-destinations.d.ts +22 -0
  108. package/dist/src/voila/delivery-destinations.d.ts.map +1 -0
  109. package/dist/src/voila/delivery-destinations.js +70 -0
  110. package/dist/src/voila/delivery-destinations.js.map +1 -0
  111. package/dist/src/voila/guest-bootstrap.d.ts +40 -0
  112. package/dist/src/voila/guest-bootstrap.d.ts.map +1 -0
  113. package/dist/src/voila/guest-bootstrap.js +108 -0
  114. package/dist/src/voila/guest-bootstrap.js.map +1 -0
  115. package/dist/src/voila/headers.d.ts +5 -0
  116. package/dist/src/voila/headers.d.ts.map +1 -0
  117. package/dist/src/voila/headers.js +20 -0
  118. package/dist/src/voila/headers.js.map +1 -0
  119. package/dist/src/voila/http-client.d.ts +60 -0
  120. package/dist/src/voila/http-client.d.ts.map +1 -0
  121. package/dist/src/voila/http-client.js +124 -0
  122. package/dist/src/voila/http-client.js.map +1 -0
  123. package/dist/src/voila/initial-state.d.ts +19 -0
  124. package/dist/src/voila/initial-state.d.ts.map +1 -0
  125. package/dist/src/voila/initial-state.js +117 -0
  126. package/dist/src/voila/initial-state.js.map +1 -0
  127. package/dist/src/voila/session-health.d.ts +10 -0
  128. package/dist/src/voila/session-health.d.ts.map +1 -0
  129. package/dist/src/voila/session-health.js +176 -0
  130. package/dist/src/voila/session-health.js.map +1 -0
  131. package/dist/src/voila/session-snapshot.d.ts +41 -0
  132. package/dist/src/voila/session-snapshot.d.ts.map +1 -0
  133. package/dist/src/voila/session-snapshot.js +101 -0
  134. package/dist/src/voila/session-snapshot.js.map +1 -0
  135. package/dist/src/voila/session-storage.d.ts +22 -0
  136. package/dist/src/voila/session-storage.d.ts.map +1 -0
  137. package/dist/src/voila/session-storage.js +54 -0
  138. package/dist/src/voila/session-storage.js.map +1 -0
  139. package/dist/src/voila/shopping-context.d.ts +33 -0
  140. package/dist/src/voila/shopping-context.d.ts.map +1 -0
  141. package/dist/src/voila/shopping-context.js +159 -0
  142. package/dist/src/voila/shopping-context.js.map +1 -0
  143. package/dist/src/voila/slot-urls.d.ts +22 -0
  144. package/dist/src/voila/slot-urls.d.ts.map +1 -0
  145. package/dist/src/voila/slot-urls.js +51 -0
  146. package/dist/src/voila/slot-urls.js.map +1 -0
  147. package/dist/src/voila/slots.d.ts +41 -0
  148. package/dist/src/voila/slots.d.ts.map +1 -0
  149. package/dist/src/voila/slots.js +137 -0
  150. package/dist/src/voila/slots.js.map +1 -0
  151. package/dist/src/voila/urls.d.ts +114 -0
  152. package/dist/src/voila/urls.d.ts.map +1 -0
  153. package/dist/src/voila/urls.js +197 -0
  154. package/dist/src/voila/urls.js.map +1 -0
  155. package/package.json +66 -0
@@ -0,0 +1,1341 @@
1
+ import { Schema } from "effect";
2
+ import type { CartUpdateResult } from "./cart.js";
3
+ import type { RawCategoryTree } from "./category.js";
4
+ export declare const SessionMetadataSchema: Schema.Struct<{
5
+ assetVersion: typeof Schema.String;
6
+ clientRouteId: typeof Schema.String;
7
+ pageViewId: typeof Schema.String;
8
+ regionId: typeof Schema.String;
9
+ }>;
10
+ export type SessionMetadata = Schema.Schema.Type<typeof SessionMetadataSchema>;
11
+ export declare const SessionMetadataDiagnosticSchema: Schema.Struct<{
12
+ assetVersion: typeof Schema.String;
13
+ clientRouteId: Schema.Literal<["[redacted]"]>;
14
+ pageViewId: Schema.Literal<["[redacted]"]>;
15
+ regionId: typeof Schema.String;
16
+ }>;
17
+ export type SessionMetadataDiagnostic = Schema.Schema.Type<typeof SessionMetadataDiagnosticSchema>;
18
+ export declare const CsrfStateSchema: Schema.Struct<{
19
+ token: typeof Schema.String;
20
+ }>;
21
+ export type CsrfState = Schema.Schema.Type<typeof CsrfStateSchema>;
22
+ export declare const SerializedCookieSchema: Schema.Schema<{
23
+ readonly value?: string;
24
+ readonly key?: string;
25
+ } & {
26
+ readonly [x: string]: unknown;
27
+ }, {
28
+ readonly value?: string;
29
+ readonly key?: string;
30
+ } & {
31
+ readonly [x: string]: unknown;
32
+ }, never>;
33
+ export type SerializedCookie = Schema.Schema.Type<typeof SerializedCookieSchema>;
34
+ export declare const SerializedCookieJarSnapshotSchema: Schema.Schema<{
35
+ readonly cookies: readonly ({
36
+ readonly value?: string;
37
+ readonly key?: string;
38
+ } & {
39
+ readonly [x: string]: unknown;
40
+ })[];
41
+ readonly rejectPublicSuffixes: boolean;
42
+ readonly storeType: string | null;
43
+ readonly version: string;
44
+ } & {
45
+ readonly [x: string]: unknown;
46
+ }, {
47
+ readonly cookies: readonly ({
48
+ readonly value?: string;
49
+ readonly key?: string;
50
+ } & {
51
+ readonly [x: string]: unknown;
52
+ })[];
53
+ readonly rejectPublicSuffixes: boolean;
54
+ readonly storeType: string | null;
55
+ readonly version: string;
56
+ } & {
57
+ readonly [x: string]: unknown;
58
+ }, never>;
59
+ export type SerializedCookieJarSnapshot = Schema.Schema.Type<typeof SerializedCookieJarSnapshotSchema>;
60
+ export declare const SessionSnapshotSchema: Schema.Struct<{
61
+ cookieJar: Schema.Schema<{
62
+ readonly cookies: readonly ({
63
+ readonly value?: string;
64
+ readonly key?: string;
65
+ } & {
66
+ readonly [x: string]: unknown;
67
+ })[];
68
+ readonly rejectPublicSuffixes: boolean;
69
+ readonly storeType: string | null;
70
+ readonly version: string;
71
+ } & {
72
+ readonly [x: string]: unknown;
73
+ }, {
74
+ readonly cookies: readonly ({
75
+ readonly value?: string;
76
+ readonly key?: string;
77
+ } & {
78
+ readonly [x: string]: unknown;
79
+ })[];
80
+ readonly rejectPublicSuffixes: boolean;
81
+ readonly storeType: string | null;
82
+ readonly version: string;
83
+ } & {
84
+ readonly [x: string]: unknown;
85
+ }, never>;
86
+ csrf: Schema.Struct<{
87
+ token: typeof Schema.String;
88
+ }>;
89
+ metadata: Schema.Struct<{
90
+ assetVersion: typeof Schema.String;
91
+ clientRouteId: typeof Schema.String;
92
+ pageViewId: typeof Schema.String;
93
+ regionId: typeof Schema.String;
94
+ }>;
95
+ }>;
96
+ export type SessionSnapshot = Schema.Schema.Type<typeof SessionSnapshotSchema>;
97
+ export declare const AuthSessionStateSchema: Schema.Literal<["authenticated", "unknown-expiry", "reauth-required"]>;
98
+ export type AuthSessionState = Schema.Schema.Type<typeof AuthSessionStateSchema>;
99
+ export declare const AuthAccountSummarySchema: Schema.Struct<{
100
+ displayName: Schema.optionalWith<typeof Schema.String, {
101
+ exact: true;
102
+ }>;
103
+ emailHint: Schema.optionalWith<typeof Schema.String, {
104
+ exact: true;
105
+ }>;
106
+ stableAccountIdHash: Schema.optionalWith<typeof Schema.String, {
107
+ exact: true;
108
+ }>;
109
+ }>;
110
+ export type AuthAccountSummary = Schema.Schema.Type<typeof AuthAccountSummarySchema>;
111
+ export declare const GuestSdkSessionSnapshotSchema: Schema.Struct<{
112
+ kind: Schema.Literal<["guest"]>;
113
+ session: Schema.Struct<{
114
+ cookieJar: Schema.Schema<{
115
+ readonly cookies: readonly ({
116
+ readonly value?: string;
117
+ readonly key?: string;
118
+ } & {
119
+ readonly [x: string]: unknown;
120
+ })[];
121
+ readonly rejectPublicSuffixes: boolean;
122
+ readonly storeType: string | null;
123
+ readonly version: string;
124
+ } & {
125
+ readonly [x: string]: unknown;
126
+ }, {
127
+ readonly cookies: readonly ({
128
+ readonly value?: string;
129
+ readonly key?: string;
130
+ } & {
131
+ readonly [x: string]: unknown;
132
+ })[];
133
+ readonly rejectPublicSuffixes: boolean;
134
+ readonly storeType: string | null;
135
+ readonly version: string;
136
+ } & {
137
+ readonly [x: string]: unknown;
138
+ }, never>;
139
+ csrf: Schema.Struct<{
140
+ token: typeof Schema.String;
141
+ }>;
142
+ metadata: Schema.Struct<{
143
+ assetVersion: typeof Schema.String;
144
+ clientRouteId: typeof Schema.String;
145
+ pageViewId: typeof Schema.String;
146
+ regionId: typeof Schema.String;
147
+ }>;
148
+ }>;
149
+ }>;
150
+ export type GuestSdkSessionSnapshot = Schema.Schema.Type<typeof GuestSdkSessionSnapshotSchema>;
151
+ export declare const AuthenticatedSdkSessionSnapshotSchema: Schema.Struct<{
152
+ account: Schema.optionalWith<Schema.Struct<{
153
+ displayName: Schema.optionalWith<typeof Schema.String, {
154
+ exact: true;
155
+ }>;
156
+ emailHint: Schema.optionalWith<typeof Schema.String, {
157
+ exact: true;
158
+ }>;
159
+ stableAccountIdHash: Schema.optionalWith<typeof Schema.String, {
160
+ exact: true;
161
+ }>;
162
+ }>, {
163
+ exact: true;
164
+ }>;
165
+ kind: Schema.Literal<["authenticated"]>;
166
+ session: Schema.Struct<{
167
+ cookieJar: Schema.Schema<{
168
+ readonly cookies: readonly ({
169
+ readonly value?: string;
170
+ readonly key?: string;
171
+ } & {
172
+ readonly [x: string]: unknown;
173
+ })[];
174
+ readonly rejectPublicSuffixes: boolean;
175
+ readonly storeType: string | null;
176
+ readonly version: string;
177
+ } & {
178
+ readonly [x: string]: unknown;
179
+ }, {
180
+ readonly cookies: readonly ({
181
+ readonly value?: string;
182
+ readonly key?: string;
183
+ } & {
184
+ readonly [x: string]: unknown;
185
+ })[];
186
+ readonly rejectPublicSuffixes: boolean;
187
+ readonly storeType: string | null;
188
+ readonly version: string;
189
+ } & {
190
+ readonly [x: string]: unknown;
191
+ }, never>;
192
+ csrf: Schema.Struct<{
193
+ token: typeof Schema.String;
194
+ }>;
195
+ metadata: Schema.Struct<{
196
+ assetVersion: typeof Schema.String;
197
+ clientRouteId: typeof Schema.String;
198
+ pageViewId: typeof Schema.String;
199
+ regionId: typeof Schema.String;
200
+ }>;
201
+ }>;
202
+ state: Schema.Literal<["authenticated", "unknown-expiry", "reauth-required"]>;
203
+ }>;
204
+ export type AuthenticatedSdkSessionSnapshot = Schema.Schema.Type<typeof AuthenticatedSdkSessionSnapshotSchema>;
205
+ export declare const SdkSessionSnapshotSchema: Schema.Union<[Schema.Struct<{
206
+ kind: Schema.Literal<["guest"]>;
207
+ session: Schema.Struct<{
208
+ cookieJar: Schema.Schema<{
209
+ readonly cookies: readonly ({
210
+ readonly value?: string;
211
+ readonly key?: string;
212
+ } & {
213
+ readonly [x: string]: unknown;
214
+ })[];
215
+ readonly rejectPublicSuffixes: boolean;
216
+ readonly storeType: string | null;
217
+ readonly version: string;
218
+ } & {
219
+ readonly [x: string]: unknown;
220
+ }, {
221
+ readonly cookies: readonly ({
222
+ readonly value?: string;
223
+ readonly key?: string;
224
+ } & {
225
+ readonly [x: string]: unknown;
226
+ })[];
227
+ readonly rejectPublicSuffixes: boolean;
228
+ readonly storeType: string | null;
229
+ readonly version: string;
230
+ } & {
231
+ readonly [x: string]: unknown;
232
+ }, never>;
233
+ csrf: Schema.Struct<{
234
+ token: typeof Schema.String;
235
+ }>;
236
+ metadata: Schema.Struct<{
237
+ assetVersion: typeof Schema.String;
238
+ clientRouteId: typeof Schema.String;
239
+ pageViewId: typeof Schema.String;
240
+ regionId: typeof Schema.String;
241
+ }>;
242
+ }>;
243
+ }>, Schema.Struct<{
244
+ account: Schema.optionalWith<Schema.Struct<{
245
+ displayName: Schema.optionalWith<typeof Schema.String, {
246
+ exact: true;
247
+ }>;
248
+ emailHint: Schema.optionalWith<typeof Schema.String, {
249
+ exact: true;
250
+ }>;
251
+ stableAccountIdHash: Schema.optionalWith<typeof Schema.String, {
252
+ exact: true;
253
+ }>;
254
+ }>, {
255
+ exact: true;
256
+ }>;
257
+ kind: Schema.Literal<["authenticated"]>;
258
+ session: Schema.Struct<{
259
+ cookieJar: Schema.Schema<{
260
+ readonly cookies: readonly ({
261
+ readonly value?: string;
262
+ readonly key?: string;
263
+ } & {
264
+ readonly [x: string]: unknown;
265
+ })[];
266
+ readonly rejectPublicSuffixes: boolean;
267
+ readonly storeType: string | null;
268
+ readonly version: string;
269
+ } & {
270
+ readonly [x: string]: unknown;
271
+ }, {
272
+ readonly cookies: readonly ({
273
+ readonly value?: string;
274
+ readonly key?: string;
275
+ } & {
276
+ readonly [x: string]: unknown;
277
+ })[];
278
+ readonly rejectPublicSuffixes: boolean;
279
+ readonly storeType: string | null;
280
+ readonly version: string;
281
+ } & {
282
+ readonly [x: string]: unknown;
283
+ }, never>;
284
+ csrf: Schema.Struct<{
285
+ token: typeof Schema.String;
286
+ }>;
287
+ metadata: Schema.Struct<{
288
+ assetVersion: typeof Schema.String;
289
+ clientRouteId: typeof Schema.String;
290
+ pageViewId: typeof Schema.String;
291
+ regionId: typeof Schema.String;
292
+ }>;
293
+ }>;
294
+ state: Schema.Literal<["authenticated", "unknown-expiry", "reauth-required"]>;
295
+ }>]>;
296
+ export type SdkSessionSnapshot = Schema.Schema.Type<typeof SdkSessionSnapshotSchema>;
297
+ export declare const SessionSnapshotDiagnosticSchema: Schema.Struct<{
298
+ cookieJar: Schema.Struct<{
299
+ cookieCount: Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>;
300
+ storeType: Schema.NullOr<typeof Schema.String>;
301
+ version: typeof Schema.String;
302
+ }>;
303
+ csrf: Schema.Literal<["[redacted]"]>;
304
+ metadata: Schema.Struct<{
305
+ assetVersion: typeof Schema.String;
306
+ clientRouteId: Schema.Literal<["[redacted]"]>;
307
+ pageViewId: Schema.Literal<["[redacted]"]>;
308
+ regionId: typeof Schema.String;
309
+ }>;
310
+ }>;
311
+ export type SessionSnapshotDiagnostic = Schema.Schema.Type<typeof SessionSnapshotDiagnosticSchema>;
312
+ export declare const GuestSdkSessionSnapshotDiagnosticSchema: Schema.extend<Schema.Struct<{
313
+ cookieJar: Schema.Struct<{
314
+ cookieCount: Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>;
315
+ storeType: Schema.NullOr<typeof Schema.String>;
316
+ version: typeof Schema.String;
317
+ }>;
318
+ csrf: Schema.Literal<["[redacted]"]>;
319
+ metadata: Schema.Struct<{
320
+ assetVersion: typeof Schema.String;
321
+ clientRouteId: Schema.Literal<["[redacted]"]>;
322
+ pageViewId: Schema.Literal<["[redacted]"]>;
323
+ regionId: typeof Schema.String;
324
+ }>;
325
+ }>, Schema.Struct<{
326
+ account: Schema.optionalWith<typeof Schema.Never, {
327
+ exact: true;
328
+ }>;
329
+ kind: Schema.Literal<["guest"]>;
330
+ state: Schema.Literal<["guest"]>;
331
+ }>>;
332
+ export type GuestSdkSessionSnapshotDiagnostic = Schema.Schema.Type<typeof GuestSdkSessionSnapshotDiagnosticSchema>;
333
+ export declare const AuthenticatedSdkSessionSnapshotDiagnosticSchema: Schema.extend<Schema.Struct<{
334
+ cookieJar: Schema.Struct<{
335
+ cookieCount: Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>;
336
+ storeType: Schema.NullOr<typeof Schema.String>;
337
+ version: typeof Schema.String;
338
+ }>;
339
+ csrf: Schema.Literal<["[redacted]"]>;
340
+ metadata: Schema.Struct<{
341
+ assetVersion: typeof Schema.String;
342
+ clientRouteId: Schema.Literal<["[redacted]"]>;
343
+ pageViewId: Schema.Literal<["[redacted]"]>;
344
+ regionId: typeof Schema.String;
345
+ }>;
346
+ }>, Schema.Struct<{
347
+ account: Schema.optionalWith<Schema.Struct<{
348
+ displayName: Schema.optionalWith<Schema.Literal<["[redacted]"]>, {
349
+ exact: true;
350
+ }>;
351
+ emailHint: Schema.optionalWith<Schema.Literal<["[redacted]"]>, {
352
+ exact: true;
353
+ }>;
354
+ stableAccountIdHash: Schema.optionalWith<Schema.Literal<["[redacted]"]>, {
355
+ exact: true;
356
+ }>;
357
+ }>, {
358
+ exact: true;
359
+ }>;
360
+ kind: Schema.Literal<["authenticated"]>;
361
+ state: Schema.Literal<["authenticated", "unknown-expiry", "reauth-required"]>;
362
+ }>>;
363
+ export type AuthenticatedSdkSessionSnapshotDiagnostic = Schema.Schema.Type<typeof AuthenticatedSdkSessionSnapshotDiagnosticSchema>;
364
+ export declare const SdkSessionSnapshotDiagnosticSchema: Schema.Union<[Schema.extend<Schema.Struct<{
365
+ cookieJar: Schema.Struct<{
366
+ cookieCount: Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>;
367
+ storeType: Schema.NullOr<typeof Schema.String>;
368
+ version: typeof Schema.String;
369
+ }>;
370
+ csrf: Schema.Literal<["[redacted]"]>;
371
+ metadata: Schema.Struct<{
372
+ assetVersion: typeof Schema.String;
373
+ clientRouteId: Schema.Literal<["[redacted]"]>;
374
+ pageViewId: Schema.Literal<["[redacted]"]>;
375
+ regionId: typeof Schema.String;
376
+ }>;
377
+ }>, Schema.Struct<{
378
+ account: Schema.optionalWith<typeof Schema.Never, {
379
+ exact: true;
380
+ }>;
381
+ kind: Schema.Literal<["guest"]>;
382
+ state: Schema.Literal<["guest"]>;
383
+ }>>, Schema.extend<Schema.Struct<{
384
+ cookieJar: Schema.Struct<{
385
+ cookieCount: Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>;
386
+ storeType: Schema.NullOr<typeof Schema.String>;
387
+ version: typeof Schema.String;
388
+ }>;
389
+ csrf: Schema.Literal<["[redacted]"]>;
390
+ metadata: Schema.Struct<{
391
+ assetVersion: typeof Schema.String;
392
+ clientRouteId: Schema.Literal<["[redacted]"]>;
393
+ pageViewId: Schema.Literal<["[redacted]"]>;
394
+ regionId: typeof Schema.String;
395
+ }>;
396
+ }>, Schema.Struct<{
397
+ account: Schema.optionalWith<Schema.Struct<{
398
+ displayName: Schema.optionalWith<Schema.Literal<["[redacted]"]>, {
399
+ exact: true;
400
+ }>;
401
+ emailHint: Schema.optionalWith<Schema.Literal<["[redacted]"]>, {
402
+ exact: true;
403
+ }>;
404
+ stableAccountIdHash: Schema.optionalWith<Schema.Literal<["[redacted]"]>, {
405
+ exact: true;
406
+ }>;
407
+ }>, {
408
+ exact: true;
409
+ }>;
410
+ kind: Schema.Literal<["authenticated"]>;
411
+ state: Schema.Literal<["authenticated", "unknown-expiry", "reauth-required"]>;
412
+ }>>]>;
413
+ export type SdkSessionSnapshotDiagnostic = Schema.Schema.Type<typeof SdkSessionSnapshotDiagnosticSchema>;
414
+ export declare const ActiveCustomerSessionResponseSchema: Schema.Schema<{
415
+ readonly cartId?: string;
416
+ readonly regionId?: string;
417
+ readonly authenticated?: boolean;
418
+ readonly customer?: {
419
+ readonly authenticated?: boolean;
420
+ readonly anonymous?: boolean;
421
+ readonly id?: string;
422
+ } & {
423
+ readonly [x: string]: unknown;
424
+ };
425
+ readonly isAuthenticated?: boolean;
426
+ readonly status?: string;
427
+ } & {
428
+ readonly [x: string]: unknown;
429
+ }, {
430
+ readonly cartId?: string;
431
+ readonly regionId?: string;
432
+ readonly authenticated?: boolean;
433
+ readonly customer?: {
434
+ readonly authenticated?: boolean;
435
+ readonly anonymous?: boolean;
436
+ readonly id?: string;
437
+ } & {
438
+ readonly [x: string]: unknown;
439
+ };
440
+ readonly isAuthenticated?: boolean;
441
+ readonly status?: string;
442
+ } & {
443
+ readonly [x: string]: unknown;
444
+ }, never>;
445
+ export type ActiveCustomerSessionResponse = Schema.Schema.Type<typeof ActiveCustomerSessionResponseSchema>;
446
+ export declare const ActiveAuthenticatedSdkSessionSnapshotSchema: Schema.Struct<{
447
+ account: Schema.optionalWith<Schema.Struct<{
448
+ displayName: Schema.optionalWith<typeof Schema.String, {
449
+ exact: true;
450
+ }>;
451
+ emailHint: Schema.optionalWith<typeof Schema.String, {
452
+ exact: true;
453
+ }>;
454
+ stableAccountIdHash: Schema.optionalWith<typeof Schema.String, {
455
+ exact: true;
456
+ }>;
457
+ }>, {
458
+ exact: true;
459
+ }>;
460
+ kind: Schema.Literal<["authenticated"]>;
461
+ session: Schema.Struct<{
462
+ cookieJar: Schema.Schema<{
463
+ readonly cookies: readonly ({
464
+ readonly value?: string;
465
+ readonly key?: string;
466
+ } & {
467
+ readonly [x: string]: unknown;
468
+ })[];
469
+ readonly rejectPublicSuffixes: boolean;
470
+ readonly storeType: string | null;
471
+ readonly version: string;
472
+ } & {
473
+ readonly [x: string]: unknown;
474
+ }, {
475
+ readonly cookies: readonly ({
476
+ readonly value?: string;
477
+ readonly key?: string;
478
+ } & {
479
+ readonly [x: string]: unknown;
480
+ })[];
481
+ readonly rejectPublicSuffixes: boolean;
482
+ readonly storeType: string | null;
483
+ readonly version: string;
484
+ } & {
485
+ readonly [x: string]: unknown;
486
+ }, never>;
487
+ csrf: Schema.Struct<{
488
+ token: typeof Schema.String;
489
+ }>;
490
+ metadata: Schema.Struct<{
491
+ assetVersion: typeof Schema.String;
492
+ clientRouteId: typeof Schema.String;
493
+ pageViewId: typeof Schema.String;
494
+ regionId: typeof Schema.String;
495
+ }>;
496
+ }>;
497
+ state: Schema.Literal<["authenticated"]>;
498
+ }>;
499
+ export type ActiveAuthenticatedSdkSessionSnapshot = Schema.Schema.Type<typeof ActiveAuthenticatedSdkSessionSnapshotSchema>;
500
+ export declare const ReauthenticationRequiredSdkSessionSnapshotSchema: Schema.Struct<{
501
+ account: Schema.optionalWith<Schema.Struct<{
502
+ displayName: Schema.optionalWith<typeof Schema.String, {
503
+ exact: true;
504
+ }>;
505
+ emailHint: Schema.optionalWith<typeof Schema.String, {
506
+ exact: true;
507
+ }>;
508
+ stableAccountIdHash: Schema.optionalWith<typeof Schema.String, {
509
+ exact: true;
510
+ }>;
511
+ }>, {
512
+ exact: true;
513
+ }>;
514
+ kind: Schema.Literal<["authenticated"]>;
515
+ session: Schema.Struct<{
516
+ cookieJar: Schema.Schema<{
517
+ readonly cookies: readonly ({
518
+ readonly value?: string;
519
+ readonly key?: string;
520
+ } & {
521
+ readonly [x: string]: unknown;
522
+ })[];
523
+ readonly rejectPublicSuffixes: boolean;
524
+ readonly storeType: string | null;
525
+ readonly version: string;
526
+ } & {
527
+ readonly [x: string]: unknown;
528
+ }, {
529
+ readonly cookies: readonly ({
530
+ readonly value?: string;
531
+ readonly key?: string;
532
+ } & {
533
+ readonly [x: string]: unknown;
534
+ })[];
535
+ readonly rejectPublicSuffixes: boolean;
536
+ readonly storeType: string | null;
537
+ readonly version: string;
538
+ } & {
539
+ readonly [x: string]: unknown;
540
+ }, never>;
541
+ csrf: Schema.Struct<{
542
+ token: typeof Schema.String;
543
+ }>;
544
+ metadata: Schema.Struct<{
545
+ assetVersion: typeof Schema.String;
546
+ clientRouteId: typeof Schema.String;
547
+ pageViewId: typeof Schema.String;
548
+ regionId: typeof Schema.String;
549
+ }>;
550
+ }>;
551
+ state: Schema.Literal<["reauth-required"]>;
552
+ }>;
553
+ export type ReauthenticationRequiredSdkSessionSnapshot = Schema.Schema.Type<typeof ReauthenticationRequiredSdkSessionSnapshotSchema>;
554
+ export declare const ActiveSessionHealthSchema: Schema.Union<[Schema.Struct<{
555
+ session: Schema.Struct<{
556
+ kind: Schema.Literal<["guest"]>;
557
+ session: Schema.Struct<{
558
+ cookieJar: Schema.Schema<{
559
+ readonly cookies: readonly ({
560
+ readonly value?: string;
561
+ readonly key?: string;
562
+ } & {
563
+ readonly [x: string]: unknown;
564
+ })[];
565
+ readonly rejectPublicSuffixes: boolean;
566
+ readonly storeType: string | null;
567
+ readonly version: string;
568
+ } & {
569
+ readonly [x: string]: unknown;
570
+ }, {
571
+ readonly cookies: readonly ({
572
+ readonly value?: string;
573
+ readonly key?: string;
574
+ } & {
575
+ readonly [x: string]: unknown;
576
+ })[];
577
+ readonly rejectPublicSuffixes: boolean;
578
+ readonly storeType: string | null;
579
+ readonly version: string;
580
+ } & {
581
+ readonly [x: string]: unknown;
582
+ }, never>;
583
+ csrf: Schema.Struct<{
584
+ token: typeof Schema.String;
585
+ }>;
586
+ metadata: Schema.Struct<{
587
+ assetVersion: typeof Schema.String;
588
+ clientRouteId: typeof Schema.String;
589
+ pageViewId: typeof Schema.String;
590
+ regionId: typeof Schema.String;
591
+ }>;
592
+ }>;
593
+ }>;
594
+ status: Schema.Literal<["active"]>;
595
+ }>, Schema.Struct<{
596
+ session: Schema.Struct<{
597
+ account: Schema.optionalWith<Schema.Struct<{
598
+ displayName: Schema.optionalWith<typeof Schema.String, {
599
+ exact: true;
600
+ }>;
601
+ emailHint: Schema.optionalWith<typeof Schema.String, {
602
+ exact: true;
603
+ }>;
604
+ stableAccountIdHash: Schema.optionalWith<typeof Schema.String, {
605
+ exact: true;
606
+ }>;
607
+ }>, {
608
+ exact: true;
609
+ }>;
610
+ kind: Schema.Literal<["authenticated"]>;
611
+ session: Schema.Struct<{
612
+ cookieJar: Schema.Schema<{
613
+ readonly cookies: readonly ({
614
+ readonly value?: string;
615
+ readonly key?: string;
616
+ } & {
617
+ readonly [x: string]: unknown;
618
+ })[];
619
+ readonly rejectPublicSuffixes: boolean;
620
+ readonly storeType: string | null;
621
+ readonly version: string;
622
+ } & {
623
+ readonly [x: string]: unknown;
624
+ }, {
625
+ readonly cookies: readonly ({
626
+ readonly value?: string;
627
+ readonly key?: string;
628
+ } & {
629
+ readonly [x: string]: unknown;
630
+ })[];
631
+ readonly rejectPublicSuffixes: boolean;
632
+ readonly storeType: string | null;
633
+ readonly version: string;
634
+ } & {
635
+ readonly [x: string]: unknown;
636
+ }, never>;
637
+ csrf: Schema.Struct<{
638
+ token: typeof Schema.String;
639
+ }>;
640
+ metadata: Schema.Struct<{
641
+ assetVersion: typeof Schema.String;
642
+ clientRouteId: typeof Schema.String;
643
+ pageViewId: typeof Schema.String;
644
+ regionId: typeof Schema.String;
645
+ }>;
646
+ }>;
647
+ state: Schema.Literal<["authenticated"]>;
648
+ }>;
649
+ status: Schema.Literal<["active"]>;
650
+ }>]>;
651
+ export type ActiveSessionHealth = Schema.Schema.Type<typeof ActiveSessionHealthSchema>;
652
+ export declare const RetryableSessionHealthSchema: Schema.Struct<{
653
+ reason: Schema.Literal<["network", "server", "persistence"]>;
654
+ session: Schema.Union<[Schema.Struct<{
655
+ kind: Schema.Literal<["guest"]>;
656
+ session: Schema.Struct<{
657
+ cookieJar: Schema.Schema<{
658
+ readonly cookies: readonly ({
659
+ readonly value?: string;
660
+ readonly key?: string;
661
+ } & {
662
+ readonly [x: string]: unknown;
663
+ })[];
664
+ readonly rejectPublicSuffixes: boolean;
665
+ readonly storeType: string | null;
666
+ readonly version: string;
667
+ } & {
668
+ readonly [x: string]: unknown;
669
+ }, {
670
+ readonly cookies: readonly ({
671
+ readonly value?: string;
672
+ readonly key?: string;
673
+ } & {
674
+ readonly [x: string]: unknown;
675
+ })[];
676
+ readonly rejectPublicSuffixes: boolean;
677
+ readonly storeType: string | null;
678
+ readonly version: string;
679
+ } & {
680
+ readonly [x: string]: unknown;
681
+ }, never>;
682
+ csrf: Schema.Struct<{
683
+ token: typeof Schema.String;
684
+ }>;
685
+ metadata: Schema.Struct<{
686
+ assetVersion: typeof Schema.String;
687
+ clientRouteId: typeof Schema.String;
688
+ pageViewId: typeof Schema.String;
689
+ regionId: typeof Schema.String;
690
+ }>;
691
+ }>;
692
+ }>, Schema.Struct<{
693
+ account: Schema.optionalWith<Schema.Struct<{
694
+ displayName: Schema.optionalWith<typeof Schema.String, {
695
+ exact: true;
696
+ }>;
697
+ emailHint: Schema.optionalWith<typeof Schema.String, {
698
+ exact: true;
699
+ }>;
700
+ stableAccountIdHash: Schema.optionalWith<typeof Schema.String, {
701
+ exact: true;
702
+ }>;
703
+ }>, {
704
+ exact: true;
705
+ }>;
706
+ kind: Schema.Literal<["authenticated"]>;
707
+ session: Schema.Struct<{
708
+ cookieJar: Schema.Schema<{
709
+ readonly cookies: readonly ({
710
+ readonly value?: string;
711
+ readonly key?: string;
712
+ } & {
713
+ readonly [x: string]: unknown;
714
+ })[];
715
+ readonly rejectPublicSuffixes: boolean;
716
+ readonly storeType: string | null;
717
+ readonly version: string;
718
+ } & {
719
+ readonly [x: string]: unknown;
720
+ }, {
721
+ readonly cookies: readonly ({
722
+ readonly value?: string;
723
+ readonly key?: string;
724
+ } & {
725
+ readonly [x: string]: unknown;
726
+ })[];
727
+ readonly rejectPublicSuffixes: boolean;
728
+ readonly storeType: string | null;
729
+ readonly version: string;
730
+ } & {
731
+ readonly [x: string]: unknown;
732
+ }, never>;
733
+ csrf: Schema.Struct<{
734
+ token: typeof Schema.String;
735
+ }>;
736
+ metadata: Schema.Struct<{
737
+ assetVersion: typeof Schema.String;
738
+ clientRouteId: typeof Schema.String;
739
+ pageViewId: typeof Schema.String;
740
+ regionId: typeof Schema.String;
741
+ }>;
742
+ }>;
743
+ state: Schema.Literal<["authenticated", "unknown-expiry", "reauth-required"]>;
744
+ }>]>;
745
+ status: Schema.Literal<["retry"]>;
746
+ }>;
747
+ export type RetryableSessionHealth = Schema.Schema.Type<typeof RetryableSessionHealthSchema>;
748
+ export declare const ReauthenticationRequiredSessionHealthSchema: Schema.Struct<{
749
+ session: Schema.Struct<{
750
+ account: Schema.optionalWith<Schema.Struct<{
751
+ displayName: Schema.optionalWith<typeof Schema.String, {
752
+ exact: true;
753
+ }>;
754
+ emailHint: Schema.optionalWith<typeof Schema.String, {
755
+ exact: true;
756
+ }>;
757
+ stableAccountIdHash: Schema.optionalWith<typeof Schema.String, {
758
+ exact: true;
759
+ }>;
760
+ }>, {
761
+ exact: true;
762
+ }>;
763
+ kind: Schema.Literal<["authenticated"]>;
764
+ session: Schema.Struct<{
765
+ cookieJar: Schema.Schema<{
766
+ readonly cookies: readonly ({
767
+ readonly value?: string;
768
+ readonly key?: string;
769
+ } & {
770
+ readonly [x: string]: unknown;
771
+ })[];
772
+ readonly rejectPublicSuffixes: boolean;
773
+ readonly storeType: string | null;
774
+ readonly version: string;
775
+ } & {
776
+ readonly [x: string]: unknown;
777
+ }, {
778
+ readonly cookies: readonly ({
779
+ readonly value?: string;
780
+ readonly key?: string;
781
+ } & {
782
+ readonly [x: string]: unknown;
783
+ })[];
784
+ readonly rejectPublicSuffixes: boolean;
785
+ readonly storeType: string | null;
786
+ readonly version: string;
787
+ } & {
788
+ readonly [x: string]: unknown;
789
+ }, never>;
790
+ csrf: Schema.Struct<{
791
+ token: typeof Schema.String;
792
+ }>;
793
+ metadata: Schema.Struct<{
794
+ assetVersion: typeof Schema.String;
795
+ clientRouteId: typeof Schema.String;
796
+ pageViewId: typeof Schema.String;
797
+ regionId: typeof Schema.String;
798
+ }>;
799
+ }>;
800
+ state: Schema.Literal<["reauth-required"]>;
801
+ }>;
802
+ status: Schema.Literal<["reauth-required"]>;
803
+ }>;
804
+ export type ReauthenticationRequiredSessionHealth = Schema.Schema.Type<typeof ReauthenticationRequiredSessionHealthSchema>;
805
+ export declare const UnauthorizedSessionHealthSchema: Schema.Struct<{
806
+ session: Schema.Struct<{
807
+ kind: Schema.Literal<["guest"]>;
808
+ session: Schema.Struct<{
809
+ cookieJar: Schema.Schema<{
810
+ readonly cookies: readonly ({
811
+ readonly value?: string;
812
+ readonly key?: string;
813
+ } & {
814
+ readonly [x: string]: unknown;
815
+ })[];
816
+ readonly rejectPublicSuffixes: boolean;
817
+ readonly storeType: string | null;
818
+ readonly version: string;
819
+ } & {
820
+ readonly [x: string]: unknown;
821
+ }, {
822
+ readonly cookies: readonly ({
823
+ readonly value?: string;
824
+ readonly key?: string;
825
+ } & {
826
+ readonly [x: string]: unknown;
827
+ })[];
828
+ readonly rejectPublicSuffixes: boolean;
829
+ readonly storeType: string | null;
830
+ readonly version: string;
831
+ } & {
832
+ readonly [x: string]: unknown;
833
+ }, never>;
834
+ csrf: Schema.Struct<{
835
+ token: typeof Schema.String;
836
+ }>;
837
+ metadata: Schema.Struct<{
838
+ assetVersion: typeof Schema.String;
839
+ clientRouteId: typeof Schema.String;
840
+ pageViewId: typeof Schema.String;
841
+ regionId: typeof Schema.String;
842
+ }>;
843
+ }>;
844
+ }>;
845
+ status: Schema.Literal<["unauthorized"]>;
846
+ }>;
847
+ export type UnauthorizedSessionHealth = Schema.Schema.Type<typeof UnauthorizedSessionHealthSchema>;
848
+ export declare const SessionSchemaChangedHealthSchema: Schema.Struct<{
849
+ session: Schema.Union<[Schema.Struct<{
850
+ kind: Schema.Literal<["guest"]>;
851
+ session: Schema.Struct<{
852
+ cookieJar: Schema.Schema<{
853
+ readonly cookies: readonly ({
854
+ readonly value?: string;
855
+ readonly key?: string;
856
+ } & {
857
+ readonly [x: string]: unknown;
858
+ })[];
859
+ readonly rejectPublicSuffixes: boolean;
860
+ readonly storeType: string | null;
861
+ readonly version: string;
862
+ } & {
863
+ readonly [x: string]: unknown;
864
+ }, {
865
+ readonly cookies: readonly ({
866
+ readonly value?: string;
867
+ readonly key?: string;
868
+ } & {
869
+ readonly [x: string]: unknown;
870
+ })[];
871
+ readonly rejectPublicSuffixes: boolean;
872
+ readonly storeType: string | null;
873
+ readonly version: string;
874
+ } & {
875
+ readonly [x: string]: unknown;
876
+ }, never>;
877
+ csrf: Schema.Struct<{
878
+ token: typeof Schema.String;
879
+ }>;
880
+ metadata: Schema.Struct<{
881
+ assetVersion: typeof Schema.String;
882
+ clientRouteId: typeof Schema.String;
883
+ pageViewId: typeof Schema.String;
884
+ regionId: typeof Schema.String;
885
+ }>;
886
+ }>;
887
+ }>, Schema.Struct<{
888
+ account: Schema.optionalWith<Schema.Struct<{
889
+ displayName: Schema.optionalWith<typeof Schema.String, {
890
+ exact: true;
891
+ }>;
892
+ emailHint: Schema.optionalWith<typeof Schema.String, {
893
+ exact: true;
894
+ }>;
895
+ stableAccountIdHash: Schema.optionalWith<typeof Schema.String, {
896
+ exact: true;
897
+ }>;
898
+ }>, {
899
+ exact: true;
900
+ }>;
901
+ kind: Schema.Literal<["authenticated"]>;
902
+ session: Schema.Struct<{
903
+ cookieJar: Schema.Schema<{
904
+ readonly cookies: readonly ({
905
+ readonly value?: string;
906
+ readonly key?: string;
907
+ } & {
908
+ readonly [x: string]: unknown;
909
+ })[];
910
+ readonly rejectPublicSuffixes: boolean;
911
+ readonly storeType: string | null;
912
+ readonly version: string;
913
+ } & {
914
+ readonly [x: string]: unknown;
915
+ }, {
916
+ readonly cookies: readonly ({
917
+ readonly value?: string;
918
+ readonly key?: string;
919
+ } & {
920
+ readonly [x: string]: unknown;
921
+ })[];
922
+ readonly rejectPublicSuffixes: boolean;
923
+ readonly storeType: string | null;
924
+ readonly version: string;
925
+ } & {
926
+ readonly [x: string]: unknown;
927
+ }, never>;
928
+ csrf: Schema.Struct<{
929
+ token: typeof Schema.String;
930
+ }>;
931
+ metadata: Schema.Struct<{
932
+ assetVersion: typeof Schema.String;
933
+ clientRouteId: typeof Schema.String;
934
+ pageViewId: typeof Schema.String;
935
+ regionId: typeof Schema.String;
936
+ }>;
937
+ }>;
938
+ state: Schema.Literal<["authenticated", "unknown-expiry", "reauth-required"]>;
939
+ }>]>;
940
+ status: Schema.Literal<["schema-changed"]>;
941
+ }>;
942
+ export type SessionSchemaChangedHealth = Schema.Schema.Type<typeof SessionSchemaChangedHealthSchema>;
943
+ export declare const SessionHealthSchema: Schema.Union<[Schema.Union<[Schema.Struct<{
944
+ session: Schema.Struct<{
945
+ kind: Schema.Literal<["guest"]>;
946
+ session: Schema.Struct<{
947
+ cookieJar: Schema.Schema<{
948
+ readonly cookies: readonly ({
949
+ readonly value?: string;
950
+ readonly key?: string;
951
+ } & {
952
+ readonly [x: string]: unknown;
953
+ })[];
954
+ readonly rejectPublicSuffixes: boolean;
955
+ readonly storeType: string | null;
956
+ readonly version: string;
957
+ } & {
958
+ readonly [x: string]: unknown;
959
+ }, {
960
+ readonly cookies: readonly ({
961
+ readonly value?: string;
962
+ readonly key?: string;
963
+ } & {
964
+ readonly [x: string]: unknown;
965
+ })[];
966
+ readonly rejectPublicSuffixes: boolean;
967
+ readonly storeType: string | null;
968
+ readonly version: string;
969
+ } & {
970
+ readonly [x: string]: unknown;
971
+ }, never>;
972
+ csrf: Schema.Struct<{
973
+ token: typeof Schema.String;
974
+ }>;
975
+ metadata: Schema.Struct<{
976
+ assetVersion: typeof Schema.String;
977
+ clientRouteId: typeof Schema.String;
978
+ pageViewId: typeof Schema.String;
979
+ regionId: typeof Schema.String;
980
+ }>;
981
+ }>;
982
+ }>;
983
+ status: Schema.Literal<["active"]>;
984
+ }>, Schema.Struct<{
985
+ session: Schema.Struct<{
986
+ account: Schema.optionalWith<Schema.Struct<{
987
+ displayName: Schema.optionalWith<typeof Schema.String, {
988
+ exact: true;
989
+ }>;
990
+ emailHint: Schema.optionalWith<typeof Schema.String, {
991
+ exact: true;
992
+ }>;
993
+ stableAccountIdHash: Schema.optionalWith<typeof Schema.String, {
994
+ exact: true;
995
+ }>;
996
+ }>, {
997
+ exact: true;
998
+ }>;
999
+ kind: Schema.Literal<["authenticated"]>;
1000
+ session: Schema.Struct<{
1001
+ cookieJar: Schema.Schema<{
1002
+ readonly cookies: readonly ({
1003
+ readonly value?: string;
1004
+ readonly key?: string;
1005
+ } & {
1006
+ readonly [x: string]: unknown;
1007
+ })[];
1008
+ readonly rejectPublicSuffixes: boolean;
1009
+ readonly storeType: string | null;
1010
+ readonly version: string;
1011
+ } & {
1012
+ readonly [x: string]: unknown;
1013
+ }, {
1014
+ readonly cookies: readonly ({
1015
+ readonly value?: string;
1016
+ readonly key?: string;
1017
+ } & {
1018
+ readonly [x: string]: unknown;
1019
+ })[];
1020
+ readonly rejectPublicSuffixes: boolean;
1021
+ readonly storeType: string | null;
1022
+ readonly version: string;
1023
+ } & {
1024
+ readonly [x: string]: unknown;
1025
+ }, never>;
1026
+ csrf: Schema.Struct<{
1027
+ token: typeof Schema.String;
1028
+ }>;
1029
+ metadata: Schema.Struct<{
1030
+ assetVersion: typeof Schema.String;
1031
+ clientRouteId: typeof Schema.String;
1032
+ pageViewId: typeof Schema.String;
1033
+ regionId: typeof Schema.String;
1034
+ }>;
1035
+ }>;
1036
+ state: Schema.Literal<["authenticated"]>;
1037
+ }>;
1038
+ status: Schema.Literal<["active"]>;
1039
+ }>]>, Schema.Struct<{
1040
+ reason: Schema.Literal<["network", "server", "persistence"]>;
1041
+ session: Schema.Union<[Schema.Struct<{
1042
+ kind: Schema.Literal<["guest"]>;
1043
+ session: Schema.Struct<{
1044
+ cookieJar: Schema.Schema<{
1045
+ readonly cookies: readonly ({
1046
+ readonly value?: string;
1047
+ readonly key?: string;
1048
+ } & {
1049
+ readonly [x: string]: unknown;
1050
+ })[];
1051
+ readonly rejectPublicSuffixes: boolean;
1052
+ readonly storeType: string | null;
1053
+ readonly version: string;
1054
+ } & {
1055
+ readonly [x: string]: unknown;
1056
+ }, {
1057
+ readonly cookies: readonly ({
1058
+ readonly value?: string;
1059
+ readonly key?: string;
1060
+ } & {
1061
+ readonly [x: string]: unknown;
1062
+ })[];
1063
+ readonly rejectPublicSuffixes: boolean;
1064
+ readonly storeType: string | null;
1065
+ readonly version: string;
1066
+ } & {
1067
+ readonly [x: string]: unknown;
1068
+ }, never>;
1069
+ csrf: Schema.Struct<{
1070
+ token: typeof Schema.String;
1071
+ }>;
1072
+ metadata: Schema.Struct<{
1073
+ assetVersion: typeof Schema.String;
1074
+ clientRouteId: typeof Schema.String;
1075
+ pageViewId: typeof Schema.String;
1076
+ regionId: typeof Schema.String;
1077
+ }>;
1078
+ }>;
1079
+ }>, Schema.Struct<{
1080
+ account: Schema.optionalWith<Schema.Struct<{
1081
+ displayName: Schema.optionalWith<typeof Schema.String, {
1082
+ exact: true;
1083
+ }>;
1084
+ emailHint: Schema.optionalWith<typeof Schema.String, {
1085
+ exact: true;
1086
+ }>;
1087
+ stableAccountIdHash: Schema.optionalWith<typeof Schema.String, {
1088
+ exact: true;
1089
+ }>;
1090
+ }>, {
1091
+ exact: true;
1092
+ }>;
1093
+ kind: Schema.Literal<["authenticated"]>;
1094
+ session: Schema.Struct<{
1095
+ cookieJar: Schema.Schema<{
1096
+ readonly cookies: readonly ({
1097
+ readonly value?: string;
1098
+ readonly key?: string;
1099
+ } & {
1100
+ readonly [x: string]: unknown;
1101
+ })[];
1102
+ readonly rejectPublicSuffixes: boolean;
1103
+ readonly storeType: string | null;
1104
+ readonly version: string;
1105
+ } & {
1106
+ readonly [x: string]: unknown;
1107
+ }, {
1108
+ readonly cookies: readonly ({
1109
+ readonly value?: string;
1110
+ readonly key?: string;
1111
+ } & {
1112
+ readonly [x: string]: unknown;
1113
+ })[];
1114
+ readonly rejectPublicSuffixes: boolean;
1115
+ readonly storeType: string | null;
1116
+ readonly version: string;
1117
+ } & {
1118
+ readonly [x: string]: unknown;
1119
+ }, never>;
1120
+ csrf: Schema.Struct<{
1121
+ token: typeof Schema.String;
1122
+ }>;
1123
+ metadata: Schema.Struct<{
1124
+ assetVersion: typeof Schema.String;
1125
+ clientRouteId: typeof Schema.String;
1126
+ pageViewId: typeof Schema.String;
1127
+ regionId: typeof Schema.String;
1128
+ }>;
1129
+ }>;
1130
+ state: Schema.Literal<["authenticated", "unknown-expiry", "reauth-required"]>;
1131
+ }>]>;
1132
+ status: Schema.Literal<["retry"]>;
1133
+ }>, Schema.Struct<{
1134
+ session: Schema.Struct<{
1135
+ account: Schema.optionalWith<Schema.Struct<{
1136
+ displayName: Schema.optionalWith<typeof Schema.String, {
1137
+ exact: true;
1138
+ }>;
1139
+ emailHint: Schema.optionalWith<typeof Schema.String, {
1140
+ exact: true;
1141
+ }>;
1142
+ stableAccountIdHash: Schema.optionalWith<typeof Schema.String, {
1143
+ exact: true;
1144
+ }>;
1145
+ }>, {
1146
+ exact: true;
1147
+ }>;
1148
+ kind: Schema.Literal<["authenticated"]>;
1149
+ session: Schema.Struct<{
1150
+ cookieJar: Schema.Schema<{
1151
+ readonly cookies: readonly ({
1152
+ readonly value?: string;
1153
+ readonly key?: string;
1154
+ } & {
1155
+ readonly [x: string]: unknown;
1156
+ })[];
1157
+ readonly rejectPublicSuffixes: boolean;
1158
+ readonly storeType: string | null;
1159
+ readonly version: string;
1160
+ } & {
1161
+ readonly [x: string]: unknown;
1162
+ }, {
1163
+ readonly cookies: readonly ({
1164
+ readonly value?: string;
1165
+ readonly key?: string;
1166
+ } & {
1167
+ readonly [x: string]: unknown;
1168
+ })[];
1169
+ readonly rejectPublicSuffixes: boolean;
1170
+ readonly storeType: string | null;
1171
+ readonly version: string;
1172
+ } & {
1173
+ readonly [x: string]: unknown;
1174
+ }, never>;
1175
+ csrf: Schema.Struct<{
1176
+ token: typeof Schema.String;
1177
+ }>;
1178
+ metadata: Schema.Struct<{
1179
+ assetVersion: typeof Schema.String;
1180
+ clientRouteId: typeof Schema.String;
1181
+ pageViewId: typeof Schema.String;
1182
+ regionId: typeof Schema.String;
1183
+ }>;
1184
+ }>;
1185
+ state: Schema.Literal<["reauth-required"]>;
1186
+ }>;
1187
+ status: Schema.Literal<["reauth-required"]>;
1188
+ }>, Schema.Struct<{
1189
+ session: Schema.Struct<{
1190
+ kind: Schema.Literal<["guest"]>;
1191
+ session: Schema.Struct<{
1192
+ cookieJar: Schema.Schema<{
1193
+ readonly cookies: readonly ({
1194
+ readonly value?: string;
1195
+ readonly key?: string;
1196
+ } & {
1197
+ readonly [x: string]: unknown;
1198
+ })[];
1199
+ readonly rejectPublicSuffixes: boolean;
1200
+ readonly storeType: string | null;
1201
+ readonly version: string;
1202
+ } & {
1203
+ readonly [x: string]: unknown;
1204
+ }, {
1205
+ readonly cookies: readonly ({
1206
+ readonly value?: string;
1207
+ readonly key?: string;
1208
+ } & {
1209
+ readonly [x: string]: unknown;
1210
+ })[];
1211
+ readonly rejectPublicSuffixes: boolean;
1212
+ readonly storeType: string | null;
1213
+ readonly version: string;
1214
+ } & {
1215
+ readonly [x: string]: unknown;
1216
+ }, never>;
1217
+ csrf: Schema.Struct<{
1218
+ token: typeof Schema.String;
1219
+ }>;
1220
+ metadata: Schema.Struct<{
1221
+ assetVersion: typeof Schema.String;
1222
+ clientRouteId: typeof Schema.String;
1223
+ pageViewId: typeof Schema.String;
1224
+ regionId: typeof Schema.String;
1225
+ }>;
1226
+ }>;
1227
+ }>;
1228
+ status: Schema.Literal<["unauthorized"]>;
1229
+ }>, Schema.Struct<{
1230
+ session: Schema.Union<[Schema.Struct<{
1231
+ kind: Schema.Literal<["guest"]>;
1232
+ session: Schema.Struct<{
1233
+ cookieJar: Schema.Schema<{
1234
+ readonly cookies: readonly ({
1235
+ readonly value?: string;
1236
+ readonly key?: string;
1237
+ } & {
1238
+ readonly [x: string]: unknown;
1239
+ })[];
1240
+ readonly rejectPublicSuffixes: boolean;
1241
+ readonly storeType: string | null;
1242
+ readonly version: string;
1243
+ } & {
1244
+ readonly [x: string]: unknown;
1245
+ }, {
1246
+ readonly cookies: readonly ({
1247
+ readonly value?: string;
1248
+ readonly key?: string;
1249
+ } & {
1250
+ readonly [x: string]: unknown;
1251
+ })[];
1252
+ readonly rejectPublicSuffixes: boolean;
1253
+ readonly storeType: string | null;
1254
+ readonly version: string;
1255
+ } & {
1256
+ readonly [x: string]: unknown;
1257
+ }, never>;
1258
+ csrf: Schema.Struct<{
1259
+ token: typeof Schema.String;
1260
+ }>;
1261
+ metadata: Schema.Struct<{
1262
+ assetVersion: typeof Schema.String;
1263
+ clientRouteId: typeof Schema.String;
1264
+ pageViewId: typeof Schema.String;
1265
+ regionId: typeof Schema.String;
1266
+ }>;
1267
+ }>;
1268
+ }>, Schema.Struct<{
1269
+ account: Schema.optionalWith<Schema.Struct<{
1270
+ displayName: Schema.optionalWith<typeof Schema.String, {
1271
+ exact: true;
1272
+ }>;
1273
+ emailHint: Schema.optionalWith<typeof Schema.String, {
1274
+ exact: true;
1275
+ }>;
1276
+ stableAccountIdHash: Schema.optionalWith<typeof Schema.String, {
1277
+ exact: true;
1278
+ }>;
1279
+ }>, {
1280
+ exact: true;
1281
+ }>;
1282
+ kind: Schema.Literal<["authenticated"]>;
1283
+ session: Schema.Struct<{
1284
+ cookieJar: Schema.Schema<{
1285
+ readonly cookies: readonly ({
1286
+ readonly value?: string;
1287
+ readonly key?: string;
1288
+ } & {
1289
+ readonly [x: string]: unknown;
1290
+ })[];
1291
+ readonly rejectPublicSuffixes: boolean;
1292
+ readonly storeType: string | null;
1293
+ readonly version: string;
1294
+ } & {
1295
+ readonly [x: string]: unknown;
1296
+ }, {
1297
+ readonly cookies: readonly ({
1298
+ readonly value?: string;
1299
+ readonly key?: string;
1300
+ } & {
1301
+ readonly [x: string]: unknown;
1302
+ })[];
1303
+ readonly rejectPublicSuffixes: boolean;
1304
+ readonly storeType: string | null;
1305
+ readonly version: string;
1306
+ } & {
1307
+ readonly [x: string]: unknown;
1308
+ }, never>;
1309
+ csrf: Schema.Struct<{
1310
+ token: typeof Schema.String;
1311
+ }>;
1312
+ metadata: Schema.Struct<{
1313
+ assetVersion: typeof Schema.String;
1314
+ clientRouteId: typeof Schema.String;
1315
+ pageViewId: typeof Schema.String;
1316
+ regionId: typeof Schema.String;
1317
+ }>;
1318
+ }>;
1319
+ state: Schema.Literal<["authenticated", "unknown-expiry", "reauth-required"]>;
1320
+ }>]>;
1321
+ status: Schema.Literal<["schema-changed"]>;
1322
+ }>]>;
1323
+ export type SessionHealth = Schema.Schema.Type<typeof SessionHealthSchema>;
1324
+ interface InitialStateBasket extends CartUpdateResult {
1325
+ readonly basketId: string;
1326
+ readonly regionId: string;
1327
+ }
1328
+ interface InitialStateShape {
1329
+ readonly csrf: CsrfState;
1330
+ readonly data: {
1331
+ readonly basket: InitialStateBasket;
1332
+ readonly categories?: RawCategoryTree;
1333
+ };
1334
+ readonly session: {
1335
+ readonly metadata: SessionMetadata;
1336
+ };
1337
+ }
1338
+ export declare const InitialStateSchema: Schema.Schema<InitialStateShape>;
1339
+ export type InitialState = Schema.Schema.Type<typeof InitialStateSchema>;
1340
+ export {};
1341
+ //# sourceMappingURL=session.d.ts.map