@makeswift/runtime 0.28.0 → 0.28.1-canary.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.
Files changed (38) hide show
  1. package/dist/cjs/api-handler/handlers/manifest.js +1 -1
  2. package/dist/cjs/api-handler/handlers/webhook/diff-projection.js +62 -0
  3. package/dist/cjs/api-handler/handlers/webhook/diff-projection.js.map +1 -0
  4. package/dist/cjs/api-handler/handlers/webhook/site-published.js +2 -2
  5. package/dist/cjs/api-handler/handlers/webhook/site-published.js.map +1 -1
  6. package/dist/cjs/api-handler/handlers/webhook/types.js +6 -1
  7. package/dist/cjs/api-handler/handlers/webhook/types.js.map +1 -1
  8. package/dist/cjs/api-handler/index.js.map +1 -1
  9. package/dist/cjs/builder/index.js +6 -1
  10. package/dist/cjs/builder/index.js.map +1 -1
  11. package/dist/cjs/client/index.js +3 -3
  12. package/dist/cjs/unstable-framework-support/index.js.map +1 -1
  13. package/dist/esm/api-handler/handlers/manifest.js +1 -1
  14. package/dist/esm/api-handler/handlers/webhook/diff-projection.js +38 -0
  15. package/dist/esm/api-handler/handlers/webhook/diff-projection.js.map +1 -0
  16. package/dist/esm/api-handler/handlers/webhook/site-published.js +2 -2
  17. package/dist/esm/api-handler/handlers/webhook/site-published.js.map +1 -1
  18. package/dist/esm/api-handler/handlers/webhook/types.js +6 -1
  19. package/dist/esm/api-handler/handlers/webhook/types.js.map +1 -1
  20. package/dist/esm/api-handler/index.js.map +1 -1
  21. package/dist/esm/builder/index.js +4 -1
  22. package/dist/esm/builder/index.js.map +1 -1
  23. package/dist/esm/client/index.js +3 -3
  24. package/dist/esm/unstable-framework-support/index.js +3 -1
  25. package/dist/esm/unstable-framework-support/index.js.map +1 -1
  26. package/dist/types/api-handler/handlers/webhook/diff-projection.d.ts +201 -0
  27. package/dist/types/api-handler/handlers/webhook/diff-projection.d.ts.map +1 -0
  28. package/dist/types/api-handler/handlers/webhook/site-published.d.ts +1 -1
  29. package/dist/types/api-handler/handlers/webhook/site-published.d.ts.map +1 -1
  30. package/dist/types/api-handler/handlers/webhook/types.d.ts +672 -1
  31. package/dist/types/api-handler/handlers/webhook/types.d.ts.map +1 -1
  32. package/dist/types/api-handler/index.d.ts +2 -2
  33. package/dist/types/api-handler/index.d.ts.map +1 -1
  34. package/dist/types/builder/index.d.ts +2 -0
  35. package/dist/types/builder/index.d.ts.map +1 -1
  36. package/dist/types/unstable-framework-support/index.d.ts +1 -1
  37. package/dist/types/unstable-framework-support/index.d.ts.map +1 -1
  38. package/package.json +1 -1
@@ -18,6 +18,205 @@ export declare const sitePublishedWebhookPayloadSchema: z.ZodObject<{
18
18
  from: string | null;
19
19
  }>;
20
20
  at: z.ZodNumber;
