zudoku 0.37.1 → 0.38.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 (131) hide show
  1. package/dist/app/main.js +2 -0
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/config/validators/common.d.ts +287 -18
  4. package/dist/config/validators/common.js +2 -0
  5. package/dist/config/validators/common.js.map +1 -1
  6. package/dist/config/validators/validate.d.ts +107 -7
  7. package/dist/lib/authentication/authentication.d.ts +1 -0
  8. package/dist/lib/authentication/providers/clerk.js +19 -0
  9. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  10. package/dist/lib/authentication/providers/openid.d.ts +1 -0
  11. package/dist/lib/authentication/providers/openid.js +5 -0
  12. package/dist/lib/authentication/providers/openid.js.map +1 -1
  13. package/dist/lib/authentication/providers/supabase.js +5 -0
  14. package/dist/lib/authentication/providers/supabase.js.map +1 -1
  15. package/dist/lib/authentication/state.d.ts +0 -26
  16. package/dist/lib/authentication/state.js +1 -16
  17. package/dist/lib/authentication/state.js.map +1 -1
  18. package/dist/lib/components/Layout.js +5 -3
  19. package/dist/lib/components/Layout.js.map +1 -1
  20. package/dist/lib/core/ZudokuContext.d.ts +7 -0
  21. package/dist/lib/core/ZudokuContext.js +8 -3
  22. package/dist/lib/core/ZudokuContext.js.map +1 -1
  23. package/dist/lib/core/plugins.d.ts +1 -1
  24. package/dist/lib/plugins/markdown/MdxPage.js +2 -8
  25. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  26. package/dist/lib/plugins/openapi/Endpoint.js +1 -1
  27. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  28. package/dist/lib/plugins/openapi/OperationList.js +1 -1
  29. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  30. package/dist/lib/plugins/openapi/Sidecar.js +29 -5
  31. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  32. package/dist/lib/plugins/openapi/interfaces.d.ts +26 -0
  33. package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
  34. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  35. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +2 -2
  36. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  37. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  38. package/dist/lib/plugins/openapi/state.js +18 -0
  39. package/dist/lib/plugins/openapi/state.js.map +1 -0
  40. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +13 -4
  41. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
  42. package/dist/lib/plugins/search-pagefind/ResultList.js +19 -12
  43. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
  44. package/dist/lib/plugins/search-pagefind/get-results.d.ts +8 -1
  45. package/dist/lib/plugins/search-pagefind/get-results.js +9 -4
  46. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
  47. package/dist/lib/util/traverse.d.ts +2 -8
  48. package/dist/lib/util/traverse.js.map +1 -1
  49. package/dist/lib/util/types.d.ts +7 -0
  50. package/dist/lib/util/types.js +2 -0
  51. package/dist/lib/util/types.js.map +1 -0
  52. package/dist/lib/util/useScrollToAnchor.js +18 -12
  53. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  54. package/dist/vite/plugin-api.js +4 -1
  55. package/dist/vite/plugin-api.js.map +1 -1
  56. package/lib/{AuthenticationPlugin-Cij2tPWa.js → AuthenticationPlugin-Duy_R1TU.js} +3 -3
  57. package/lib/{AuthenticationPlugin-Cij2tPWa.js.map → AuthenticationPlugin-Duy_R1TU.js.map} +1 -1
  58. package/lib/{Markdown-DT5Rrq8_.js → Markdown-DIZ8nBVC.js} +742 -738
  59. package/lib/{Markdown-DT5Rrq8_.js.map → Markdown-DIZ8nBVC.js.map} +1 -1
  60. package/lib/{MdxPage-D2rD1vC4.js → MdxPage-JEdbfW-f.js} +42 -47
  61. package/lib/MdxPage-JEdbfW-f.js.map +1 -0
  62. package/lib/{OasProvider-DdEBf2qS.js → OasProvider-D1A10JeA.js} +4 -4
  63. package/lib/{OasProvider-DdEBf2qS.js.map → OasProvider-D1A10JeA.js.map} +1 -1
  64. package/lib/{OperationList-DT4-gm_S.js → OperationList-yOmYzMIp.js} +1128 -1112
  65. package/lib/OperationList-yOmYzMIp.js.map +1 -0
  66. package/lib/{Select-z1Lwl0-J.js → Select-fAYcJ0OU.js} +8 -8
  67. package/lib/{Select-z1Lwl0-J.js.map → Select-fAYcJ0OU.js.map} +1 -1
  68. package/lib/{SlotletProvider-D8OBnr77.js → SlotletProvider-BEwNY8q0.js} +4 -4
  69. package/lib/{SlotletProvider-D8OBnr77.js.map → SlotletProvider-BEwNY8q0.js.map} +1 -1
  70. package/lib/{chunk-HA7DTUK3-ZGg2W6yV.js → chunk-HA7DTUK3-C4gP41vD.js} +5 -5
  71. package/lib/{chunk-HA7DTUK3-ZGg2W6yV.js.map → chunk-HA7DTUK3-C4gP41vD.js.map} +1 -1
  72. package/lib/hook-Cge6LiTK.js +1483 -0
  73. package/lib/hook-Cge6LiTK.js.map +1 -0
  74. package/lib/{index-DdQSV2RF.js → index-B0y3fTg-.js} +261 -243
  75. package/lib/index-B0y3fTg-.js.map +1 -0
  76. package/lib/{mutation-_Z5C2wFZ.js → mutation-EChriCeF.js} +2 -2
  77. package/lib/{mutation-_Z5C2wFZ.js.map → mutation-EChriCeF.js.map} +1 -1
  78. package/lib/post-processors/traverse.js.map +1 -1
  79. package/lib/{useExposedProps-BslIn-FE.js → useExposedProps-B9qXJedG.js} +2 -2
  80. package/lib/{useExposedProps-BslIn-FE.js.map → useExposedProps-B9qXJedG.js.map} +1 -1
  81. package/lib/zudoku.auth-auth0.js +1 -1
  82. package/lib/zudoku.auth-clerk.js +59 -41
  83. package/lib/zudoku.auth-clerk.js.map +1 -1
  84. package/lib/zudoku.auth-openid.js +76 -73
  85. package/lib/zudoku.auth-openid.js.map +1 -1
  86. package/lib/zudoku.components.js +229 -215
  87. package/lib/zudoku.components.js.map +1 -1
  88. package/lib/zudoku.hooks.js +1 -1
  89. package/lib/zudoku.plugin-api-catalog.js +23 -24
  90. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  91. package/lib/zudoku.plugin-api-keys.js +15 -16
  92. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  93. package/lib/zudoku.plugin-custom-pages.js +2 -2
  94. package/lib/zudoku.plugin-markdown.js +1 -1
  95. package/lib/zudoku.plugin-openapi.js +5 -6
  96. package/lib/zudoku.plugin-openapi.js.map +1 -1
  97. package/lib/zudoku.plugin-redirect.js +1 -1
  98. package/lib/zudoku.plugin-search-pagefind.js +133 -98
  99. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  100. package/lib/zudoku.plugins.js.map +1 -1
  101. package/package.json +1 -1
  102. package/src/app/main.tsx +2 -0
  103. package/src/lib/authentication/authentication.ts +2 -0
  104. package/src/lib/authentication/providers/clerk.tsx +20 -0
  105. package/src/lib/authentication/providers/openid.tsx +6 -0
  106. package/src/lib/authentication/providers/supabase.tsx +6 -0
  107. package/src/lib/authentication/state.ts +1 -35
  108. package/src/lib/components/Layout.tsx +14 -2
  109. package/src/lib/core/ZudokuContext.ts +13 -6
  110. package/src/lib/core/plugins.ts +1 -1
  111. package/src/lib/plugins/markdown/MdxPage.tsx +1 -8
  112. package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
  113. package/src/lib/plugins/openapi/OperationList.tsx +1 -1
  114. package/src/lib/plugins/openapi/Sidecar.tsx +36 -7
  115. package/src/lib/plugins/openapi/interfaces.ts +29 -0
  116. package/src/lib/plugins/openapi/playground/Playground.tsx +1 -1
  117. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +2 -1
  118. package/src/lib/plugins/openapi/state.ts +36 -0
  119. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +26 -4
  120. package/src/lib/plugins/search-pagefind/ResultList.tsx +59 -47
  121. package/src/lib/plugins/search-pagefind/get-results.tsx +31 -10
  122. package/src/lib/util/traverse.ts +2 -6
  123. package/src/lib/util/types.ts +7 -0
  124. package/src/lib/util/useScrollToAnchor.ts +20 -12
  125. package/lib/MdxPage-D2rD1vC4.js.map +0 -1
  126. package/lib/OperationList-DT4-gm_S.js.map +0 -1
  127. package/lib/hook-DzQC8PzJ.js +0 -355
  128. package/lib/hook-DzQC8PzJ.js.map +0 -1
  129. package/lib/index-DdQSV2RF.js.map +0 -1
  130. package/lib/joinUrl-BjDooT-T.js +0 -1154
  131. package/lib/joinUrl-BjDooT-T.js.map +0 -1
