@hollware/core 0.9.0 → 0.10.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.
package/dist/index.d.mts CHANGED
@@ -442,6 +442,14 @@ export declare class ConfigError extends Error {
442
442
  constructor(problems: readonly ConfigProblem[]);
443
443
  }
444
444
  //#endregion
445
+ //#region src/config/events.d.ts
446
+ /**
447
+ * An IndexNow key, which is public by design (search engines fetch it at `/<key>.txt`): the
448
+ * definition holds the key itself, never the name of a Worker secret, so no value of the Worker
449
+ * can be sent to IndexNow (T-69 of docs/security/threat-model.md).
450
+ */
451
+ export declare const INDEXNOW_KEY: RegExp;
452
+ //#endregion
445
453
  //#region src/config/constants.d.ts
446
454
  /** The largest Markdown file a collection accepts when its config does not say, 512 KiB. */
447
455
  export declare const DEFAULT_MAX_MARKDOWN_BYTES = 524288;
@@ -541,6 +549,7 @@ declare const entrySummary: z.ZodObject<{
541
549
  hasUnpublishedChanges: z.ZodBoolean;
542
550
  publishedAt: z.ZodNullable<z.ZodString>;
543
551
  scheduledAt: z.ZodNullable<z.ZodString>;
552
+ deletedAt: z.ZodNullable<z.ZodString>;
544
553
  updatedAt: z.ZodString;
545
554
  }, z.core.$strip>;