21
+ unstable_diff: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
22
+ components: z.ZodArray<z.ZodObject<{
23
+ id: z.ZodString;
24
+ locale: z.ZodNullable<z.ZodString>;
25
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ id: string;
28
+ locale: string | null;
29
+ changeType: "deleted" | "created" | "updated";
30
+ }, {
31
+ id: string;
32
+ locale: string | null;
33
+ changeType: "deleted" | "created" | "updated";
34
+ }>, "many">;
35
+ pages: z.ZodArray<z.ZodObject<{
36
+ pageId: z.ZodString;
37
+ locale: z.ZodNullable<z.ZodString>;
38
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
39
+ pathname: z.ZodString;
40
+ previousPathname: z.ZodOptional<z.ZodString>;
41
+ }, "strip", z.ZodTypeAny, {
42
+ pathname: string;
43
+ locale: string | null;
44
+ pageId: string;
45
+ changeType: "deleted" | "created" | "updated";
46
+ previousPathname?: string | undefined;
47
+ }, {
48
+ pathname: string;
49
+ locale: string | null;
50
+ pageId: string;
51
+ changeType: "deleted" | "created" | "updated";
52
+ previousPathname?: string | undefined;
53
+ }>, "many">;
54
+ globalElements: z.ZodArray<z.ZodObject<{
55
+ id: z.ZodString;
56
+ locale: z.ZodNullable<z.ZodString>;
57
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ id: string;
60
+ locale: string | null;
61
+ changeType: "deleted" | "created" | "updated";
62
+ }, {
63
+ id: string;
64
+ locale: string | null;
65
+ changeType: "deleted" | "created" | "updated";
66
+ }>, "many">;
67
+ swatches: z.ZodArray<z.ZodObject<{
68
+ id: z.ZodString;
69
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ id: string;
72
+ changeType: "deleted" | "created" | "updated";
73
+ }, {
74
+ id: string;
75
+ changeType: "deleted" | "created" | "updated";
76
+ }>, "many">;
77
+ typographies: z.ZodArray<z.ZodObject<{
78
+ id: z.ZodString;
79
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ id: string;
82
+ changeType: "deleted" | "created" | "updated";
83
+ }, {
84
+ id: string;
85
+ changeType: "deleted" | "created" | "updated";
86
+ }>, "many">;
87
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
88
+ components: z.ZodArray<z.ZodObject<{
89
+ id: z.ZodString;
90
+ locale: z.ZodNullable<z.ZodString>;
91
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ id: string;
94
+ locale: string | null;
95
+ changeType: "deleted" | "created" | "updated";
96
+ }, {
97
+ id: string;
98
+ locale: string | null;
99
+ changeType: "deleted" | "created" | "updated";
100
+ }>, "many">;
101
+ pages: z.ZodArray<z.ZodObject<{
102
+ pageId: z.ZodString;
103
+ locale: z.ZodNullable<z.ZodString>;
104
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
105
+ pathname: z.ZodString;
106
+ previousPathname: z.ZodOptional<z.ZodString>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ pathname: string;
109
+ locale: string | null;
110
+ pageId: string;
111
+ changeType: "deleted" | "created" | "updated";
112
+ previousPathname?: string | undefined;
113
+ }, {
114
+ pathname: string;
115
+ locale: string | null;
116
+ pageId: string;
117
+ changeType: "deleted" | "created" | "updated";
118
+ previousPathname?: string | undefined;
119
+ }>, "many">;
120
+ globalElements: z.ZodArray<z.ZodObject<{
121
+ id: z.ZodString;
122
+ locale: z.ZodNullable<z.ZodString>;
123
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
124
+ }, "strip", z.ZodTypeAny, {
125
+ id: string;
126
+ locale: string | null;
127
+ changeType: "deleted" | "created" | "updated";
128
+ }, {
129
+ id: string;
130
+ locale: string | null;
131
+ changeType: "deleted" | "created" | "updated";
132
+ }>, "many">;
133
+ swatches: z.ZodArray<z.ZodObject<{
134
+ id: z.ZodString;
135
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
136
+ }, "strip", z.ZodTypeAny, {
137
+ id: string;
138
+ changeType: "deleted" | "created" | "updated";
139
+ }, {
140
+ id: string;
141
+ changeType: "deleted" | "created" | "updated";
142
+ }>, "many">;
143
+ typographies: z.ZodArray<z.ZodObject<{
144
+ id: z.ZodString;
145
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ id: string;
148
+ changeType: "deleted" | "created" | "updated";
149
+ }, {
150
+ id: string;
151
+ changeType: "deleted" | "created" | "updated";
152
+ }>, "many">;
153
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
154
+ components: z.ZodArray<z.ZodObject<{
155
+ id: z.ZodString;
156
+ locale: z.ZodNullable<z.ZodString>;
157
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
158
+ }, "strip", z.ZodTypeAny, {
159
+ id: string;
160
+ locale: string | null;
161
+ changeType: "deleted" | "created" | "updated";
162
+ }, {
163
+ id: string;
164
+ locale: string | null;
165
+ changeType: "deleted" | "created" | "updated";
166
+ }>, "many">;
167
+ pages: z.ZodArray<z.ZodObject<{
168
+ pageId: z.ZodString;
169
+ locale: z.ZodNullable<z.ZodString>;
170
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
171
+ pathname: z.ZodString;
172
+ previousPathname: z.ZodOptional<z.ZodString>;
173
+ }, "strip", z.ZodTypeAny, {
174
+ pathname: string;
175
+ locale: string | null;
176
+ pageId: string;
177
+ changeType: "deleted" | "created" | "updated";
178
+ previousPathname?: string | undefined;
179
+ }, {
180
+ pathname: string;
181
+ locale: string | null;
182
+ pageId: string;
183
+ changeType: "deleted" | "created" | "updated";
184
+ previousPathname?: string | undefined;
185
+ }>, "many">;
186
+ globalElements: z.ZodArray<z.ZodObject<{
187
+ id: z.ZodString;
188
+ locale: z.ZodNullable<z.ZodString>;
189
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
190
+ }, "strip", z.ZodTypeAny, {
191
+ id: string;
192
+ locale: string | null;
193
+ changeType: "deleted" | "created" | "updated";
194
+ }, {
195
+ id: string;
196
+ locale: string | null;
197
+ changeType: "deleted" | "created" | "updated";
198
+ }>, "many">;
199
+ swatches: z.ZodArray<z.ZodObject<{
200
+ id: z.ZodString;
201
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
202
+ }, "strip", z.ZodTypeAny, {
203
+ id: string;
204
+ changeType: "deleted" | "created" | "updated";
205
+ }, {
206
+ id: string;
207
+ changeType: "deleted" | "created" | "updated";
208
+ }>, "many">;
209
+ typographies: z.ZodArray<z.ZodObject<{
210
+ id: z.ZodString;
211
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
212
+ }, "strip", z.ZodTypeAny, {
213
+ id: string;
214
+ changeType: "deleted" | "created" | "updated";
215
+ }, {
216
+ id: string;
217
+ changeType: "deleted" | "created" | "updated";
218
+ }>, "many">;
219
+ }, z.ZodTypeAny, "passthrough">>>>>;
21
220
  }, "strip", z.ZodTypeAny, {
22
221
  at: number;
23
222
  siteId: string;
@@ -25,6 +224,73 @@ export declare const sitePublishedWebhookPayloadSchema: z.ZodObject<{
25
224
  to: string;
26
225
  from: string | null;
27
226
  };
227
+ unstable_diff?: z.objectOutputType<{
228
+ components: z.ZodArray<z.ZodObject<{
229
+ id: z.ZodString;
230
+ locale: z.ZodNullable<z.ZodString>;
231
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
232
+ }, "strip", z.ZodTypeAny, {
233
+ id: string;
234
+ locale: string | null;
235
+ changeType: "deleted" | "created" | "updated";
236
+ }, {
237
+ id: string;
238
+ locale: string | null;
239
+ changeType: "deleted" | "created" | "updated";
240
+ }>, "many">;
241
+ pages: z.ZodArray<z.ZodObject<{
242
+ pageId: z.ZodString;
243
+ locale: z.ZodNullable<z.ZodString>;
244
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
245
+ pathname: z.ZodString;
246
+ previousPathname: z.ZodOptional<z.ZodString>;
247
+ }, "strip", z.ZodTypeAny, {
248
+ pathname: string;
249
+ locale: string | null;
250
+ pageId: string;
251
+ changeType: "deleted" | "created" | "updated";
252
+ previousPathname?: string | undefined;
253
+ }, {
254
+ pathname: string;
255
+ locale: string | null;
256
+ pageId: string;
257
+ changeType: "deleted" | "created" | "updated";
258
+ previousPathname?: string | undefined;
259
+ }>, "many">;
260
+ globalElements: z.ZodArray<z.ZodObject<{
261
+ id: z.ZodString;
262
+ locale: z.ZodNullable<z.ZodString>;
263
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ id: string;
266
+ locale: string | null;
267
+ changeType: "deleted" | "created" | "updated";
268
+ }, {
269
+ id: string;
270
+ locale: string | null;
271
+ changeType: "deleted" | "created" | "updated";
272
+ }>, "many">;
273
+ swatches: z.ZodArray<z.ZodObject<{
274
+ id: z.ZodString;
275
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
276
+ }, "strip", z.ZodTypeAny, {
277
+ id: string;
278
+ changeType: "deleted" | "created" | "updated";
279
+ }, {
280
+ id: string;
281
+ changeType: "deleted" | "created" | "updated";
282
+ }>, "many">;
283
+ typographies: z.ZodArray<z.ZodObject<{
284
+ id: z.ZodString;
285
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
286
+ }, "strip", z.ZodTypeAny, {
287
+ id: string;
288
+ changeType: "deleted" | "created" | "updated";
289
+ }, {
290
+ id: string;
291
+ changeType: "deleted" | "created" | "updated";
292
+ }>, "many">;
293
+ }, z.ZodTypeAny, "passthrough"> | null | undefined;
28
294
  }, {
29
295
  at: number;
30
296
  siteId: string;
@@ -32,6 +298,7 @@ export declare const sitePublishedWebhookPayloadSchema: z.ZodObject<{
32
298
  to: string;
33
299
  from: string | null;
34
300
  };
301
+ unstable_diff?: unknown;
35
302
  }>;