@@ -7,6 +7,7 @@ import { type MdxComponentsType } from "../../lib/util/MdxComponents.js";
7
7
  declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
8
8
  protectedRoutes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
9
9
  basePath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10
+ canonicalUrlOrigin: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10
11
  cdnUrl: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodObject<{
11
12
  base: z.ZodOptional<z.ZodString>;
12
13
  media: z.ZodOptional<z.ZodString>;
@@ -583,7 +584,15 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
583
584
  }>>;
584
585
  maxResults: z.ZodOptional<z.ZodNumber>;
585
586
  maxSubResults: z.ZodOptional<z.ZodNumber>;
586
- transformResults: z.ZodOptional<z.ZodType<(result: import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment) => import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment | boolean | undefined | void, z.ZodTypeDef, (result: import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment) => import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment | boolean | undefined | void>>;
587
+ transformResults: z.ZodOptional<z.ZodType<(data: {
588
+ result: import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment;
589
+ auth: import("../../lib/authentication/state.js").AuthState;
590
+ context: import("../../index.js").ZudokuContext;
591
+ }) => import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment | boolean | undefined | void, z.ZodTypeDef, (data: {
592
+ result: import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment;
593
+ auth: import("../../lib/authentication/state.js").AuthState;
594
+ context: import("../../index.js").ZudokuContext;
595
+ }) => import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment | boolean | undefined | void>>;
587
596
  }, "strip", z.ZodTypeAny, {
588
597
  type: "pagefind";
589
598
  ranking?: {
@@ -594,7 +603,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
594
603
  } | undefined;
595
604
  maxResults?: number | undefined;
596
605
  maxSubResults?: number | undefined;
597
- transformResults?: ((result: import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment) => import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment | boolean | undefined | void) | undefined;
606
+ transformResults?: ((data: {
607
+ result: import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment;
608
+ auth: import("../../lib/authentication/state.js").AuthState;
609
+ context: import("../../index.js").ZudokuContext;
610
+ }) => import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment | boolean | undefined | void) | undefined;
598
611
  }, {
599
612
  type: "pagefind";
600
613
  ranking?: {
@@ -605,7 +618,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
605
618
  } | undefined;
606
619
  maxResults?: number | undefined;
607
620
  maxSubResults?: number | undefined;
608
- transformResults?: ((result: import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment) => import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment | boolean | undefined | void) | undefined;
621
+ transformResults?: ((data: {
622
+ result: import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment;
623
+ auth: import("../../lib/authentication/state.js").AuthState;
624
+ context: import("../../index.js").ZudokuContext;
625
+ }) => import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment | boolean | undefined | void) | undefined;
609
626
  }>]>>>;