546
555
  declare const publication: z.ZodObject<{
@@ -604,6 +613,7 @@ declare const entry: z.ZodObject<{
604
613
  hasUnpublishedChanges: z.ZodBoolean;
605
614
  publishedAt: z.ZodNullable<z.ZodString>;
606
615
  scheduledAt: z.ZodNullable<z.ZodString>;
616
+ deletedAt: z.ZodNullable<z.ZodString>;
607
617
  updatedAt: z.ZodString;
608
618
  revision: z.ZodString;
609
619
  verdict: z.ZodObject<{
@@ -1454,6 +1464,7 @@ export declare const listEntries: OperationSpec<"list_entries", z.ZodObject<{
1454
1464
  published: "published";
1455
1465
  scheduled: "scheduled";
1456
1466
  }>>;
1467
+ trashed: z.ZodOptional<z.ZodBoolean>;
1457
1468
  limit: z.ZodDefault<z.ZodNumber>;
1458
1469
  cursor: z.ZodOptional<z.ZodString>;
1459
1470
  }, z.core.$strict>, z.ZodObject<{
@@ -1477,6 +1488,7 @@ export declare const listEntries: OperationSpec<"list_entries", z.ZodObject<{
1477
1488
  hasUnpublishedChanges: z.ZodBoolean;
1478
1489
  publishedAt: z.ZodNullable<z.ZodString>;
1479
1490
  scheduledAt: z.ZodNullable<z.ZodString>;
1491
+ deletedAt: z.ZodNullable<z.ZodString>;
1480
1492
  updatedAt: z.ZodString;
1481
1493
  }, z.core.$strip>>;
1482
1494
  nextCursor: z.ZodNullable<z.ZodString>;
@@ -1518,6 +1530,7 @@ export declare const search: OperationSpec<"search", z.ZodObject<{
1518
1530
  hasUnpublishedChanges: z.ZodBoolean;
1519
1531
  publishedAt: z.ZodNullable<z.ZodString>;
1520
1532
  scheduledAt: z.ZodNullable<z.ZodString>;
1533
+ deletedAt: z.ZodNullable<z.ZodString>;
1521
1534
  updatedAt: z.ZodString;
1522
1535
  }, z.core.$strip>;
1523
1536
  snippet: z.ZodString;
@@ -1557,6 +1570,7 @@ export declare const getEntry: OperationSpec<"get_entry", z.ZodObject<{
1557
1570
  hasUnpublishedChanges: z.ZodBoolean;
1558
1571
  publishedAt: z.ZodNullable<z.ZodString>;
1559
1572
  scheduledAt: z.ZodNullable<z.ZodString>;
1573
+ deletedAt: z.ZodNullable<z.ZodString>;
1560
1574
  updatedAt: z.ZodString;
1561
1575
  revision: z.ZodString;
1562
1576
  verdict: z.ZodObject<{
@@ -1652,6 +1666,7 @@ export declare const getEntry: OperationSpec<"get_entry", z.ZodObject<{
1652
1666
  hasUnpublishedChanges: z.ZodBoolean;
1653
1667
  publishedAt: z.ZodNullable<z.ZodString>;
1654
1668
  scheduledAt: z.ZodNullable<z.ZodString>;
1669
+ deletedAt: z.ZodNullable<z.ZodString>;
1655
1670
  updatedAt: z.ZodString;
1656
1671
  }, z.core.$strip>>>;
1657
1672
  }, z.core.$strip>>;
@@ -1680,6 +1695,7 @@ export declare const getTranslations: OperationSpec<"get_translations", z.ZodObj
1680
1695
  hasUnpublishedChanges: z.ZodBoolean;
1681
1696
  publishedAt: z.ZodNullable<z.ZodString>;
1682
1697
  scheduledAt: z.ZodNullable<z.ZodString>;
1698
+ deletedAt: z.ZodNullable<z.ZodString>;
1683
1699
  updatedAt: z.ZodString;
1684
1700
  }, z.core.$strip>>>;
1685
1701
  }, z.core.$strip>>;
@@ -1690,6 +1706,7 @@ export declare const createDraft: OperationSpec<"create_draft", z.ZodObject<{
1690
1706
  markdown: z.ZodString;
1691
1707
  }, z.core.$strict>, z.ZodObject<{
1692
1708
  outcome: z.ZodEnum<{
1709
+ in_trash: "in_trash";
1693
1710
  refused: "refused";
1694
1711
  saved: "saved";
1695
1712
  }>;
@@ -1710,6 +1727,7 @@ export declare const createDraft: OperationSpec<"create_draft", z.ZodObject<{
1710
1727
  hasUnpublishedChanges: z.ZodBoolean;
1711
1728
  publishedAt: z.ZodNullable<z.ZodString>;
1712
1729
  scheduledAt: z.ZodNullable<z.ZodString>;
1730
+ deletedAt: z.ZodNullable<z.ZodString>;
1713
1731
  updatedAt: z.ZodString;
1714
1732
  }, z.core.$strip>>;
1715
1733
  verdict: z.ZodOptional<z.ZodObject<{
@@ -1772,6 +1790,7 @@ export declare const updateDraft: OperationSpec<"update_draft", z.ZodObject<{
1772
1790
  hasUnpublishedChanges: z.ZodBoolean;
1773
1791
  publishedAt: z.ZodNullable<z.ZodString>;
1774
1792
  scheduledAt: z.ZodNullable<z.ZodString>;
1793
+ deletedAt: z.ZodNullable<z.ZodString>;
1775
1794
  updatedAt: z.ZodString;
1776
1795
  }, z.core.$strip>>;
1777
1796
  verdict: z.ZodOptional<z.ZodObject<{
@@ -1888,6 +1907,7 @@ export declare const publish: OperationSpec<"publish", z.ZodObject<{
1888
1907
  hasUnpublishedChanges: z.ZodBoolean;
1889
1908
  publishedAt: z.ZodNullable<z.ZodString>;
1890
1909
  scheduledAt: z.ZodNullable<z.ZodString>;
1910
+ deletedAt: z.ZodNullable<z.ZodString>;
1891
1911
  updatedAt: z.ZodString;
1892
1912
  }, z.core.$strip>>;
1893
1913
  verdict: z.ZodOptional<z.ZodObject<{
@@ -1967,6 +1987,71 @@ export declare const unpublish: OperationSpec<"unpublish", z.ZodObject<{
1967
1987
  hasUnpublishedChanges: z.ZodBoolean;
1968
1988
  publishedAt: z.ZodNullable<z.ZodString>;
1969
1989
  scheduledAt: z.ZodNullable<z.ZodString>;
1990
+ deletedAt: z.ZodNullable<z.ZodString>;
1991
+ updatedAt: z.ZodString;
1992
+ }, z.core.$strip>>;
1993
+ }, z.core.$strip>>;
1994
+ export declare const deleteEntry: OperationSpec<"delete_entry", z.ZodObject<{
1995
+ id: z.ZodString;
1996
+ version: z.ZodNumber;
1997
+ }, z.core.$strict>, z.ZodObject<{
1998
+ outcome: z.ZodEnum<{
1999
+ conflict: "conflict";
2000
+ not_found: "not_found";
2001
+ published: "published";
2002
+ trashed: "trashed";
2003
+ }>;
2004
+ entry: z.ZodOptional<z.ZodObject<{
2005
+ id: z.ZodString;
2006
+ collection: z.ZodString;
2007
+ locale: z.ZodString;
2008
+ slug: z.ZodString;
2009
+ translationGroup: z.ZodNullable<z.ZodString>;
2010
+ status: z.ZodEnum<{
2011
+ draft: "draft";
2012
+ published: "published";
2013
+ scheduled: "scheduled";
2014
+ }>;
2015
+ version: z.ZodNumber;
2016
+ frontmatter: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2017
+ tags: z.ZodArray<z.ZodString>;
2018
+ hasUnpublishedChanges: z.ZodBoolean;
2019
+ publishedAt: z.ZodNullable<z.ZodString>;
2020
+ scheduledAt: z.ZodNullable<z.ZodString>;
2021
+ deletedAt: z.ZodNullable<z.ZodString>;
2022
+ updatedAt: z.ZodString;
2023
+ }, z.core.$strip>>;
2024
+ conflict: z.ZodOptional<z.ZodObject<{
2025
+ currentVersion: z.ZodNumber;
2026
+ headRevision: z.ZodString;
2027
+ }, z.core.$strip>>;
2028
+ }, z.core.$strip>>;
2029
+ export declare const restoreEntry: OperationSpec<"restore_entry", z.ZodObject<{
2030
+ id: z.ZodString;
2031
+ }, z.core.$strict>, z.ZodObject<{
2032
+ outcome: z.ZodEnum<{
2033
+ not_found: "not_found";
2034
+ not_trashed: "not_trashed";
2035
+ restored: "restored";
2036
+ }>;
2037
+ entry: z.ZodOptional<z.ZodObject<{
2038
+ id: z.ZodString;
2039
+ collection: z.ZodString;
2040
+ locale: z.ZodString;
2041
+ slug: z.ZodString;
2042
+ translationGroup: z.ZodNullable<z.ZodString>;
2043
+ status: z.ZodEnum<{
2044
+ draft: "draft";
2045
+ published: "published";
2046
+ scheduled: "scheduled";
2047
+ }>;
2048
+ version: z.ZodNumber;
2049
+ frontmatter: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2050
+ tags: z.ZodArray<z.ZodString>;
2051
+ hasUnpublishedChanges: z.ZodBoolean;
2052
+ publishedAt: z.ZodNullable<z.ZodString>;
2053
+ scheduledAt: z.ZodNullable<z.ZodString>;
2054
+ deletedAt: z.ZodNullable<z.ZodString>;
1970
2055
  updatedAt: z.ZodString;
1971
2056
  }, z.core.$strip>>;
1972
2057
  }, z.core.$strip>>;
@@ -2015,6 +2100,7 @@ export declare const listReviews: OperationSpec<"list_reviews", z.ZodObject<{
2015
2100
  hasUnpublishedChanges: z.ZodBoolean;
2016
2101
  publishedAt: z.ZodNullable<z.ZodString>;
2017
2102
  scheduledAt: z.ZodNullable<z.ZodString>;
2103
+ deletedAt: z.ZodNullable<z.ZodString>;
2018
2104
  updatedAt: z.ZodString;
2019
2105
  }, z.core.$strip>;
2020
2106
  comments: z.ZodArray<z.ZodObject<{
@@ -2075,6 +2161,7 @@ export declare const approveReview: OperationSpec<"approve_review", z.ZodObject<
2075
2161
  hasUnpublishedChanges: z.ZodBoolean;
2076
2162
  publishedAt: z.ZodNullable<z.ZodString>;
2077
2163
  scheduledAt: z.ZodNullable<z.ZodString>;
2164
+ deletedAt: z.ZodNullable<z.ZodString>;
2078
2165
  updatedAt: z.ZodString;
2079
2166
  }, z.core.$strip>>;
2080
2167
  verdict: z.ZodOptional<z.ZodObject<{
@@ -2140,6 +2227,7 @@ export declare const requestReview: OperationSpec<"request_review", z.ZodObject<
2140
2227
  hasUnpublishedChanges: z.ZodBoolean;
2141
2228
  publishedAt: z.ZodNullable<z.ZodString>;
2142
2229
  scheduledAt: z.ZodNullable<z.ZodString>;
2230
+ deletedAt: z.ZodNullable<z.ZodString>;
2143
2231
  updatedAt: z.ZodString;
2144
2232
  }, z.core.$strip>>;
2145
2233
  verdict: z.ZodOptional<z.ZodObject<{
@@ -2268,6 +2356,7 @@ export declare const contentStats: OperationSpec<"content_stats", z.ZodObject<{
2268
2356
  hasUnpublishedChanges: z.ZodBoolean;
2269
2357
  publishedAt: z.ZodNullable<z.ZodString>;
2270
2358
  scheduledAt: z.ZodNullable<z.ZodString>;
2359
+ deletedAt: z.ZodNullable<z.ZodString>;
2271
2360
  updatedAt: z.ZodString;
2272
2361
  }, z.core.$strip>>;
2273
2362
  }, z.core.$strip>>>;
@@ -2321,6 +2410,7 @@ export declare const OPERATIONS: readonly [OperationSpec<"approve_review", z.Zod
2321
2410
  hasUnpublishedChanges: z.ZodBoolean;
2322
2411
  publishedAt: z.ZodNullable<z.ZodString>;
2323
2412
  scheduledAt: z.ZodNullable<z.ZodString>;
2413
+ deletedAt: z.ZodNullable<z.ZodString>;
2324
2414
  updatedAt: z.ZodString;
2325
2415
  }, z.core.$strip>>;
2326
2416
  verdict: z.ZodOptional<z.ZodObject<{
@@ -2399,6 +2489,7 @@ export declare const OPERATIONS: readonly [OperationSpec<"approve_review", z.Zod
2399
2489
  hasUnpublishedChanges: z.ZodBoolean;
2400
2490
  publishedAt: z.ZodNullable<z.ZodString>;
2401
2491
  scheduledAt: z.ZodNullable<z.ZodString>;
2492
+ deletedAt: z.ZodNullable<z.ZodString>;
2402
2493
  updatedAt: z.ZodString;
2403
2494
  }, z.core.$strip>>;
2404
2495
  }, z.core.$strip>>>;
@@ -2409,6 +2500,7 @@ export declare const OPERATIONS: readonly [OperationSpec<"approve_review", z.Zod
2409
2500
  markdown: z.ZodString;
2410
2501
  }, z.core.$strict>, z.ZodObject<{
2411
2502
  outcome: z.ZodEnum<{
2503
+ in_trash: "in_trash";
2412
2504
  refused: "refused";
2413
2505
  saved: "saved";
2414
2506
  }>;
@@ -2429,6 +2521,7 @@ export declare const OPERATIONS: readonly [OperationSpec<"approve_review", z.Zod
2429
2521
  hasUnpublishedChanges: z.ZodBoolean;
2430
2522
  publishedAt: z.ZodNullable<z.ZodString>;
2431
2523
  scheduledAt: z.ZodNullable<z.ZodString>;
2524
+ deletedAt: z.ZodNullable<z.ZodString>;
2432
2525
  updatedAt: z.ZodString;
2433
2526
  }, z.core.$strip>>;
2434
2527
  verdict: z.ZodOptional<z.ZodObject<{
@@ -2517,6 +2610,40 @@ export declare const OPERATIONS: readonly [OperationSpec<"approve_review", z.Zod
2517
2610
  message: z.ZodString;
2518
2611
  fix: z.ZodString;
2519
2612
  }, z.core.$strip>>>;
2613
+ }, z.core.$strip>>, OperationSpec<"delete_entry", z.ZodObject<{
2614
+ id: z.ZodString;
2615
+ version: z.ZodNumber;
2616
+ }, z.core.$strict>, z.ZodObject<{
2617
+ outcome: z.ZodEnum<{
2618
+ conflict: "conflict";
2619
+ not_found: "not_found";
2620
+ published: "published";
2621
+ trashed: "trashed";
2622
+ }>;
2623
+ entry: z.ZodOptional<z.ZodObject<{
2624
+ id: z.ZodString;
2625
+ collection: z.ZodString;
2626
+ locale: z.ZodString;
2627
+ slug: z.ZodString;
2628
+ translationGroup: z.ZodNullable<z.ZodString>;
2629
+ status: z.ZodEnum<{
2630
+ draft: "draft";
2631
+ published: "published";
2632
+ scheduled: "scheduled";
2633
+ }>;
2634
+ version: z.ZodNumber;
2635
+ frontmatter: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2636
+ tags: z.ZodArray<z.ZodString>;
2637
+ hasUnpublishedChanges: z.ZodBoolean;
2638
+ publishedAt: z.ZodNullable<z.ZodString>;
2639
+ scheduledAt: z.ZodNullable<z.ZodString>;
2640
+ deletedAt: z.ZodNullable<z.ZodString>;
2641
+ updatedAt: z.ZodString;
2642
+ }, z.core.$strip>>;
2643
+ conflict: z.ZodOptional<z.ZodObject<{
2644
+ currentVersion: z.ZodNumber;
2645
+ headRevision: z.ZodString;
2646
+ }, z.core.$strip>>;
2520
2647
  }, z.core.$strip>>, OperationSpec<"delete_site", z.ZodObject<{
2521
2648
  key: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
2522
2649
  confirm: z.ZodDefault<z.ZodBoolean>;
@@ -2599,6 +2726,7 @@ export declare const OPERATIONS: readonly [OperationSpec<"approve_review", z.Zod
2599
2726
  hasUnpublishedChanges: z.ZodBoolean;
2600
2727
  publishedAt: z.ZodNullable<z.ZodString>;
2601
2728
  scheduledAt: z.ZodNullable<z.ZodString>;
2729
+ deletedAt: z.ZodNullable<z.ZodString>;
2602
2730
  updatedAt: z.ZodString;
2603
2731
  revision: z.ZodString;
2604
2732
  verdict: z.ZodObject<{
@@ -2694,6 +2822,7 @@ export declare const OPERATIONS: readonly [OperationSpec<"approve_review", z.Zod
2694
2822
  hasUnpublishedChanges: z.ZodBoolean;
2695
2823
  publishedAt: z.ZodNullable<z.ZodString>;
2696
2824
  scheduledAt: z.ZodNullable<z.ZodString>;
2825
+ deletedAt: z.ZodNullable<z.ZodString>;
2697
2826
  updatedAt: z.ZodString;
2698
2827
  }, z.core.$strip>>>;
2699
2828
  }, z.core.$strip>>, OperationSpec<"get_structure", z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
@@ -2774,6 +2903,7 @@ export declare const OPERATIONS: readonly [OperationSpec<"approve_review", z.Zod
2774
2903
  hasUnpublishedChanges: z.ZodBoolean;
2775
2904
  publishedAt: z.ZodNullable<z.ZodString>;
2776
2905
  scheduledAt: z.ZodNullable<z.ZodString>;
2906
+ deletedAt: z.ZodNullable<z.ZodString>;
2777
2907
  updatedAt: z.ZodString;
2778
2908
  }, z.core.$strip>>>;
2779
2909
  }, z.core.$strip>>, OperationSpec<"list_entries", z.ZodObject<{
@@ -2785,6 +2915,7 @@ export declare const OPERATIONS: readonly [OperationSpec<"approve_review", z.Zod
2785
2915
  published: "published";
2786
2916
  scheduled: "scheduled";
2787
2917
  }>>;
2918
+ trashed: z.ZodOptional<z.ZodBoolean>;
2788
2919
  limit: z.ZodDefault<z.ZodNumber>;
2789
2920
  cursor: z.ZodOptional<z.ZodString>;
2790
2921
  }, z.core.$strict>, z.ZodObject<{
@@ -2808,6 +2939,7 @@ export declare const OPERATIONS: readonly [OperationSpec<"approve_review", z.Zod
2808
2939
  hasUnpublishedChanges: z.ZodBoolean;
2809
2940
  publishedAt: z.ZodNullable<z.ZodString>;
2810
2941
  scheduledAt: z.ZodNullable<z.ZodString>;
2942
+ deletedAt: z.ZodNullable<z.ZodString>;
2811
2943
  updatedAt: z.ZodString;
2812
2944
  }, z.core.$strip>>;
2813
2945
  nextCursor: z.ZodNullable<z.ZodString>;
@@ -2856,6 +2988,7 @@ export declare const OPERATIONS: readonly [OperationSpec<"approve_review", z.Zod
2856
2988
  hasUnpublishedChanges: z.ZodBoolean;
2857
2989
  publishedAt: z.ZodNullable<z.ZodString>;
2858
2990
  scheduledAt: z.ZodNullable<z.ZodString>;
2991
+ deletedAt: z.ZodNullable<z.ZodString>;
2859
2992
  updatedAt: z.ZodString;
2860
2993
  }, z.core.$strip>;
2861
2994
  comments: z.ZodArray<z.ZodObject<{
@@ -2915,6 +3048,7 @@ export declare const OPERATIONS: readonly [OperationSpec<"approve_review", z.Zod
2915
3048
  hasUnpublishedChanges: z.ZodBoolean;
2916
3049
  publishedAt: z.ZodNullable<z.ZodString>;
2917
3050
  scheduledAt: z.ZodNullable<z.ZodString>;
3051
+ deletedAt: z.ZodNullable<z.ZodString>;
2918
3052
  updatedAt: z.ZodString;
2919
3053
  }, z.core.$strip>>;
2920
3054
  verdict: z.ZodOptional<z.ZodObject<{
@@ -3027,6 +3161,7 @@ export declare const OPERATIONS: readonly [OperationSpec<"approve_review", z.Zod
3027
3161
  hasUnpublishedChanges: z.ZodBoolean;
3028
3162
  publishedAt: z.ZodNullable<z.ZodString>;
3029
3163
  scheduledAt: z.ZodNullable<z.ZodString>;
3164
+ deletedAt: z.ZodNullable<z.ZodString>;
3030
3165
  updatedAt: z.ZodString;
3031
3166
  }, z.core.$strip>>;
3032
3167
  verdict: z.ZodOptional<z.ZodObject<{
@@ -3080,6 +3215,34 @@ export declare const OPERATIONS: readonly [OperationSpec<"approve_review", z.Zod
3080
3215
  decidedAt: z.ZodNullable<z.ZodString>;
3081
3216
  note: z.ZodNullable<z.ZodString>;
3082
3217
  }, z.core.$strip>>;
3218
+ }, z.core.$strip>>, OperationSpec<"restore_entry", z.ZodObject<{
3219
+ id: z.ZodString;
3220
+ }, z.core.$strict>, z.ZodObject<{
3221
+ outcome: z.ZodEnum<{
3222
+ not_found: "not_found";
3223
+ not_trashed: "not_trashed";
3224
+ restored: "restored";
3225
+ }>;
3226
+ entry: z.ZodOptional<z.ZodObject<{
3227
+ id: z.ZodString;
3228
+ collection: z.ZodString;
3229
+ locale: z.ZodString;
3230
+ slug: z.ZodString;
3231
+ translationGroup: z.ZodNullable<z.ZodString>;
3232
+ status: z.ZodEnum<{
3233
+ draft: "draft";
3234
+ published: "published";
3235
+ scheduled: "scheduled";
3236
+ }>;
3237
+ version: z.ZodNumber;
3238
+ frontmatter: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3239
+ tags: z.ZodArray<z.ZodString>;
3240
+ hasUnpublishedChanges: z.ZodBoolean;
3241
+ publishedAt: z.ZodNullable<z.ZodString>;
3242
+ scheduledAt: z.ZodNullable<z.ZodString>;
3243
+ deletedAt: z.ZodNullable<z.ZodString>;
3244
+ updatedAt: z.ZodString;
3245
+ }, z.core.$strip>>;
3083
3246
  }, z.core.$strip>>, OperationSpec<"restore_site", z.ZodObject<{
3084
3247
  key: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
3085
3248
  }, z.core.$strict>, z.ZodObject<{
@@ -3124,6 +3287,7 @@ export declare const OPERATIONS: readonly [OperationSpec<"approve_review", z.Zod
3124
3287
  hasUnpublishedChanges: z.ZodBoolean;
3125
3288
  publishedAt: z.ZodNullable<z.ZodString>;
3126
3289
  scheduledAt: z.ZodNullable<z.ZodString>;
3290
+ deletedAt: z.ZodNullable<z.ZodString>;
3127
3291
  updatedAt: z.ZodString;
3128
3292
  }, z.core.$strip>;
3129
3293
  snippet: z.ZodString;
@@ -3210,6 +3374,7 @@ export declare const OPERATIONS: readonly [OperationSpec<"approve_review", z.Zod
3210
3374
  hasUnpublishedChanges: z.ZodBoolean;
3211
3375
  publishedAt: z.ZodNullable<z.ZodString>;
3212
3376
  scheduledAt: z.ZodNullable<z.ZodString>;
3377
+ deletedAt: z.ZodNullable<z.ZodString>;
3213
3378
  updatedAt: z.ZodString;
3214
3379
  }, z.core.$strip>>;
3215
3380
  }, z.core.$strip>>, OperationSpec<"update_draft", z.ZodObject<{
@@ -3241,6 +3406,7 @@ export declare const OPERATIONS: readonly [OperationSpec<"approve_review", z.Zod
3241
3406
  hasUnpublishedChanges: z.ZodBoolean;
3242
3407
  publishedAt: z.ZodNullable<z.ZodString>;
3243
3408
  scheduledAt: z.ZodNullable<z.ZodString>;
3409
+ deletedAt: z.ZodNullable<z.ZodString>;
3244
3410
  updatedAt: z.ZodString;
3245
3411
  }, z.core.$strip>>;
3246
3412
  verdict: z.ZodOptional<z.ZodObject<{
@@ -3456,6 +3622,70 @@ export interface WebhookCheck {
3456
3622
  */
3457
3623
  export declare function verifyWebhook(check: WebhookCheck): Promise<boolean>;
3458
3624
  //#endregion
3625
+ //#region src/events.d.ts
3626
+ /** A publish or an unpublish: the entry, and where it lives on the site. */
3627
+ export declare const entryEvent: z.ZodObject<{
3628
+ id: z.ZodString;
3629
+ site: z.ZodString;
3630
+ at: z.ZodString;
3631
+ cacheTags: z.ZodArray<z.ZodString>;
3632
+ kind: z.ZodEnum<{
3633
+ "entry.published": "entry.published";
3634
+ "entry.unpublished": "entry.unpublished";
3635
+ }>;
3636
+ entry: z.ZodObject<{
3637
+ id: z.ZodString;
3638
+ collection: z.ZodString;
3639
+ locale: z.ZodString;
3640
+ slug: z.ZodString;
3641
+ translationGroup: z.ZodNullable<z.ZodString>;
3642
+ }, z.core.$strip>;
3643
+ path: z.ZodNullable<z.ZodString>;
3644
+ url: z.ZodNullable<z.ZodString>;
3645
+ }, z.core.$strip>;
3646
+ /** A change of the site's structure: no entry, the tags to purge. */
3647
+ export declare const siteEvent: z.ZodObject<{
3648
+ id: z.ZodString;
3649
+ site: z.ZodString;
3650
+ at: z.ZodString;
3651
+ cacheTags: z.ZodArray<z.ZodString>;
3652
+ kind: z.ZodLiteral<"site.changed">;
3653
+ }, z.core.$strip>;
3654
+ /** Every event a webhook gets. */
3655
+ export declare const hollwareEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
3656
+ id: z.ZodString;
3657
+ site: z.ZodString;
3658
+ at: z.ZodString;
3659
+ cacheTags: z.ZodArray<z.ZodString>;
3660
+ kind: z.ZodEnum<{
3661
+ "entry.published": "entry.published";
3662
+ "entry.unpublished": "entry.unpublished";
3663
+ }>;
3664
+ entry: z.ZodObject<{
3665
+ id: z.ZodString;
3666
+ collection: z.ZodString;
3667
+ locale: z.ZodString;
3668
+ slug: z.ZodString;
3669
+ translationGroup: z.ZodNullable<z.ZodString>;
3670
+ }, z.core.$strip>;
3671
+ path: z.ZodNullable<z.ZodString>;
3672
+ url: z.ZodNullable<z.ZodString>;
3673
+ }, z.core.$strip>, z.ZodObject<{
3674
+ id: z.ZodString;
3675
+ site: z.ZodString;
3676
+ at: z.ZodString;
3677
+ cacheTags: z.ZodArray<z.ZodString>;
3678
+ kind: z.ZodLiteral<"site.changed">;
3679
+ }, z.core.$strip>], "kind">;
3680
+ type EntryEvent = z.infer<typeof entryEvent>;
3681
+ type SiteEvent = z.infer<typeof siteEvent>;
3682
+ type HollwareEvent = z.infer<typeof hollwareEvent>;
3683
+ /**
3684
+ * The event of a webhook's body, once its signature holds, or `null` for a body that is not one
3685
+ * of the events this version knows (a newer kind, say): a receiver skips it.
3686
+ */
3687
+ export declare function parseHollwareEvent(body: string): HollwareEvent | null;
3688
+ //#endregion
3459
3689
  //#region src/search/chunks.d.ts
3460
3690
  /**
3461
3691
  * The pieces of an entry that semantic search embeds (v0.5): one summary, and one piece for each
@@ -3521,8 +3751,15 @@ export declare function tagsOfEntries(entries: readonly TaggedEntry[]): string[]
3521
3751
  * collection in its locale and in every locale, and the pages that link to its translations.
3522
3752
  */
3523
3753
  export declare function tagsOfChange(entry: TaggedEntry): string[];
3754
+ /**
3755
+ * The tags a change of a site's structure invalidates (ADR-033): the pages that show the structure
3756
+ * (`site`, such as a navigation), and every list of its collections in each locale and in every
3757
+ * locale, as a list may change with a schema, a route or a collection that goes. `collections` and
3758
+ * `locales` are those of the definition before and after the change, together.
3759
+ */
3760
+ export declare function tagsOfSiteChange(collections: readonly string[], locales: readonly string[]): string[];
3524
3761
  //#endregion
3525
3762
  //#region src/index.d.ts
3526
3763
  export declare const name = "@hollware/core";
3527
3764
  //#endregion
3528
- export { type AcknowledgedWarning, type AuthDefinition, type BuiltInContractId, type BuiltInOptions, type CatalogRule, type Chunk, type CollectionDefinition, type CollectionDefinitionData, type ComponentDefinition, type ComponentUse, type ConfigProblem, type Contract, type ContractContext, type ContractDescription, type ContractFinding, type ContractText, type CustomContractOptions, type DescribedSchema, type DisallowedMarker, type Effect, type EntryDocument, type EntryFacts, type EntryLookup, type EntryRef, type ErrorCode, type ExtractedContent, type Heading, type HollwareConfig, type IdPrefix, type ImageRef, type LinkRef, type LinkTarget, type Operation, type OperationByName, type OperationName, type OperationSpec, type OutcomeInfo, type OutcomeOf, type Phase, type Preset, type ProcessMarkdown, type ProcessMarkdownOptions, type ProcessResult, type ProcessedMarkdown, type RenderHtml, type ResolveConfig, type ResolvedAuth, type ResolvedCollection, type ResolvedConfig, type ResolvedSite, type RuleDefinition, type RunContractsInput, type SchemaOutput, type Scope, type Severity, type SiteDefinition, type SiteDefinitionData, type SiteDefinitionInput, type SiteDescription, type TaggedEntry, type Verdict, type Violation, schemas_d_exports as schemas };
3765
+ export { type AcknowledgedWarning, type AuthDefinition, type BuiltInContractId, type BuiltInOptions, type CatalogRule, type Chunk, type CollectionDefinition, type CollectionDefinitionData, type ComponentDefinition, type ComponentUse, type ConfigProblem, type Contract, type ContractContext, type ContractDescription, type ContractFinding, type ContractText, type CustomContractOptions, type DescribedSchema, type DisallowedMarker, type Effect, type EntryDocument, type EntryEvent, type EntryFacts, type EntryLookup, type EntryRef, type ErrorCode, type ExtractedContent, type Heading, type HollwareConfig, type HollwareEvent, type IdPrefix, type ImageRef, type LinkRef, type LinkTarget, type Operation, type OperationByName, type OperationName, type OperationSpec, type OutcomeInfo, type OutcomeOf, type Phase, type Preset, type ProcessMarkdown, type ProcessMarkdownOptions, type ProcessResult, type ProcessedMarkdown, type RenderHtml, type ResolveConfig, type ResolvedAuth, type ResolvedCollection, type ResolvedConfig, type ResolvedSite, type RuleDefinition, type RunContractsInput, type SchemaOutput, type Scope, type Severity, type SiteDefinition, type SiteDefinitionData, type SiteDefinitionInput, type SiteDescription, type SiteEvent, type TaggedEntry, type Verdict, type Violation, schemas_d_exports as schemas };