36
303
  }, "strip", z.ZodTypeAny, {
37
304
  type: "site.published";
@@ -42,6 +309,73 @@ export declare const sitePublishedWebhookPayloadSchema: z.ZodObject<{
42
309
  to: string;
43
310
  from: string | null;
44
311
  };
312
+ unstable_diff?: z.objectOutputType<{
313
+ components: z.ZodArray<z.ZodObject<{
314
+ id: z.ZodString;
315
+ locale: z.ZodNullable<z.ZodString>;
316
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
317
+ }, "strip", z.ZodTypeAny, {
318
+ id: string;
319
+ locale: string | null;
320
+ changeType: "deleted" | "created" | "updated";
321
+ }, {
322
+ id: string;
323
+ locale: string | null;
324
+ changeType: "deleted" | "created" | "updated";
325
+ }>, "many">;
326
+ pages: z.ZodArray<z.ZodObject<{
327
+ pageId: z.ZodString;
328
+ locale: z.ZodNullable<z.ZodString>;
329
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
330
+ pathname: z.ZodString;
331
+ previousPathname: z.ZodOptional<z.ZodString>;
332
+ }, "strip", z.ZodTypeAny, {
333
+ pathname: string;
334
+ locale: string | null;
335
+ pageId: string;
336
+ changeType: "deleted" | "created" | "updated";
337
+ previousPathname?: string | undefined;
338
+ }, {
339
+ pathname: string;
340
+ locale: string | null;
341
+ pageId: string;
342
+ changeType: "deleted" | "created" | "updated";
343
+ previousPathname?: string | undefined;
344
+ }>, "many">;
345
+ globalElements: z.ZodArray<z.ZodObject<{
346
+ id: z.ZodString;
347
+ locale: z.ZodNullable<z.ZodString>;
348
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
349
+ }, "strip", z.ZodTypeAny, {
350
+ id: string;
351
+ locale: string | null;
352
+ changeType: "deleted" | "created" | "updated";
353
+ }, {
354
+ id: string;
355
+ locale: string | null;
356
+ changeType: "deleted" | "created" | "updated";
357
+ }>, "many">;
358
+ swatches: z.ZodArray<z.ZodObject<{
359
+ id: z.ZodString;
360
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
361
+ }, "strip", z.ZodTypeAny, {
362
+ id: string;
363
+ changeType: "deleted" | "created" | "updated";
364
+ }, {
365
+ id: string;
366
+ changeType: "deleted" | "created" | "updated";
367
+ }>, "many">;
368
+ typographies: z.ZodArray<z.ZodObject<{
369
+ id: z.ZodString;
370
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
371
+ }, "strip", z.ZodTypeAny, {
372
+ id: string;
373
+ changeType: "deleted" | "created" | "updated";
374
+ }, {
375
+ id: string;
376
+ changeType: "deleted" | "created" | "updated";
377
+ }>, "many">;
378
+ }, z.ZodTypeAny, "passthrough"> | null | undefined;
45
379
  };