610
627
  docs: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
611
628
  files: z.ZodString;
@@ -678,16 +695,19 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
678
695
  disablePlayground: z.ZodOptional<z.ZodBoolean>;
679
696
  showVersionSelect: z.ZodOptional<z.ZodEnum<["always", "if-available", "hide"]>>;
680
697
  expandAllTags: z.ZodOptional<z.ZodBoolean>;
698
+ transformExamples: z.ZodOptional<z.ZodType<import("../../lib/plugins/openapi/interfaces.js").transformExamples, z.ZodTypeDef, import("../../lib/plugins/openapi/interfaces.js").transformExamples>>;
681
699
  }, "strip", z.ZodTypeAny, {
682
700
  examplesLanguage?: string | undefined;
683
701
  disablePlayground?: boolean | undefined;
684
702
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
685
703
  expandAllTags?: boolean | undefined;
704
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
686
705
  }, {
687
706
  examplesLanguage?: string | undefined;
688
707
  disablePlayground?: boolean | undefined;
689
708
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
690
709
  expandAllTags?: boolean | undefined;
710
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
691
711
  }>>;
692
712
  }>, "strip", z.ZodTypeAny, {
693
713
  type: "url";
@@ -699,6 +719,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
699
719
  disablePlayground?: boolean | undefined;
700
720
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
701
721
  expandAllTags?: boolean | undefined;
722
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
702
723
  } | undefined;
703
724
  navigationId?: string | undefined;
704
725
  categories?: {
@@ -715,6 +736,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
715
736
  disablePlayground?: boolean | undefined;
716
737
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
717
738
  expandAllTags?: boolean | undefined;
739
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
718
740
  } | undefined;
719
741
  navigationId?: string | undefined;
720
742
  categories?: {
@@ -743,16 +765,19 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
743
765
  disablePlayground: z.ZodOptional<z.ZodBoolean>;
744
766
  showVersionSelect: z.ZodOptional<z.ZodEnum<["always", "if-available", "hide"]>>;
745
767
  expandAllTags: z.ZodOptional<z.ZodBoolean>;
768
+ transformExamples: z.ZodOptional<z.ZodType<import("../../lib/plugins/openapi/interfaces.js").transformExamples, z.ZodTypeDef, import("../../lib/plugins/openapi/interfaces.js").transformExamples>>;
746
769
  }, "strip", z.ZodTypeAny, {
747
770
  examplesLanguage?: string | undefined;
748
771
  disablePlayground?: boolean | undefined;
749
772
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
750
773
  expandAllTags?: boolean | undefined;
774
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
751
775
  }, {
752
776
  examplesLanguage?: string | undefined;
753
777
  disablePlayground?: boolean | undefined;
754
778
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
755
779
  expandAllTags?: boolean | undefined;
780
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
756
781
  }>>;
757
782
  }>, {
758
783
  postProcessors: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>], z.ZodUnknown>, z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodPromise<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>]>>, "many">>;