46
380
  }, {
47
381
  type: "site.published";
@@ -52,9 +386,11 @@ export declare const sitePublishedWebhookPayloadSchema: z.ZodObject<{
52
386
  to: string;
53
387
  from: string | null;
54
388
  };
389
+ unstable_diff?: unknown;
55
390
  };
56
391
  }>;
57
392
  export type SitePublishedWebhookPayload = z.infer<typeof sitePublishedWebhookPayloadSchema>;
393
+ export type SitePublishedWebhookPayloadData = z.infer<typeof sitePublishedWebhookPayloadSchema>['data'];
58
394
  declare const webhookPayloadSchema: z.ZodObject<{
59
395
  type: z.ZodLiteral<"site.published">;
60
396
  data: z.ZodObject<{
@@ -70,6 +406,205 @@ declare const webhookPayloadSchema: z.ZodObject<{
70
406
  from: string | null;
71
407
  }>;
72
408
  at: z.ZodNumber;
409
+ unstable_diff: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
410
+ components: z.ZodArray<z.ZodObject<{
411
+ id: z.ZodString;
412
+ locale: z.ZodNullable<z.ZodString>;
413
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
414
+ }, "strip", z.ZodTypeAny, {
415
+ id: string;
416
+ locale: string | null;
417
+ changeType: "deleted" | "created" | "updated";
418
+ }, {
419
+ id: string;
420
+ locale: string | null;
421
+ changeType: "deleted" | "created" | "updated";
422
+ }>, "many">;
423
+ pages: z.ZodArray<z.ZodObject<{
424
+ pageId: z.ZodString;
425
+ locale: z.ZodNullable<z.ZodString>;
426
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
427
+ pathname: z.ZodString;
428
+ previousPathname: z.ZodOptional<z.ZodString>;
429
+ }, "strip", z.ZodTypeAny, {
430
+ pathname: string;
431
+ locale: string | null;
432
+ pageId: string;
433
+ changeType: "deleted" | "created" | "updated";
434
+ previousPathname?: string | undefined;
435
+ }, {
436
+ pathname: string;
437
+ locale: string | null;
438
+ pageId: string;
439
+ changeType: "deleted" | "created" | "updated";
440
+ previousPathname?: string | undefined;
441
+ }>, "many">;
442
+ globalElements: z.ZodArray<z.ZodObject<{
443
+ id: z.ZodString;
444
+ locale: z.ZodNullable<z.ZodString>;
445
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
446
+ }, "strip", z.ZodTypeAny, {
447
+ id: string;
448
+ locale: string | null;
449
+ changeType: "deleted" | "created" | "updated";
450
+ }, {
451
+ id: string;
452
+ locale: string | null;
453
+ changeType: "deleted" | "created" | "updated";
454
+ }>, "many">;
455
+ swatches: z.ZodArray<z.ZodObject<{
456
+ id: z.ZodString;
457
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
458
+ }, "strip", z.ZodTypeAny, {
459
+ id: string;
460
+ changeType: "deleted" | "created" | "updated";
461
+ }, {
462
+ id: string;
463
+ changeType: "deleted" | "created" | "updated";
464
+ }>, "many">;
465
+ typographies: z.ZodArray<z.ZodObject<{
466
+ id: z.ZodString;
467
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
468
+ }, "strip", z.ZodTypeAny, {
469
+ id: string;
470
+ changeType: "deleted" | "created" | "updated";
471
+ }, {
472
+ id: string;
473
+ changeType: "deleted" | "created" | "updated";
474
+ }>, "many">;
475
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
476
+ components: z.ZodArray<z.ZodObject<{
477
+ id: z.ZodString;
478
+ locale: z.ZodNullable<z.ZodString>;
479
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
480
+ }, "strip", z.ZodTypeAny, {
481
+ id: string;
482
+ locale: string | null;
483
+ changeType: "deleted" | "created" | "updated";
484
+ }, {
485
+ id: string;
486
+ locale: string | null;
487
+ changeType: "deleted" | "created" | "updated";
488
+ }>, "many">;
489
+ pages: z.ZodArray<z.ZodObject<{
490
+ pageId: z.ZodString;
491
+ locale: z.ZodNullable<z.ZodString>;
492
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
493
+ pathname: z.ZodString;
494
+ previousPathname: z.ZodOptional<z.ZodString>;
495
+ }, "strip", z.ZodTypeAny, {
496
+ pathname: string;
497
+ locale: string | null;
498
+ pageId: string;
499
+ changeType: "deleted" | "created" | "updated";
500
+ previousPathname?: string | undefined;
501
+ }, {
502
+ pathname: string;
503
+ locale: string | null;
504
+ pageId: string;
505
+ changeType: "deleted" | "created" | "updated";
506
+ previousPathname?: string | undefined;
507
+ }>, "many">;
508
+ globalElements: z.ZodArray<z.ZodObject<{
509
+ id: z.ZodString;
510
+ locale: z.ZodNullable<z.ZodString>;
511
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
512
+ }, "strip", z.ZodTypeAny, {
513
+ id: string;
514
+ locale: string | null;
515
+ changeType: "deleted" | "created" | "updated";
516
+ }, {
517
+ id: string;
518
+ locale: string | null;
519
+ changeType: "deleted" | "created" | "updated";
520
+ }>, "many">;
521
+ swatches: z.ZodArray<z.ZodObject<{
522
+ id: z.ZodString;
523
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
524
+ }, "strip", z.ZodTypeAny, {
525
+ id: string;
526
+ changeType: "deleted" | "created" | "updated";
527
+ }, {
528
+ id: string;
529
+ changeType: "deleted" | "created" | "updated";
530
+ }>, "many">;
531
+ typographies: z.ZodArray<z.ZodObject<{
532
+ id: z.ZodString;
533
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
534
+ }, "strip", z.ZodTypeAny, {
535
+ id: string;
536
+ changeType: "deleted" | "created" | "updated";
537
+ }, {
538
+ id: string;
539
+ changeType: "deleted" | "created" | "updated";
540
+ }>, "many">;
541
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
542
+ components: z.ZodArray<z.ZodObject<{
543
+ id: z.ZodString;
544
+ locale: z.ZodNullable<z.ZodString>;
545
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
546
+ }, "strip", z.ZodTypeAny, {
547
+ id: string;
548
+ locale: string | null;
549
+ changeType: "deleted" | "created" | "updated";
550
+ }, {
551
+ id: string;
552
+ locale: string | null;
553
+ changeType: "deleted" | "created" | "updated";
554
+ }>, "many">;
555
+ pages: z.ZodArray<z.ZodObject<{
556
+ pageId: z.ZodString;
557
+ locale: z.ZodNullable<z.ZodString>;
558
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
559
+ pathname: z.ZodString;
560
+ previousPathname: z.ZodOptional<z.ZodString>;
561
+ }, "strip", z.ZodTypeAny, {
562
+ pathname: string;
563
+ locale: string | null;
564
+ pageId: string;
565
+ changeType: "deleted" | "created" | "updated";
566
+ previousPathname?: string | undefined;
567
+ }, {
568
+ pathname: string;
569
+ locale: string | null;
570
+ pageId: string;
571
+ changeType: "deleted" | "created" | "updated";
572
+ previousPathname?: string | undefined;
573
+ }>, "many">;
574
+ globalElements: z.ZodArray<z.ZodObject<{
575
+ id: z.ZodString;
576
+ locale: z.ZodNullable<z.ZodString>;
577
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
578
+ }, "strip", z.ZodTypeAny, {
579
+ id: string;
580
+ locale: string | null;
581
+ changeType: "deleted" | "created" | "updated";
582
+ }, {
583
+ id: string;
584
+ locale: string | null;
585
+ changeType: "deleted" | "created" | "updated";
586
+ }>, "many">;
587
+ swatches: z.ZodArray<z.ZodObject<{
588
+ id: z.ZodString;
589
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
590
+ }, "strip", z.ZodTypeAny, {
591
+ id: string;
592
+ changeType: "deleted" | "created" | "updated";
593
+ }, {
594
+ id: string;
595
+ changeType: "deleted" | "created" | "updated";
596
+ }>, "many">;
597
+ typographies: z.ZodArray<z.ZodObject<{
598
+ id: z.ZodString;
599
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
600
+ }, "strip", z.ZodTypeAny, {
601
+ id: string;
602
+ changeType: "deleted" | "created" | "updated";
603
+ }, {
604
+ id: string;
605
+ changeType: "deleted" | "created" | "updated";
606
+ }>, "many">;
607
+ }, z.ZodTypeAny, "passthrough">>>>>;
73
608
  }, "strip", z.ZodTypeAny, {
74
609
  at: number;
75
610
  siteId: string;
@@ -77,6 +612,73 @@ declare const webhookPayloadSchema: z.ZodObject<{
77
612
  to: string;
78
613
  from: string | null;
79
614
  };
615
+ unstable_diff?: z.objectOutputType<{
616
+ components: z.ZodArray<z.ZodObject<{
617
+ id: z.ZodString;
618
+ locale: z.ZodNullable<z.ZodString>;
619
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
620
+ }, "strip", z.ZodTypeAny, {
621
+ id: string;
622
+ locale: string | null;
623
+ changeType: "deleted" | "created" | "updated";
624
+ }, {
625
+ id: string;
626
+ locale: string | null;
627
+ changeType: "deleted" | "created" | "updated";
628
+ }>, "many">;
629
+ pages: z.ZodArray<z.ZodObject<{
630
+ pageId: z.ZodString;
631
+ locale: z.ZodNullable<z.ZodString>;
632
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
633
+ pathname: z.ZodString;
634
+ previousPathname: z.ZodOptional<z.ZodString>;
635
+ }, "strip", z.ZodTypeAny, {
636
+ pathname: string;
637
+ locale: string | null;
638
+ pageId: string;
639
+ changeType: "deleted" | "created" | "updated";
640
+ previousPathname?: string | undefined;
641
+ }, {
642
+ pathname: string;
643
+ locale: string | null;
644
+ pageId: string;
645
+ changeType: "deleted" | "created" | "updated";
646
+ previousPathname?: string | undefined;
647
+ }>, "many">;
648
+ globalElements: z.ZodArray<z.ZodObject<{
649
+ id: z.ZodString;
650
+ locale: z.ZodNullable<z.ZodString>;
651
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
652
+ }, "strip", z.ZodTypeAny, {
653
+ id: string;
654
+ locale: string | null;
655
+ changeType: "deleted" | "created" | "updated";
656
+ }, {
657
+ id: string;
658
+ locale: string | null;
659
+ changeType: "deleted" | "created" | "updated";
660
+ }>, "many">;
661
+ swatches: z.ZodArray<z.ZodObject<{
662
+ id: z.ZodString;
663
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
664
+ }, "strip", z.ZodTypeAny, {
665
+ id: string;
666
+ changeType: "deleted" | "created" | "updated";
667
+ }, {
668
+ id: string;
669
+ changeType: "deleted" | "created" | "updated";
670
+ }>, "many">;
671
+ typographies: z.ZodArray<z.ZodObject<{
672
+ id: z.ZodString;
673
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
674
+ }, "strip", z.ZodTypeAny, {
675
+ id: string;
676
+ changeType: "deleted" | "created" | "updated";
677
+ }, {
678
+ id: string;
679
+ changeType: "deleted" | "created" | "updated";
680
+ }>, "many">;
681
+ }, z.ZodTypeAny, "passthrough"> | null | undefined;
80
682
  }, {
81
683
  at: number;
82
684
  siteId: string;
@@ -84,6 +686,7 @@ declare const webhookPayloadSchema: z.ZodObject<{
84
686
  to: string;
85
687
  from: string | null;
86
688
  };
689
+ unstable_diff?: unknown;
87
690
  }>;