@@ -766,6 +791,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
766
791
  disablePlayground?: boolean | undefined;
767
792
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
768
793
  expandAllTags?: boolean | undefined;
794
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
769
795
  } | undefined;
770
796
  navigationId?: string | undefined;
771
797
  categories?: {
@@ -783,6 +809,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
783
809
  disablePlayground?: boolean | undefined;
784
810
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
785
811
  expandAllTags?: boolean | undefined;
812
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
786
813
  } | undefined;
787
814
  navigationId?: string | undefined;
788
815
  categories?: {
@@ -812,16 +839,19 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
812
839
  disablePlayground: z.ZodOptional<z.ZodBoolean>;
813
840
  showVersionSelect: z.ZodOptional<z.ZodEnum<["always", "if-available", "hide"]>>;
814
841
  expandAllTags: z.ZodOptional<z.ZodBoolean>;
842
+ transformExamples: z.ZodOptional<z.ZodType<import("../../lib/plugins/openapi/interfaces.js").transformExamples, z.ZodTypeDef, import("../../lib/plugins/openapi/interfaces.js").transformExamples>>;
815
843
  }, "strip", z.ZodTypeAny, {
816
844
  examplesLanguage?: string | undefined;
817
845
  disablePlayground?: boolean | undefined;
818
846
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
819
847
  expandAllTags?: boolean | undefined;
848
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
820
849
  }, {
821
850
  examplesLanguage?: string | undefined;
822
851
  disablePlayground?: boolean | undefined;
823
852
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
824
853
  expandAllTags?: boolean | undefined;
854
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
825
855
  }>>;
826
856
  }>, "strip", z.ZodTypeAny, {
827
857
  type: "raw";
@@ -833,6 +863,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
833
863
  disablePlayground?: boolean | undefined;
834
864
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
835
865
  expandAllTags?: boolean | undefined;
866
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
836
867
  } | undefined;
837
868
  navigationId?: string | undefined;
838
869
  categories?: {
@@ -849,6 +880,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
849
880
  disablePlayground?: boolean | undefined;
850
881
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
851
882
  expandAllTags?: boolean | undefined;
883
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
852
884
  } | undefined;
853
885
  navigationId?: string | undefined;
854
886
  categories?: {
@@ -877,16 +909,19 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
877
909
  disablePlayground: z.ZodOptional<z.ZodBoolean>;
878
910
  showVersionSelect: z.ZodOptional<z.ZodEnum<["always", "if-available", "hide"]>>;
879
911
  expandAllTags: z.ZodOptional<z.ZodBoolean>;
912
+ transformExamples: z.ZodOptional<z.ZodType<import("../../lib/plugins/openapi/interfaces.js").transformExamples, z.ZodTypeDef, import("../../lib/plugins/openapi/interfaces.js").transformExamples>>;
880
913
  }, "strip", z.ZodTypeAny, {
881
914
  examplesLanguage?: string | undefined;
882
915
  disablePlayground?: boolean | undefined;
883
916
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
884
917
  expandAllTags?: boolean | undefined;
918
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
885
919
  }, {
886
920
  examplesLanguage?: string | undefined;
887
921
  disablePlayground?: boolean | undefined;
888
922
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
889
923
  expandAllTags?: boolean | undefined;
924
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
890
925
  }>>;
891
926
  }>, "strip", z.ZodTypeAny, {
892
927
  type: "url";
@@ -898,6 +933,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
898
933
  disablePlayground?: boolean | undefined;
899
934
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
900
935
  expandAllTags?: boolean | undefined;
936
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
901
937
  } | undefined;
902
938
  navigationId?: string | undefined;
903
939
  categories?: {
@@ -914,6 +950,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
914
950
  disablePlayground?: boolean | undefined;
915
951
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
916
952
  expandAllTags?: boolean | undefined;
953
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
917
954
  } | undefined;
918
955
  navigationId?: string | undefined;
919
956
  categories?: {
@@ -942,16 +979,19 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
942
979
  disablePlayground: z.ZodOptional<z.ZodBoolean>;
943
980
  showVersionSelect: z.ZodOptional<z.ZodEnum<["always", "if-available", "hide"]>>;
944
981
  expandAllTags: z.ZodOptional<z.ZodBoolean>;
982
+ transformExamples: z.ZodOptional<z.ZodType<import("../../lib/plugins/openapi/interfaces.js").transformExamples, z.ZodTypeDef, import("../../lib/plugins/openapi/interfaces.js").transformExamples>>;
945
983
  }, "strip", z.ZodTypeAny, {
946
984
  examplesLanguage?: string | undefined;
947
985
  disablePlayground?: boolean | undefined;
948
986
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
949
987
  expandAllTags?: boolean | undefined;
988
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
950
989
  }, {
951
990
  examplesLanguage?: string | undefined;
952
991
  disablePlayground?: boolean | undefined;
953
992
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
954
993
  expandAllTags?: boolean | undefined;
994
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
955
995
  }>>;
956
996
  }>, {
957
997
  postProcessors: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>], z.ZodUnknown>, z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodPromise<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>]>>, "many">>;
@@ -965,6 +1005,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
965
1005
  disablePlayground?: boolean | undefined;
966
1006
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
967
1007
  expandAllTags?: boolean | undefined;
1008
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
968
1009
  } | undefined;
969
1010
  navigationId?: string | undefined;
970
1011
  categories?: {
@@ -982,6 +1023,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
982
1023
  disablePlayground?: boolean | undefined;
983
1024
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
984
1025
  expandAllTags?: boolean | undefined;
1026
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
985
1027
  } | undefined;
986
1028
  navigationId?: string | undefined;
987
1029
  categories?: {
@@ -1011,16 +1053,19 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1011
1053
  disablePlayground: z.ZodOptional<z.ZodBoolean>;
1012
1054
  showVersionSelect: z.ZodOptional<z.ZodEnum<["always", "if-available", "hide"]>>;
1013
1055
  expandAllTags: z.ZodOptional<z.ZodBoolean>;
1056
+ transformExamples: z.ZodOptional<z.ZodType<import("../../lib/plugins/openapi/interfaces.js").transformExamples, z.ZodTypeDef, import("../../lib/plugins/openapi/interfaces.js").transformExamples>>;
1014
1057
  }, "strip", z.ZodTypeAny, {
1015
1058
  examplesLanguage?: string | undefined;
1016
1059
  disablePlayground?: boolean | undefined;
1017
1060
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
1018
1061
  expandAllTags?: boolean | undefined;
1062
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
1019
1063
  }, {
1020
1064
  examplesLanguage?: string | undefined;
1021
1065
  disablePlayground?: boolean | undefined;
1022
1066
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
1023
1067
  expandAllTags?: boolean | undefined;
1068
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
1024
1069
  }>>;
1025
1070
  }>, "strip", z.ZodTypeAny, {
1026
1071
  type: "raw";
@@ -1032,6 +1077,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1032
1077
  disablePlayground?: boolean | undefined;
1033
1078
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
1034
1079
  expandAllTags?: boolean | undefined;
1080
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
1035
1081
  } | undefined;
1036
1082
  navigationId?: string | undefined;
1037
1083
  categories?: {
@@ -1048,6 +1094,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1048
1094
  disablePlayground?: boolean | undefined;
1049
1095
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
1050
1096
  expandAllTags?: boolean | undefined;
1097
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
1051
1098
  } | undefined;
1052
1099
  navigationId?: string | undefined;
1053
1100
  categories?: {
@@ -1181,16 +1228,19 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1181
1228
  disablePlayground: z.ZodOptional<z.ZodBoolean>;
1182
1229
  showVersionSelect: z.ZodOptional<z.ZodEnum<["always", "if-available", "hide"]>>;
1183
1230
  expandAllTags: z.ZodOptional<z.ZodBoolean>;
1231
+ transformExamples: z.ZodOptional<z.ZodType<import("../../lib/plugins/openapi/interfaces.js").transformExamples, z.ZodTypeDef, import("../../lib/plugins/openapi/interfaces.js").transformExamples>>;
1184
1232
  }, "strip", z.ZodTypeAny, {
1185
1233
  examplesLanguage?: string | undefined;
1186
1234
  disablePlayground?: boolean | undefined;
1187
1235
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
1188
1236
  expandAllTags?: boolean | undefined;
1237
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
1189
1238
  }, {
1190
1239
  examplesLanguage?: string | undefined;
1191
1240
  disablePlayground?: boolean | undefined;
1192
1241
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
1193
1242
  expandAllTags?: boolean | undefined;
1243
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
1194
1244
  }>;
1195
1245
  examplesLanguage: z.ZodOptional<z.ZodString>;
1196
1246
  }, "strip", z.ZodTypeAny, {
@@ -1199,6 +1249,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1199
1249
  disablePlayground?: boolean | undefined;
1200
1250
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
1201
1251
  expandAllTags?: boolean | undefined;
1252
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
1202
1253
  };
1203
1254
  examplesLanguage?: string | undefined;
1204
1255
  }, {
@@ -1207,6 +1258,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1207
1258
  disablePlayground?: boolean | undefined;
1208
1259
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
1209
1260
  expandAllTags?: boolean | undefined;
1261
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
1210
1262
  };
1211
1263
  examplesLanguage?: string | undefined;
1212
1264
  }>>;
@@ -1260,7 +1312,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1260
1312
  } | undefined;
1261
1313
  maxResults?: number | undefined;
1262
1314
  maxSubResults?: number | undefined;
1263
- transformResults?: ((result: import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment) => import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment | boolean | undefined | void) | undefined;
1315
+ transformResults?: ((data: {
1316
+ result: import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment;
1317
+ auth: import("../../lib/authentication/state.js").AuthState;
1318
+ context: import("../../index.js").ZudokuContext;
1319
+ }) => import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment | boolean | undefined | void) | undefined;
1264
1320
  } | undefined;