88
691
  }, "strip", z.ZodTypeAny, {
89
692
  type: "site.published";
@@ -94,6 +697,73 @@ declare const webhookPayloadSchema: z.ZodObject<{
94
697
  to: string;
95
698
  from: string | null;
96
699
  };
700
+ unstable_diff?: z.objectOutputType<{
701
+ components: z.ZodArray<z.ZodObject<{
702
+ id: z.ZodString;
703
+ locale: z.ZodNullable<z.ZodString>;
704
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
705
+ }, "strip", z.ZodTypeAny, {
706
+ id: string;
707
+ locale: string | null;
708
+ changeType: "deleted" | "created" | "updated";
709
+ }, {
710
+ id: string;
711
+ locale: string | null;
712
+ changeType: "deleted" | "created" | "updated";
713
+ }>, "many">;
714
+ pages: z.ZodArray<z.ZodObject<{
715
+ pageId: z.ZodString;
716
+ locale: z.ZodNullable<z.ZodString>;
717
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
718
+ pathname: z.ZodString;
719
+ previousPathname: z.ZodOptional<z.ZodString>;
720
+ }, "strip", z.ZodTypeAny, {
721
+ pathname: string;
722
+ locale: string | null;
723
+ pageId: string;
724
+ changeType: "deleted" | "created" | "updated";
725
+ previousPathname?: string | undefined;
726
+ }, {
727
+ pathname: string;
728
+ locale: string | null;
729
+ pageId: string;
730
+ changeType: "deleted" | "created" | "updated";
731
+ previousPathname?: string | undefined;
732
+ }>, "many">;
733
+ globalElements: z.ZodArray<z.ZodObject<{
734
+ id: z.ZodString;
735
+ locale: z.ZodNullable<z.ZodString>;
736
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
737
+ }, "strip", z.ZodTypeAny, {
738
+ id: string;
739
+ locale: string | null;
740
+ changeType: "deleted" | "created" | "updated";
741
+ }, {
742
+ id: string;
743
+ locale: string | null;
744
+ changeType: "deleted" | "created" | "updated";
745
+ }>, "many">;
746
+ swatches: z.ZodArray<z.ZodObject<{
747
+ id: z.ZodString;
748
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
749
+ }, "strip", z.ZodTypeAny, {
750
+ id: string;
751
+ changeType: "deleted" | "created" | "updated";
752
+ }, {
753
+ id: string;
754
+ changeType: "deleted" | "created" | "updated";
755
+ }>, "many">;
756
+ typographies: z.ZodArray<z.ZodObject<{
757
+ id: z.ZodString;
758
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
759
+ }, "strip", z.ZodTypeAny, {
760
+ id: string;
761
+ changeType: "deleted" | "created" | "updated";
762
+ }, {
763
+ id: string;
764
+ changeType: "deleted" | "created" | "updated";
765
+ }>, "many">;
766
+ }, z.ZodTypeAny, "passthrough"> | null | undefined;
97
767
  };
98
768
  }, {
99
769
  type: "site.published";
@@ -104,6 +774,7 @@ declare const webhookPayloadSchema: z.ZodObject<{
104
774
  to: string;
105
775
  from: string | null;
106
776
  };
777
+ unstable_diff?: unknown;
107
778
  };
108
779
  }>;
109
780
  export type WebhookPayloadSchema = z.infer<typeof webhookPayloadSchema>;
@@ -115,6 +786,6 @@ export type WebhookHandlerResult = {
115
786
  body: WebhookResponseBody;
116
787
  status: 200;
117
788
  };
118
- export type OnPublish = () => void | Promise<void>;
789
+ export type OnPublish = (payload: SitePublishedWebhookPayloadData) => void | Promise<void>;
119
790
  export {};
120
791
  //# sourceMappingURL=types.d.ts.map