1265
1321
  plugins?: ZudokuPlugin[] | undefined;
1266
1322
  defaults?: {
@@ -1269,6 +1325,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1269
1325
  disablePlayground?: boolean | undefined;
1270
1326
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
1271
1327
  expandAllTags?: boolean | undefined;
1328
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
1272
1329
  };
1273
1330
  examplesLanguage?: string | undefined;
1274
1331
  } | undefined;
@@ -1396,6 +1453,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1396
1453
  } | undefined;
1397
1454
  protectedRoutes?: string[] | undefined;
1398
1455
  basePath?: string | undefined;
1456
+ canonicalUrlOrigin?: string | undefined;
1399
1457
  cdnUrl?: {
1400
1458
  base: string | undefined;
1401
1459
  media: string | undefined;
@@ -1446,6 +1504,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1446
1504
  disablePlayground?: boolean | undefined;
1447
1505
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
1448
1506
  expandAllTags?: boolean | undefined;
1507
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
1449
1508
  } | undefined;
1450
1509
  navigationId?: string | undefined;
1451
1510
  categories?: {
@@ -1462,6 +1521,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1462
1521
  disablePlayground?: boolean | undefined;
1463
1522
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
1464
1523
  expandAllTags?: boolean | undefined;
1524
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
1465
1525
  } | undefined;
1466
1526
  navigationId?: string | undefined;
1467
1527
  categories?: {
@@ -1479,6 +1539,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1479
1539
  disablePlayground?: boolean | undefined;
1480
1540
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
1481
1541
  expandAllTags?: boolean | undefined;
1542
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
1482
1543
  } | undefined;
1483
1544
  navigationId?: string | undefined;
1484
1545
  categories?: {
@@ -1495,6 +1556,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1495
1556
  disablePlayground?: boolean | undefined;
1496
1557
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
1497
1558
  expandAllTags?: boolean | undefined;
1559
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
1498
1560
  } | undefined;
1499
1561
  navigationId?: string | undefined;
1500
1562
  categories?: {
@@ -1511,6 +1573,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1511
1573
  disablePlayground?: boolean | undefined;
1512
1574
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
1513
1575
  expandAllTags?: boolean | undefined;
1576
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
1514
1577
  } | undefined;
1515
1578
  navigationId?: string | undefined;
1516
1579
  categories?: {
@@ -1528,6 +1591,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1528
1591
  disablePlayground?: boolean | undefined;
1529
1592
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
1530
1593
  expandAllTags?: boolean | undefined;
1594
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
1531
1595
  } | undefined;
1532
1596
  navigationId?: string | undefined;
1533
1597
  categories?: {
@@ -1595,7 +1659,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1595
1659
  } | undefined;
1596
1660
  maxResults?: number | undefined;
1597
1661
  maxSubResults?: number | undefined;
1598
- transformResults?: ((result: import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment) => import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment | boolean | undefined | void) | undefined;
1662
+ transformResults?: ((data: {
1663
+ result: import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment;
1664
+ auth: import("../../lib/authentication/state.js").AuthState;
1665
+ context: import("../../index.js").ZudokuContext;
1666
+ }) => import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment | boolean | undefined | void) | undefined;
1599
1667
  } | undefined;
1600
1668
  plugins?: ZudokuPlugin[] | undefined;
1601
1669
  defaults?: {
@@ -1604,6 +1672,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1604
1672
  disablePlayground?: boolean | undefined;
1605
1673
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
1606
1674
  expandAllTags?: boolean | undefined;
1675
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
1607
1676
  };
1608
1677
  examplesLanguage?: string | undefined;
1609
1678
  } | undefined;
@@ -1731,6 +1800,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1731
1800
  } | undefined;
1732
1801
  protectedRoutes?: string[] | undefined;
1733
1802
  basePath?: string | undefined;
1803
+ canonicalUrlOrigin?: string | undefined;
1734
1804
  cdnUrl?: string | {
1735
1805
  base?: string | undefined;
1736
1806
  media?: string | undefined;
@@ -1781,6 +1851,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1781
1851
  disablePlayground?: boolean | undefined;
1782
1852
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
1783
1853
  expandAllTags?: boolean | undefined;
1854
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
1784
1855
  } | undefined;
1785
1856
  navigationId?: string | undefined;
1786
1857
  categories?: {
@@ -1797,6 +1868,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1797
1868
  disablePlayground?: boolean | undefined;
1798
1869
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
1799
1870
  expandAllTags?: boolean | undefined;
1871
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
1800
1872
  } | undefined;
1801
1873
  navigationId?: string | undefined;
1802
1874
  categories?: {
@@ -1814,6 +1886,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1814
1886
  disablePlayground?: boolean | undefined;
1815
1887
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
1816
1888
  expandAllTags?: boolean | undefined;
1889
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
1817
1890
  } | undefined;
1818
1891
  navigationId?: string | undefined;
1819
1892
  categories?: {
@@ -1830,6 +1903,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1830
1903
  disablePlayground?: boolean | undefined;
1831
1904
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
1832
1905
  expandAllTags?: boolean | undefined;
1906
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
1833
1907
  } | undefined;
1834
1908
  navigationId?: string | undefined;
1835
1909
  categories?: {
@@ -1846,6 +1920,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1846
1920
  disablePlayground?: boolean | undefined;
1847
1921
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
1848
1922
  expandAllTags?: boolean | undefined;
1923
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
1849
1924
  } | undefined;
1850
1925
  navigationId?: string | undefined;
1851
1926
  categories?: {
@@ -1863,6 +1938,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1863
1938
  disablePlayground?: boolean | undefined;
1864
1939
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
1865
1940
  expandAllTags?: boolean | undefined;
1941
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
1866
1942
  } | undefined;
1867
1943
  navigationId?: string | undefined;
1868
1944
  categories?: {
@@ -1930,7 +2006,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1930
2006
  } | undefined;
1931
2007
  maxResults?: number | undefined;
1932
2008
  maxSubResults?: number | undefined;
1933
- transformResults?: ((result: import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment) => import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment | boolean | undefined | void) | undefined;
2009
+ transformResults?: ((data: {
2010
+ result: import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment;
2011
+ auth: import("../../lib/authentication/state.js").AuthState;
2012
+ context: import("../../index.js").ZudokuContext;
2013
+ }) => import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment | boolean | undefined | void) | undefined;
1934
2014
  } | undefined;
1935
2015
  plugins?: ZudokuPlugin[] | undefined;
1936
2016
  defaults?: {
@@ -1939,6 +2019,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1939
2019
  disablePlayground?: boolean | undefined;
1940
2020
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
1941
2021
  expandAllTags?: boolean | undefined;
2022
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
1942
2023
  };
1943
2024
  examplesLanguage?: string | undefined;
1944
2025
  } | undefined;
@@ -2066,6 +2147,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
2066
2147
  } | undefined;
2067
2148
  protectedRoutes?: string[] | undefined;
2068
2149
  basePath?: string | undefined;
2150
+ canonicalUrlOrigin?: string | undefined;
2069
2151
  cdnUrl?: {
2070
2152
  base: string | undefined;
2071
2153
  media: string | undefined;
@@ -2116,6 +2198,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
2116
2198
  disablePlayground?: boolean | undefined;
2117
2199
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
2118
2200
  expandAllTags?: boolean | undefined;
2201
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
2119
2202
  } | undefined;
2120
2203
  navigationId?: string | undefined;
2121
2204
  categories?: {
@@ -2132,6 +2215,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
2132
2215
  disablePlayground?: boolean | undefined;
2133
2216
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
2134
2217
  expandAllTags?: boolean | undefined;
2218
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
2135
2219
  } | undefined;
2136
2220
  navigationId?: string | undefined;
2137
2221
  categories?: {
@@ -2149,6 +2233,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
2149
2233
  disablePlayground?: boolean | undefined;
2150
2234
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
2151
2235
  expandAllTags?: boolean | undefined;
2236
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
2152
2237
  } | undefined;
2153
2238
  navigationId?: string | undefined;
2154
2239
  categories?: {
@@ -2165,6 +2250,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
2165
2250
  disablePlayground?: boolean | undefined;
2166
2251
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
2167
2252
  expandAllTags?: boolean | undefined;
2253
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
2168
2254
  } | undefined;
2169
2255
  navigationId?: string | undefined;
2170
2256
  categories?: {
@@ -2181,6 +2267,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
2181
2267
  disablePlayground?: boolean | undefined;
2182
2268
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
2183
2269
  expandAllTags?: boolean | undefined;
2270
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
2184
2271
  } | undefined;
2185
2272
  navigationId?: string | undefined;
2186
2273
  categories?: {
@@ -2198,6 +2285,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
2198
2285
  disablePlayground?: boolean | undefined;
2199
2286
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
2200
2287
  expandAllTags?: boolean | undefined;
2288
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
2201
2289
  } | undefined;
2202
2290
  navigationId?: string | undefined;
2203
2291
  categories?: {
@@ -2265,7 +2353,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
2265
2353
  } | undefined;
2266
2354
  maxResults?: number | undefined;
2267
2355
  maxSubResults?: number | undefined;
2268
- transformResults?: ((result: import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment) => import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment | boolean | undefined | void) | undefined;
2356
+ transformResults?: ((data: {
2357
+ result: import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment;
2358
+ auth: import("../../lib/authentication/state.js").AuthState;
2359
+ context: import("../../index.js").ZudokuContext;
2360
+ }) => import("../../lib/plugins/search-pagefind/types.js").PagefindSearchFragment | boolean | undefined | void) | undefined;
2269
2361
  } | undefined;
2270
2362
  plugins?: ZudokuPlugin[] | undefined;
2271
2363
  defaults?: {
@@ -2274,6 +2366,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
2274
2366
  disablePlayground?: boolean | undefined;
2275
2367
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
2276
2368
  expandAllTags?: boolean | undefined;
2369
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
2277
2370
  };
2278
2371
  examplesLanguage?: string | undefined;
2279
2372
  } | undefined;
@@ -2401,6 +2494,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
2401
2494
  } | undefined;
2402
2495
  protectedRoutes?: string[] | undefined;
2403
2496
  basePath?: string | undefined;
2497
+ canonicalUrlOrigin?: string | undefined;
2404
2498
  cdnUrl?: string | {
2405
2499
  base?: string | undefined;
2406
2500
  media?: string | undefined;
@@ -2451,6 +2545,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
2451
2545
  disablePlayground?: boolean | undefined;
2452
2546
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
2453
2547
  expandAllTags?: boolean | undefined;
2548
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
2454
2549
  } | undefined;
2455
2550
  navigationId?: string | undefined;
2456
2551
  categories?: {
@@ -2467,6 +2562,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
2467
2562
  disablePlayground?: boolean | undefined;
2468
2563
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
2469
2564
  expandAllTags?: boolean | undefined;
2565
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
2470
2566
  } | undefined;
2471
2567
  navigationId?: string | undefined;
2472
2568
  categories?: {
@@ -2484,6 +2580,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
2484
2580
  disablePlayground?: boolean | undefined;
2485
2581
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
2486
2582
  expandAllTags?: boolean | undefined;
2583
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
2487
2584
  } | undefined;
2488
2585
  navigationId?: string | undefined;
2489
2586
  categories?: {
@@ -2500,6 +2597,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
2500
2597
  disablePlayground?: boolean | undefined;
2501
2598
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
2502
2599
  expandAllTags?: boolean | undefined;
2600
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
2503
2601
  } | undefined;
2504
2602
  navigationId?: string | undefined;
2505
2603
  categories?: {
@@ -2516,6 +2614,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
2516
2614
  disablePlayground?: boolean | undefined;
2517
2615
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
2518
2616
  expandAllTags?: boolean | undefined;
2617
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
2519
2618
  } | undefined;
2520
2619
  navigationId?: string | undefined;
2521
2620
  categories?: {
@@ -2533,6 +2632,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
2533
2632
  disablePlayground?: boolean | undefined;
2534
2633
  showVersionSelect?: "hide" | "always" | "if-available" | undefined;
2535
2634
  expandAllTags?: boolean | undefined;
2635
+ transformExamples?: import("../../lib/plugins/openapi/interfaces.js").transformExamples | undefined;
2536
2636
  } | undefined;
2537
2637
  navigationId?: string | undefined;
2538
2638
  categories?: {
@@ -10,6 +10,7 @@ export interface AuthenticationProvider {
10
10
  getAccessToken(): Promise<string>;
11
11
  getAuthenticationPlugin?(): ZudokuPlugin;
12
12
  onPageLoad?(): void;
13
+ signRequest(request: Request): Promise<Request>;
13
14
  }
14
15
  export interface AuthenticationProviderInitializer<TConfig> {
15
16
  (config: TConfig): AuthenticationProvider;
@@ -24,6 +24,9 @@ class ClerkAuthPlugin extends AuthenticationPlugin {
24
24
  emailVerified: verifiedEmail !== undefined,
25
25
  pictureUrl: clerk.session.user.imageUrl,
26
26
  },
27
+ providerData: {
28
+ user: clerk.session.user,
29
+ },
27
30
  });
28
31
  }
29
32
  else {
@@ -56,6 +59,15 @@ const clerkAuth = ({ clerkPubKey, redirectToAfterSignOut = "/", redirectToAfterS
56
59
  emailVerified: verifiedEmail !== undefined,
57
60
  pictureUrl: clerkApi.user.imageUrl,
58
61
  },
62
+ providerData: {
63
+ user: {
64
+ publicMetadata: clerkApi.user.publicMetadata,
65
+ id: clerkApi.user.id,
66
+ emailAddresses: clerkApi.user.emailAddresses,
67
+ imageUrl: clerkApi.user.imageUrl,
68
+ fullName: clerkApi.user.fullName,
69
+ },
70
+ },
59
71
  });
60
72
  }
61
73
  return clerkApi;
@@ -71,8 +83,15 @@ const clerkAuth = ({ clerkPubKey, redirectToAfterSignOut = "/", redirectToAfterS
71
83
  }
72
84
  return response;
73
85
  }
86
+ async function signRequest(request) {
87
+ const response = await getAccessToken();
88
+ request.headers.set("Authorization", `Bearer ${response}`);
89
+ return request;
90
+ }
74
91
  return {
92
+ clerk: clerkApi,
75
93
  getAccessToken,
94
+ signRequest,
76
95
  signOut: async () => {
77
96
  await ensureLoaded;
78
97
  await clerkApi?.signOut({