cici 0.2.0 → 0.3.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/.next/BUILD_ID +1 -0
- package/.next/app-build-manifest.json +122 -0
- package/.next/app-path-routes-manifest.json +1 -0
- package/.next/build-manifest.json +32 -0
- package/.next/export-marker.json +1 -0
- package/.next/images-manifest.json +1 -0
- package/.next/next-minimal-server.js.nft.json +1 -0
- package/.next/next-server.js.nft.json +1 -0
- package/.next/package.json +1 -0
- package/.next/prerender-manifest.json +1 -0
- package/.next/react-loadable-manifest.json +1886 -0
- package/.next/required-server-files.json +1 -0
- package/.next/routes-manifest.json +1 -0
- package/.next/server/app/_not-found/page.js +1 -0
- package/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
- package/.next/server/app/api/asset/[...path]/route.js +1 -0
- package/.next/server/app/api/asset/[...path]/route.js.nft.json +1 -0
- package/.next/server/app/api/auth/[...nextauth]/route.js +1 -0
- package/.next/server/app/api/auth/[...nextauth]/route.js.nft.json +1 -0
- package/.next/server/app/api/blog/[id]/highlights/[hid]/comments/[cid]/reactions/route.js +1 -0
- package/.next/server/app/api/blog/[id]/highlights/[hid]/comments/[cid]/reactions/route.js.nft.json +1 -0
- package/.next/server/app/api/blog/[id]/highlights/[hid]/comments/[cid]/route.js +1 -0
- package/.next/server/app/api/blog/[id]/highlights/[hid]/comments/[cid]/route.js.nft.json +1 -0
- package/.next/server/app/api/blog/[id]/highlights/[hid]/replies/route.js +1 -0
- package/.next/server/app/api/blog/[id]/highlights/[hid]/replies/route.js.nft.json +1 -0
- package/.next/server/app/api/blog/[id]/highlights/[hid]/resolve/route.js +1 -0
- package/.next/server/app/api/blog/[id]/highlights/[hid]/resolve/route.js.nft.json +1 -0
- package/.next/server/app/api/blog/[id]/highlights/[hid]/route.js +1 -0
- package/.next/server/app/api/blog/[id]/highlights/[hid]/route.js.nft.json +1 -0
- package/.next/server/app/api/blog/[id]/highlights/route.js +1 -0
- package/.next/server/app/api/blog/[id]/highlights/route.js.nft.json +1 -0
- package/.next/server/app/api/graphql/route.js +140 -0
- package/.next/server/app/api/graphql/route.js.nft.json +1 -0
- package/.next/server/app/api/mile/prompts/route.js +230 -0
- package/.next/server/app/api/mile/prompts/route.js.nft.json +1 -0
- package/.next/server/app/api/mile/prompts.body +1 -0
- package/.next/server/app/api/mile/prompts.meta +1 -0
- package/.next/server/app/api/upload/route.js +1 -0
- package/.next/server/app/api/upload/route.js.nft.json +1 -0
- package/.next/server/app/api/webhooks/notification/route.js +1 -0
- package/.next/server/app/api/webhooks/notification/route.js.nft.json +1 -0
- package/.next/server/app/atom.xml/route.js +34 -0
- package/.next/server/app/atom.xml/route.js.nft.json +1 -0
- package/.next/server/app/atom.xml.body +15 -0
- package/.next/server/app/atom.xml.meta +1 -0
- package/.next/server/app/blog/[id]/page.js +30 -0
- package/.next/server/app/blog/[id]/page.js.nft.json +1 -0
- package/.next/server/app/blog/[id]/page_client-reference-manifest.js +1 -0
- package/.next/server/app/blog/page.js +1 -0
- package/.next/server/app/blog/page.js.nft.json +1 -0
- package/.next/server/app/blog/page_client-reference-manifest.js +1 -0
- package/.next/server/app/editor/page.js +45 -0
- package/.next/server/app/editor/page.js.nft.json +1 -0
- package/.next/server/app/editor/page_client-reference-manifest.js +1 -0
- package/.next/server/app/favicon.ico/route.js +1 -0
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -0
- package/.next/server/app/favicon.ico.body +0 -0
- package/.next/server/app/favicon.ico.meta +1 -0
- package/.next/server/app/login/page.js +1 -0
- package/.next/server/app/login/page.js.nft.json +1 -0
- package/.next/server/app/login/page_client-reference-manifest.js +1 -0
- package/.next/server/app/memos/page.js +26 -0
- package/.next/server/app/memos/page.js.nft.json +1 -0
- package/.next/server/app/memos/page_client-reference-manifest.js +1 -0
- package/.next/server/app/page.js +1 -0
- package/.next/server/app/page.js.nft.json +1 -0
- package/.next/server/app/page_client-reference-manifest.js +1 -0
- package/.next/server/app/robots.txt/route.js +1 -0
- package/.next/server/app/robots.txt/route.js.nft.json +1 -0
- package/.next/server/app/robots.txt.body +8 -0
- package/.next/server/app/robots.txt.meta +1 -0
- package/.next/server/app/rss.xml/route.js +18 -0
- package/.next/server/app/rss.xml/route.js.nft.json +1 -0
- package/.next/server/app/rss.xml.body +12 -0
- package/.next/server/app/rss.xml.meta +1 -0
- package/.next/server/app/sitemap.xml/route.js +76 -0
- package/.next/server/app/sitemap.xml/route.js.nft.json +1 -0
- package/.next/server/app/sitemap.xml.body +33 -0
- package/.next/server/app/sitemap.xml.meta +1 -0
- package/.next/server/app/unavailable/page.js +1 -0
- package/.next/server/app/unavailable/page.js.nft.json +1 -0
- package/.next/server/app/unavailable/page_client-reference-manifest.js +1 -0
- package/.next/server/app-paths-manifest.json +27 -0
- package/.next/server/chunks/1230.js +1 -0
- package/.next/server/chunks/1446.js +1 -0
- package/.next/server/chunks/1450.js +1 -0
- package/.next/server/chunks/1536.js +1 -0
- package/.next/server/chunks/1615.js +1 -0
- package/.next/server/chunks/1682.js +6 -0
- package/.next/server/chunks/179.js +14 -0
- package/.next/server/chunks/2448.js +34 -0
- package/.next/server/chunks/2481.js +1 -0
- package/.next/server/chunks/2518.js +12 -0
- package/.next/server/chunks/2581.js +1 -0
- package/.next/server/chunks/2878.js +63 -0
- package/.next/server/chunks/3125.js +1 -0
- package/.next/server/chunks/330.js +1 -0
- package/.next/server/chunks/3381.js +1 -0
- package/.next/server/chunks/3464.js +1 -0
- package/.next/server/chunks/3573.js +1 -0
- package/.next/server/chunks/3607.js +14 -0
- package/.next/server/chunks/3844.js +1 -0
- package/.next/server/chunks/4536.js +1 -0
- package/.next/server/chunks/4742.js +1 -0
- package/.next/server/chunks/4857.js +1 -0
- package/.next/server/chunks/6621.js +1 -0
- package/.next/server/chunks/7070.js +12 -0
- package/.next/server/chunks/719.js +1 -0
- package/.next/server/chunks/7667.js +1 -0
- package/.next/server/chunks/7674.js +1 -0
- package/.next/server/chunks/7937.js +1 -0
- package/.next/server/chunks/7990.js +1 -0
- package/.next/server/chunks/8038.js +1 -0
- package/.next/server/chunks/8195.js +1 -0
- package/.next/server/chunks/8198.js +1 -0
- package/.next/server/chunks/8224.js +1 -0
- package/.next/server/chunks/8398.js +1 -0
- package/.next/server/chunks/8948.js +2 -0
- package/.next/server/chunks/9600.js +1 -0
- package/.next/server/chunks/9627.js +1 -0
- package/.next/server/chunks/9715.js +1 -0
- package/.next/server/chunks/9772.js +2 -0
- package/.next/server/chunks/font-manifest.json +1 -0
- package/.next/server/font-manifest.json +1 -0
- package/.next/server/functions-config-manifest.json +1 -0
- package/.next/server/interception-route-rewrite-manifest.js +1 -0
- package/.next/server/middleware-build-manifest.js +1 -0
- package/.next/server/middleware-manifest.json +6 -0
- package/.next/server/middleware-react-loadable-manifest.js +1 -0
- package/.next/server/next-font-manifest.js +1 -0
- package/.next/server/next-font-manifest.json +1 -0
- package/.next/server/pages/500.html +1 -0
- package/.next/server/pages/_app.js +1 -0
- package/.next/server/pages/_app.js.nft.json +1 -0
- package/.next/server/pages/_document.js +1 -0
- package/.next/server/pages/_document.js.nft.json +1 -0
- package/.next/server/pages/_error.js +1 -0
- package/.next/server/pages/_error.js.nft.json +1 -0
- package/.next/server/pages-manifest.json +1 -0
- package/.next/server/server-reference-manifest.js +1 -0
- package/.next/server/server-reference-manifest.json +1 -0
- package/.next/server/webpack-runtime.js +1 -0
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-path-routes-manifest.json +1 -1
- package/.next/standalone/.next/build-manifest.json +2 -2
- package/.next/standalone/.next/prerender-manifest.json +1 -1
- package/.next/standalone/.next/server/app/api/mile/prompts.body +1 -1
- package/.next/standalone/.next/server/app/atom.xml.body +1 -1
- package/.next/standalone/.next/server/app/rss.xml.body +1 -1
- package/.next/standalone/.next/server/app/sitemap.xml.body +5 -5
- package/.next/standalone/.next/server/app-paths-manifest.json +3 -3
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/package.json +5 -4
- package/.next/static/PDn4f_-4CIbfG8EmueowG/_buildManifest.js +1 -0
- package/.next/static/PDn4f_-4CIbfG8EmueowG/_ssgManifest.js +1 -0
- package/.next/static/chunks/0e5ce63c-dc8fe6cd5df6dc6f.js +1 -0
- package/.next/static/chunks/0e762574-561b753e40bf5566.js +1 -0
- package/.next/static/chunks/117-70c87e31cd233c14.js +2 -0
- package/.next/static/chunks/152-16409649f7f42f9f.js +1 -0
- package/.next/static/chunks/153-f9c1aae3150e3029.js +1 -0
- package/.next/static/chunks/164-27f8b4187a29c395.js +1 -0
- package/.next/static/chunks/306-8d9c9a07b04a69f4.js +1 -0
- package/.next/static/chunks/343-ef3404804cc77cf3.js +1 -0
- package/.next/static/chunks/37-4aae6f4051a21b05.js +1 -0
- package/.next/static/chunks/479ba886-f76cebda33235b4d.js +1 -0
- package/.next/static/chunks/586-51f7e768b82803f6.js +1 -0
- package/.next/static/chunks/654-13e1845df8edb304.js +1 -0
- package/.next/static/chunks/767-2ec5d3ea9fe43cfa.js +1 -0
- package/.next/static/chunks/789-9810818d7be29598.js +1 -0
- package/.next/static/chunks/795d4814-090707ad3f792458.js +1 -0
- package/.next/static/chunks/878-b71984a1ef1b61e8.js +1 -0
- package/.next/static/chunks/8e1d74a4-f0365ca0a1823520.js +1 -0
- package/.next/static/chunks/961-29616c8a08e9f439.js +1 -0
- package/.next/static/chunks/972-774fbff93f73f32d.js +1 -0
- package/.next/static/chunks/app/_not-found/page-3061d7e79b77cf51.js +1 -0
- package/.next/static/chunks/app/blog/[id]/page-1fc779790ce384a8.js +1 -0
- package/.next/static/chunks/app/blog/page-096c29c6f69ebc33.js +1 -0
- package/.next/static/chunks/app/editor/page-f387899e39bc5e66.js +1 -0
- package/.next/static/chunks/app/layout-3439dc235234d73d.js +1 -0
- package/.next/static/chunks/app/login/page-6b91892f0e29c5e9.js +1 -0
- package/.next/static/chunks/app/memos/page-1b33cb7e1f301ba0.js +1 -0
- package/.next/static/chunks/app/page-f7dabeade6df80fd.js +1 -0
- package/.next/static/chunks/app/unavailable/page-c7774081778f08fc.js +1 -0
- package/.next/static/chunks/c916193b-16ee67ea0eb0c9df.js +1 -0
- package/.next/static/chunks/d3ac728e-709e52b22b85fd0a.js +1 -0
- package/.next/static/chunks/ee560e2c-0aeb447bc68f09f5.js +1 -0
- package/.next/static/chunks/fd9d1056-a4afdface6e53879.js +1 -0
- package/.next/static/chunks/framework-00a8ba1a63cfdc9e.js +1 -0
- package/.next/static/chunks/main-530e55a5659ae7e4.js +1 -0
- package/.next/static/chunks/main-app-838433dc18720d83.js +1 -0
- package/.next/static/chunks/pages/_app-15e2daefa259f0b5.js +1 -0
- package/.next/static/chunks/pages/_error-28b803cb2479b966.js +1 -0
- package/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/.next/static/chunks/webpack-a3d722a538b58757.js +1 -0
- package/.next/static/css/3864b451a61e4546.css +1 -0
- package/.next/static/css/67e4cfd62ab3f75c.css +1 -0
- package/.next/static/css/bf9d0ede562bd061.css +3 -0
- package/.next/static/media/04b170fa1114a606-s.woff2 +0 -0
- package/.next/static/media/08e5276c49c9ea3c-s.woff2 +0 -0
- package/.next/static/media/095b3ef40b322df1-s.woff2 +0 -0
- package/.next/static/media/0d843c40cdb24da5-s.woff2 +0 -0
- package/.next/static/media/16198ffb9c9fdd71-s.woff2 +0 -0
- package/.next/static/media/185e1e5dfa43e25f-s.woff2 +0 -0
- package/.next/static/media/1cfb11966f8bf838-s.woff2 +0 -0
- package/.next/static/media/1f4ef3a7563c157c-s.woff2 +0 -0
- package/.next/static/media/207ad64b019bcdef-s.woff2 +0 -0
- package/.next/static/media/21f0145a081cb2c8-s.woff2 +0 -0
- package/.next/static/media/25169183b7610496-s.woff2 +0 -0
- package/.next/static/media/2c913da5dc1da2ce-s.woff2 +0 -0
- package/.next/static/media/2d7ca78015d280d1-s.woff2 +0 -0
- package/.next/static/media/32be0b7a9127e345-s.woff2 +0 -0
- package/.next/static/media/33a4c9c744d0f9cd-s.woff2 +0 -0
- package/.next/static/media/3579da1a17de9863-s.woff2 +0 -0
- package/.next/static/media/36524af73d313f3b-s.woff2 +0 -0
- package/.next/static/media/3683934951fcdfff-s.woff2 +0 -0
- package/.next/static/media/3a3a2937d60ce37f-s.woff2 +0 -0
- package/.next/static/media/3e2c1db9f0de322f-s.woff2 +0 -0
- package/.next/static/media/3f282b8fe3ef7004-s.woff2 +0 -0
- package/.next/static/media/4294bde93a0ebb03-s.woff2 +0 -0
- package/.next/static/media/4cb92749e68500bf-s.woff2 +0 -0
- package/.next/static/media/4d3ec3b19c6bf06c-s.woff2 +0 -0
- package/.next/static/media/4eaaaae34a570973-s.woff2 +0 -0
- package/.next/static/media/4f45b9473df2758b-s.woff2 +0 -0
- package/.next/static/media/59769944ee073575-s.woff2 +0 -0
- package/.next/static/media/5bca2cb7d28055ae-s.woff2 +0 -0
- package/.next/static/media/5d217fec32e2068e-s.woff2 +0 -0
- package/.next/static/media/5f46c2de3a30070d-s.woff2 +0 -0
- package/.next/static/media/651d2e07f2cec067-s.woff2 +0 -0
- package/.next/static/media/684008be259a59c6-s.woff2 +0 -0
- package/.next/static/media/6858bbe75ab53fba-s.woff2 +0 -0
- package/.next/static/media/6cbcf0df7f219406-s.woff2 +0 -0
- package/.next/static/media/6d92d05365182413-s.woff2 +0 -0
- package/.next/static/media/7470b994d8569922-s.woff2 +0 -0
- package/.next/static/media/74e7e1e3fdad08dd-s.woff2 +0 -0
- package/.next/static/media/77901e7a9559d10c-s.woff2 +0 -0
- package/.next/static/media/796fab757a0e6146-s.woff2 +0 -0
- package/.next/static/media/7a830ebca9fe9db7-s.woff2 +0 -0
- package/.next/static/media/7bef3958b14cb6e3-s.woff2 +0 -0
- package/.next/static/media/81eb003b78a42a7b-s.woff2 +0 -0
- package/.next/static/media/84057adca98c0827-s.woff2 +0 -0
- package/.next/static/media/84a87fc9f232641e-s.woff2 +0 -0
- package/.next/static/media/84efce35a48f395c-s.woff2 +0 -0
- package/.next/static/media/872bfc82854f88b2-s.woff2 +0 -0
- package/.next/static/media/878380e8db69cb31-s.woff2 +0 -0
- package/.next/static/media/89c333b5a8239870-s.woff2 +0 -0
- package/.next/static/media/8a2e82a5f6677757-s.woff2 +0 -0
- package/.next/static/media/8cb8df5532e281af-s.woff2 +0 -0
- package/.next/static/media/8efbe4984052b206-s.woff2 +0 -0
- package/.next/static/media/8f2ab7576a12de97-s.woff2 +0 -0
- package/.next/static/media/905b23b26fa2645b-s.woff2 +0 -0
- package/.next/static/media/91fb5c9b9b43e9ec-s.woff2 +0 -0
- package/.next/static/media/92079ce87aa6c00d-s.woff2 +0 -0
- package/.next/static/media/9d87bcf0c05a83d6-s.p.woff2 +0 -0
- package/.next/static/media/9e9c82ad03b7dfa5-s.woff2 +0 -0
- package/.next/static/media/KaTeX_AMS-Regular.1608a09b.woff +0 -0
- package/.next/static/media/KaTeX_AMS-Regular.4aafdb68.ttf +0 -0
- package/.next/static/media/KaTeX_AMS-Regular.a79f1c31.woff2 +0 -0
- package/.next/static/media/KaTeX_Caligraphic-Bold.b6770918.woff +0 -0
- package/.next/static/media/KaTeX_Caligraphic-Bold.cce5b8ec.ttf +0 -0
- package/.next/static/media/KaTeX_Caligraphic-Bold.ec17d132.woff2 +0 -0
- package/.next/static/media/KaTeX_Caligraphic-Regular.07ef19e7.ttf +0 -0
- package/.next/static/media/KaTeX_Caligraphic-Regular.55fac258.woff2 +0 -0
- package/.next/static/media/KaTeX_Caligraphic-Regular.dad44a7f.woff +0 -0
- package/.next/static/media/KaTeX_Fraktur-Bold.9f256b85.woff +0 -0
- package/.next/static/media/KaTeX_Fraktur-Bold.b18f59e1.ttf +0 -0
- package/.next/static/media/KaTeX_Fraktur-Bold.d42a5579.woff2 +0 -0
- package/.next/static/media/KaTeX_Fraktur-Regular.7c187121.woff +0 -0
- package/.next/static/media/KaTeX_Fraktur-Regular.d3c882a6.woff2 +0 -0
- package/.next/static/media/KaTeX_Fraktur-Regular.ed38e79f.ttf +0 -0
- package/.next/static/media/KaTeX_Main-Bold.b74a1a8b.ttf +0 -0
- package/.next/static/media/KaTeX_Main-Bold.c3fb5ac2.woff2 +0 -0
- package/.next/static/media/KaTeX_Main-Bold.d181c465.woff +0 -0
- package/.next/static/media/KaTeX_Main-BoldItalic.6f2bb1df.woff2 +0 -0
- package/.next/static/media/KaTeX_Main-BoldItalic.70d8b0a5.ttf +0 -0
- package/.next/static/media/KaTeX_Main-BoldItalic.e3f82f9d.woff +0 -0
- package/.next/static/media/KaTeX_Main-Italic.47373d1e.ttf +0 -0
- package/.next/static/media/KaTeX_Main-Italic.8916142b.woff2 +0 -0
- package/.next/static/media/KaTeX_Main-Italic.9024d815.woff +0 -0
- package/.next/static/media/KaTeX_Main-Regular.0462f03b.woff2 +0 -0
- package/.next/static/media/KaTeX_Main-Regular.7f51fe03.woff +0 -0
- package/.next/static/media/KaTeX_Main-Regular.b7f8fe9b.ttf +0 -0
- package/.next/static/media/KaTeX_Math-BoldItalic.572d331f.woff2 +0 -0
- package/.next/static/media/KaTeX_Math-BoldItalic.a879cf83.ttf +0 -0
- package/.next/static/media/KaTeX_Math-BoldItalic.f1035d8d.woff +0 -0
- package/.next/static/media/KaTeX_Math-Italic.5295ba48.woff +0 -0
- package/.next/static/media/KaTeX_Math-Italic.939bc644.ttf +0 -0
- package/.next/static/media/KaTeX_Math-Italic.f28c23ac.woff2 +0 -0
- package/.next/static/media/KaTeX_SansSerif-Bold.8c5b5494.woff2 +0 -0
- package/.next/static/media/KaTeX_SansSerif-Bold.94e1e8dc.ttf +0 -0
- package/.next/static/media/KaTeX_SansSerif-Bold.bf59d231.woff +0 -0
- package/.next/static/media/KaTeX_SansSerif-Italic.3b1e59b3.woff2 +0 -0
- package/.next/static/media/KaTeX_SansSerif-Italic.7c9bc82b.woff +0 -0
- package/.next/static/media/KaTeX_SansSerif-Italic.b4c20c84.ttf +0 -0
- package/.next/static/media/KaTeX_SansSerif-Regular.74048478.woff +0 -0
- package/.next/static/media/KaTeX_SansSerif-Regular.ba21ed5f.woff2 +0 -0
- package/.next/static/media/KaTeX_SansSerif-Regular.d4d7ba48.ttf +0 -0
- package/.next/static/media/KaTeX_Script-Regular.03e9641d.woff2 +0 -0
- package/.next/static/media/KaTeX_Script-Regular.07505710.woff +0 -0
- package/.next/static/media/KaTeX_Script-Regular.fe9cbbe1.ttf +0 -0
- package/.next/static/media/KaTeX_Size1-Regular.e1e279cb.woff +0 -0
- package/.next/static/media/KaTeX_Size1-Regular.eae34984.woff2 +0 -0
- package/.next/static/media/KaTeX_Size1-Regular.fabc004a.ttf +0 -0
- package/.next/static/media/KaTeX_Size2-Regular.57727022.woff +0 -0
- package/.next/static/media/KaTeX_Size2-Regular.5916a24f.woff2 +0 -0
- package/.next/static/media/KaTeX_Size2-Regular.d6b476ec.ttf +0 -0
- package/.next/static/media/KaTeX_Size3-Regular.9acaf01c.woff +0 -0
- package/.next/static/media/KaTeX_Size3-Regular.a144ef58.ttf +0 -0
- package/.next/static/media/KaTeX_Size3-Regular.b4230e7e.woff2 +0 -0
- package/.next/static/media/KaTeX_Size4-Regular.10d95fd3.woff2 +0 -0
- package/.next/static/media/KaTeX_Size4-Regular.7a996c9d.woff +0 -0
- package/.next/static/media/KaTeX_Size4-Regular.fbccdabe.ttf +0 -0
- package/.next/static/media/KaTeX_Typewriter-Regular.6258592b.woff +0 -0
- package/.next/static/media/KaTeX_Typewriter-Regular.a8709e36.woff2 +0 -0
- package/.next/static/media/KaTeX_Typewriter-Regular.d97aaf4a.ttf +0 -0
- package/.next/static/media/a0c7b168290800ea-s.woff2 +0 -0
- package/.next/static/media/a211c214b387705f-s.woff2 +0 -0
- package/.next/static/media/a515f80c15233dd2-s.woff2 +0 -0
- package/.next/static/media/a59cf4e3704a8bf9-s.woff2 +0 -0
- package/.next/static/media/a7107da688a6a6c4-s.woff2 +0 -0
- package/.next/static/media/b0785a8aafa8fb40-s.woff2 +0 -0
- package/.next/static/media/b3afeb402d0641d1-s.woff2 +0 -0
- package/.next/static/media/b3d4f23ea9869e41-s.woff2 +0 -0
- package/.next/static/media/b88b6f09060fd402-s.woff2 +0 -0
- package/.next/static/media/b9bde58fd979694e-s.woff2 +0 -0
- package/.next/static/media/bdb722ed5812b325-s.woff2 +0 -0
- package/.next/static/media/c24e4778556eba42-s.woff2 +0 -0
- package/.next/static/media/c3040269b1771b02-s.woff2 +0 -0
- package/.next/static/media/c4123b44ca624496-s.woff2 +0 -0
- package/.next/static/media/ccadbccc98acfb1c-s.woff2 +0 -0
- package/.next/static/media/d04351f5bc3644ea-s.woff2 +0 -0
- package/.next/static/media/d1778a980b3fad78-s.woff2 +0 -0
- package/.next/static/media/d416562cb7cba055-s.woff2 +0 -0
- package/.next/static/media/d872fd07230782c0-s.woff2 +0 -0
- package/.next/static/media/db3791bbb1ae5747-s.woff2 +0 -0
- package/.next/static/media/dd090f323c5887c3-s.woff2 +0 -0
- package/.next/static/media/dd1fcf6432702b11-s.woff2 +0 -0
- package/.next/static/media/e45abf9e3abcfe63-s.woff2 +0 -0
- package/.next/static/media/e6e70594dba816d3-s.woff2 +0 -0
- package/.next/static/media/e8a6cb3b0c8c1d41-s.woff2 +0 -0
- package/.next/static/media/e8fdc46fb8ed5f75-s.woff2 +0 -0
- package/.next/static/media/ed7a78808c74aaab-s.woff2 +0 -0
- package/.next/static/media/ef9a93445fe49953-s.woff2 +0 -0
- package/.next/static/media/f00fd2cfeda7750f-s.woff2 +0 -0
- package/.next/static/media/f0863c4be7cb812e-s.woff2 +0 -0
- package/.next/static/media/f2fb250c4baa1fea-s.woff2 +0 -0
- package/.next/static/media/f392a13a0094c3d1-s.woff2 +0 -0
- package/.next/static/media/f42f4d2ecc3cba08-s.woff2 +0 -0
- package/.next/static/media/f8f98f7e33dde58b-s.woff2 +0 -0
- package/.next/static/media/fba9d66c2358f8e6-s.woff2 +0 -0
- package/.next/static/media/fc8b52876cd8aa42-s.woff2 +0 -0
- package/.next/static/media/fcc5ccbd071c5f3e-s.woff2 +0 -0
- package/.next/static/media/fe9908567bfd9cbf-s.woff2 +0 -0
- package/.next/trace +120 -0
- package/.next/types/app/api/asset/[...path]/route.ts +343 -0
- package/.next/types/app/api/auth/[...nextauth]/route.ts +343 -0
- package/.next/types/app/api/blog/[id]/highlights/[hid]/comments/[cid]/reactions/route.ts +343 -0
- package/.next/types/app/api/blog/[id]/highlights/[hid]/comments/[cid]/route.ts +343 -0
- package/.next/types/app/api/blog/[id]/highlights/[hid]/replies/route.ts +343 -0
- package/.next/types/app/api/blog/[id]/highlights/[hid]/resolve/route.ts +343 -0
- package/.next/types/app/api/blog/[id]/highlights/[hid]/route.ts +343 -0
- package/.next/types/app/api/blog/[id]/highlights/route.ts +343 -0
- package/.next/types/app/api/graphql/route.ts +343 -0
- package/.next/types/app/api/mile/prompts/route.ts +343 -0
- package/.next/types/app/api/upload/route.ts +343 -0
- package/.next/types/app/api/webhooks/notification/route.ts +343 -0
- package/.next/types/app/atom.xml/route.ts +343 -0
- package/.next/types/app/blog/[id]/page.ts +79 -0
- package/.next/types/app/blog/page.ts +79 -0
- package/.next/types/app/editor/page.ts +79 -0
- package/.next/types/app/login/page.ts +79 -0
- package/.next/types/app/memos/page.ts +79 -0
- package/.next/types/app/page.ts +79 -0
- package/.next/types/app/rss.xml/route.ts +343 -0
- package/.next/types/app/unavailable/page.ts +79 -0
- package/.next/types/package.json +1 -0
- package/bin/cici.js +9 -7
- package/package.json +5 -4
- package/public/Tinymind-banner.png +0 -0
- package/public/Tinymind.dmg +0 -0
- package/public/icon-144.jpg +0 -0
- package/public/icon.jpg +0 -0
- package/public/manifest.json +25 -0
- package/public/presentations/coordinated-access-control-with-policy/index.html +1593 -0
- package/public/tinymind.icns +0 -0
- /package/.next/standalone/.next/static/{Pl18p4h2shbbqjypPxStc → PDn4f_-4CIbfG8EmueowG}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{Pl18p4h2shbbqjypPxStc → PDn4f_-4CIbfG8EmueowG}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
// File: /home/runner/work/cici/cici/app/api/upload/route.ts
|
|
2
|
+
import * as entry from '../../../../../app/api/upload/route.js'
|
|
3
|
+
import type { NextRequest } from 'next/server.js'
|
|
4
|
+
|
|
5
|
+
type TEntry = typeof import('../../../../../app/api/upload/route.js')
|
|
6
|
+
|
|
7
|
+
// Check that the entry is a valid entry
|
|
8
|
+
checkFields<Diff<{
|
|
9
|
+
GET?: Function
|
|
10
|
+
HEAD?: Function
|
|
11
|
+
OPTIONS?: Function
|
|
12
|
+
POST?: Function
|
|
13
|
+
PUT?: Function
|
|
14
|
+
DELETE?: Function
|
|
15
|
+
PATCH?: Function
|
|
16
|
+
config?: {}
|
|
17
|
+
generateStaticParams?: Function
|
|
18
|
+
revalidate?: RevalidateRange<TEntry> | false
|
|
19
|
+
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
|
|
20
|
+
dynamicParams?: boolean
|
|
21
|
+
fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
|
|
22
|
+
preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
|
|
23
|
+
runtime?: 'nodejs' | 'experimental-edge' | 'edge'
|
|
24
|
+
maxDuration?: number
|
|
25
|
+
|
|
26
|
+
}, TEntry, ''>>()
|
|
27
|
+
|
|
28
|
+
// Check the prop type of the entry function
|
|
29
|
+
if ('GET' in entry) {
|
|
30
|
+
checkFields<
|
|
31
|
+
Diff<
|
|
32
|
+
ParamCheck<Request | NextRequest>,
|
|
33
|
+
{
|
|
34
|
+
__tag__: 'GET'
|
|
35
|
+
__param_position__: 'first'
|
|
36
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'GET'>>
|
|
37
|
+
},
|
|
38
|
+
'GET'
|
|
39
|
+
>
|
|
40
|
+
>()
|
|
41
|
+
checkFields<
|
|
42
|
+
Diff<
|
|
43
|
+
ParamCheck<PageParams>,
|
|
44
|
+
{
|
|
45
|
+
__tag__: 'GET'
|
|
46
|
+
__param_position__: 'second'
|
|
47
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'GET'>>
|
|
48
|
+
},
|
|
49
|
+
'GET'
|
|
50
|
+
>
|
|
51
|
+
>()
|
|
52
|
+
|
|
53
|
+
checkFields<
|
|
54
|
+
Diff<
|
|
55
|
+
{
|
|
56
|
+
__tag__: 'GET',
|
|
57
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
__tag__: 'GET',
|
|
61
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'GET'>>
|
|
62
|
+
},
|
|
63
|
+
'GET'
|
|
64
|
+
>
|
|
65
|
+
>()
|
|
66
|
+
}
|
|
67
|
+
// Check the prop type of the entry function
|
|
68
|
+
if ('HEAD' in entry) {
|
|
69
|
+
checkFields<
|
|
70
|
+
Diff<
|
|
71
|
+
ParamCheck<Request | NextRequest>,
|
|
72
|
+
{
|
|
73
|
+
__tag__: 'HEAD'
|
|
74
|
+
__param_position__: 'first'
|
|
75
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'HEAD'>>
|
|
76
|
+
},
|
|
77
|
+
'HEAD'
|
|
78
|
+
>
|
|
79
|
+
>()
|
|
80
|
+
checkFields<
|
|
81
|
+
Diff<
|
|
82
|
+
ParamCheck<PageParams>,
|
|
83
|
+
{
|
|
84
|
+
__tag__: 'HEAD'
|
|
85
|
+
__param_position__: 'second'
|
|
86
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'HEAD'>>
|
|
87
|
+
},
|
|
88
|
+
'HEAD'
|
|
89
|
+
>
|
|
90
|
+
>()
|
|
91
|
+
|
|
92
|
+
checkFields<
|
|
93
|
+
Diff<
|
|
94
|
+
{
|
|
95
|
+
__tag__: 'HEAD',
|
|
96
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
__tag__: 'HEAD',
|
|
100
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'HEAD'>>
|
|
101
|
+
},
|
|
102
|
+
'HEAD'
|
|
103
|
+
>
|
|
104
|
+
>()
|
|
105
|
+
}
|
|
106
|
+
// Check the prop type of the entry function
|
|
107
|
+
if ('OPTIONS' in entry) {
|
|
108
|
+
checkFields<
|
|
109
|
+
Diff<
|
|
110
|
+
ParamCheck<Request | NextRequest>,
|
|
111
|
+
{
|
|
112
|
+
__tag__: 'OPTIONS'
|
|
113
|
+
__param_position__: 'first'
|
|
114
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
115
|
+
},
|
|
116
|
+
'OPTIONS'
|
|
117
|
+
>
|
|
118
|
+
>()
|
|
119
|
+
checkFields<
|
|
120
|
+
Diff<
|
|
121
|
+
ParamCheck<PageParams>,
|
|
122
|
+
{
|
|
123
|
+
__tag__: 'OPTIONS'
|
|
124
|
+
__param_position__: 'second'
|
|
125
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
126
|
+
},
|
|
127
|
+
'OPTIONS'
|
|
128
|
+
>
|
|
129
|
+
>()
|
|
130
|
+
|
|
131
|
+
checkFields<
|
|
132
|
+
Diff<
|
|
133
|
+
{
|
|
134
|
+
__tag__: 'OPTIONS',
|
|
135
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
__tag__: 'OPTIONS',
|
|
139
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'OPTIONS'>>
|
|
140
|
+
},
|
|
141
|
+
'OPTIONS'
|
|
142
|
+
>
|
|
143
|
+
>()
|
|
144
|
+
}
|
|
145
|
+
// Check the prop type of the entry function
|
|
146
|
+
if ('POST' in entry) {
|
|
147
|
+
checkFields<
|
|
148
|
+
Diff<
|
|
149
|
+
ParamCheck<Request | NextRequest>,
|
|
150
|
+
{
|
|
151
|
+
__tag__: 'POST'
|
|
152
|
+
__param_position__: 'first'
|
|
153
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'POST'>>
|
|
154
|
+
},
|
|
155
|
+
'POST'
|
|
156
|
+
>
|
|
157
|
+
>()
|
|
158
|
+
checkFields<
|
|
159
|
+
Diff<
|
|
160
|
+
ParamCheck<PageParams>,
|
|
161
|
+
{
|
|
162
|
+
__tag__: 'POST'
|
|
163
|
+
__param_position__: 'second'
|
|
164
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'POST'>>
|
|
165
|
+
},
|
|
166
|
+
'POST'
|
|
167
|
+
>
|
|
168
|
+
>()
|
|
169
|
+
|
|
170
|
+
checkFields<
|
|
171
|
+
Diff<
|
|
172
|
+
{
|
|
173
|
+
__tag__: 'POST',
|
|
174
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
__tag__: 'POST',
|
|
178
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'POST'>>
|
|
179
|
+
},
|
|
180
|
+
'POST'
|
|
181
|
+
>
|
|
182
|
+
>()
|
|
183
|
+
}
|
|
184
|
+
// Check the prop type of the entry function
|
|
185
|
+
if ('PUT' in entry) {
|
|
186
|
+
checkFields<
|
|
187
|
+
Diff<
|
|
188
|
+
ParamCheck<Request | NextRequest>,
|
|
189
|
+
{
|
|
190
|
+
__tag__: 'PUT'
|
|
191
|
+
__param_position__: 'first'
|
|
192
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'PUT'>>
|
|
193
|
+
},
|
|
194
|
+
'PUT'
|
|
195
|
+
>
|
|
196
|
+
>()
|
|
197
|
+
checkFields<
|
|
198
|
+
Diff<
|
|
199
|
+
ParamCheck<PageParams>,
|
|
200
|
+
{
|
|
201
|
+
__tag__: 'PUT'
|
|
202
|
+
__param_position__: 'second'
|
|
203
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'PUT'>>
|
|
204
|
+
},
|
|
205
|
+
'PUT'
|
|
206
|
+
>
|
|
207
|
+
>()
|
|
208
|
+
|
|
209
|
+
checkFields<
|
|
210
|
+
Diff<
|
|
211
|
+
{
|
|
212
|
+
__tag__: 'PUT',
|
|
213
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
__tag__: 'PUT',
|
|
217
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'PUT'>>
|
|
218
|
+
},
|
|
219
|
+
'PUT'
|
|
220
|
+
>
|
|
221
|
+
>()
|
|
222
|
+
}
|
|
223
|
+
// Check the prop type of the entry function
|
|
224
|
+
if ('DELETE' in entry) {
|
|
225
|
+
checkFields<
|
|
226
|
+
Diff<
|
|
227
|
+
ParamCheck<Request | NextRequest>,
|
|
228
|
+
{
|
|
229
|
+
__tag__: 'DELETE'
|
|
230
|
+
__param_position__: 'first'
|
|
231
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'DELETE'>>
|
|
232
|
+
},
|
|
233
|
+
'DELETE'
|
|
234
|
+
>
|
|
235
|
+
>()
|
|
236
|
+
checkFields<
|
|
237
|
+
Diff<
|
|
238
|
+
ParamCheck<PageParams>,
|
|
239
|
+
{
|
|
240
|
+
__tag__: 'DELETE'
|
|
241
|
+
__param_position__: 'second'
|
|
242
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'DELETE'>>
|
|
243
|
+
},
|
|
244
|
+
'DELETE'
|
|
245
|
+
>
|
|
246
|
+
>()
|
|
247
|
+
|
|
248
|
+
checkFields<
|
|
249
|
+
Diff<
|
|
250
|
+
{
|
|
251
|
+
__tag__: 'DELETE',
|
|
252
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
__tag__: 'DELETE',
|
|
256
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'DELETE'>>
|
|
257
|
+
},
|
|
258
|
+
'DELETE'
|
|
259
|
+
>
|
|
260
|
+
>()
|
|
261
|
+
}
|
|
262
|
+
// Check the prop type of the entry function
|
|
263
|
+
if ('PATCH' in entry) {
|
|
264
|
+
checkFields<
|
|
265
|
+
Diff<
|
|
266
|
+
ParamCheck<Request | NextRequest>,
|
|
267
|
+
{
|
|
268
|
+
__tag__: 'PATCH'
|
|
269
|
+
__param_position__: 'first'
|
|
270
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'PATCH'>>
|
|
271
|
+
},
|
|
272
|
+
'PATCH'
|
|
273
|
+
>
|
|
274
|
+
>()
|
|
275
|
+
checkFields<
|
|
276
|
+
Diff<
|
|
277
|
+
ParamCheck<PageParams>,
|
|
278
|
+
{
|
|
279
|
+
__tag__: 'PATCH'
|
|
280
|
+
__param_position__: 'second'
|
|
281
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'PATCH'>>
|
|
282
|
+
},
|
|
283
|
+
'PATCH'
|
|
284
|
+
>
|
|
285
|
+
>()
|
|
286
|
+
|
|
287
|
+
checkFields<
|
|
288
|
+
Diff<
|
|
289
|
+
{
|
|
290
|
+
__tag__: 'PATCH',
|
|
291
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
__tag__: 'PATCH',
|
|
295
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'PATCH'>>
|
|
296
|
+
},
|
|
297
|
+
'PATCH'
|
|
298
|
+
>
|
|
299
|
+
>()
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
// Check the arguments and return type of the generateStaticParams function
|
|
303
|
+
if ('generateStaticParams' in entry) {
|
|
304
|
+
checkFields<Diff<{ params: PageParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
|
|
305
|
+
checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
type PageParams = any
|
|
309
|
+
export interface PageProps {
|
|
310
|
+
params?: any
|
|
311
|
+
searchParams?: any
|
|
312
|
+
}
|
|
313
|
+
export interface LayoutProps {
|
|
314
|
+
children?: React.ReactNode
|
|
315
|
+
|
|
316
|
+
params?: any
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// =============
|
|
320
|
+
// Utility types
|
|
321
|
+
type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
|
|
322
|
+
|
|
323
|
+
// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
|
|
324
|
+
type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
|
|
325
|
+
type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
|
|
326
|
+
|
|
327
|
+
type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
|
|
328
|
+
type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
|
|
329
|
+
type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
|
|
330
|
+
|
|
331
|
+
type ParamCheck<T> = {
|
|
332
|
+
__tag__: string
|
|
333
|
+
__param_position__: string
|
|
334
|
+
__param_type__: T
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
function checkFields<_ extends { [k in keyof any]: never }>() {}
|
|
338
|
+
|
|
339
|
+
// https://github.com/sindresorhus/type-fest
|
|
340
|
+
type Numeric = number | bigint
|
|
341
|
+
type Zero = 0 | 0n
|
|
342
|
+
type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
|
|
343
|
+
type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
|
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
// File: /home/runner/work/cici/cici/app/api/webhooks/notification/route.ts
|
|
2
|
+
import * as entry from '../../../../../../app/api/webhooks/notification/route.js'
|
|
3
|
+
import type { NextRequest } from 'next/server.js'
|
|
4
|
+
|
|
5
|
+
type TEntry = typeof import('../../../../../../app/api/webhooks/notification/route.js')
|
|
6
|
+
|
|
7
|
+
// Check that the entry is a valid entry
|
|
8
|
+
checkFields<Diff<{
|
|
9
|
+
GET?: Function
|
|
10
|
+
HEAD?: Function
|
|
11
|
+
OPTIONS?: Function
|
|
12
|
+
POST?: Function
|
|
13
|
+
PUT?: Function
|
|
14
|
+
DELETE?: Function
|
|
15
|
+
PATCH?: Function
|
|
16
|
+
config?: {}
|
|
17
|
+
generateStaticParams?: Function
|
|
18
|
+
revalidate?: RevalidateRange<TEntry> | false
|
|
19
|
+
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
|
|
20
|
+
dynamicParams?: boolean
|
|
21
|
+
fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
|
|
22
|
+
preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
|
|
23
|
+
runtime?: 'nodejs' | 'experimental-edge' | 'edge'
|
|
24
|
+
maxDuration?: number
|
|
25
|
+
|
|
26
|
+
}, TEntry, ''>>()
|
|
27
|
+
|
|
28
|
+
// Check the prop type of the entry function
|
|
29
|
+
if ('GET' in entry) {
|
|
30
|
+
checkFields<
|
|
31
|
+
Diff<
|
|
32
|
+
ParamCheck<Request | NextRequest>,
|
|
33
|
+
{
|
|
34
|
+
__tag__: 'GET'
|
|
35
|
+
__param_position__: 'first'
|
|
36
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'GET'>>
|
|
37
|
+
},
|
|
38
|
+
'GET'
|
|
39
|
+
>
|
|
40
|
+
>()
|
|
41
|
+
checkFields<
|
|
42
|
+
Diff<
|
|
43
|
+
ParamCheck<PageParams>,
|
|
44
|
+
{
|
|
45
|
+
__tag__: 'GET'
|
|
46
|
+
__param_position__: 'second'
|
|
47
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'GET'>>
|
|
48
|
+
},
|
|
49
|
+
'GET'
|
|
50
|
+
>
|
|
51
|
+
>()
|
|
52
|
+
|
|
53
|
+
checkFields<
|
|
54
|
+
Diff<
|
|
55
|
+
{
|
|
56
|
+
__tag__: 'GET',
|
|
57
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
__tag__: 'GET',
|
|
61
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'GET'>>
|
|
62
|
+
},
|
|
63
|
+
'GET'
|
|
64
|
+
>
|
|
65
|
+
>()
|
|
66
|
+
}
|
|
67
|
+
// Check the prop type of the entry function
|
|
68
|
+
if ('HEAD' in entry) {
|
|
69
|
+
checkFields<
|
|
70
|
+
Diff<
|
|
71
|
+
ParamCheck<Request | NextRequest>,
|
|
72
|
+
{
|
|
73
|
+
__tag__: 'HEAD'
|
|
74
|
+
__param_position__: 'first'
|
|
75
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'HEAD'>>
|
|
76
|
+
},
|
|
77
|
+
'HEAD'
|
|
78
|
+
>
|
|
79
|
+
>()
|
|
80
|
+
checkFields<
|
|
81
|
+
Diff<
|
|
82
|
+
ParamCheck<PageParams>,
|
|
83
|
+
{
|
|
84
|
+
__tag__: 'HEAD'
|
|
85
|
+
__param_position__: 'second'
|
|
86
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'HEAD'>>
|
|
87
|
+
},
|
|
88
|
+
'HEAD'
|
|
89
|
+
>
|
|
90
|
+
>()
|
|
91
|
+
|
|
92
|
+
checkFields<
|
|
93
|
+
Diff<
|
|
94
|
+
{
|
|
95
|
+
__tag__: 'HEAD',
|
|
96
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
__tag__: 'HEAD',
|
|
100
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'HEAD'>>
|
|
101
|
+
},
|
|
102
|
+
'HEAD'
|
|
103
|
+
>
|
|
104
|
+
>()
|
|
105
|
+
}
|
|
106
|
+
// Check the prop type of the entry function
|
|
107
|
+
if ('OPTIONS' in entry) {
|
|
108
|
+
checkFields<
|
|
109
|
+
Diff<
|
|
110
|
+
ParamCheck<Request | NextRequest>,
|
|
111
|
+
{
|
|
112
|
+
__tag__: 'OPTIONS'
|
|
113
|
+
__param_position__: 'first'
|
|
114
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
115
|
+
},
|
|
116
|
+
'OPTIONS'
|
|
117
|
+
>
|
|
118
|
+
>()
|
|
119
|
+
checkFields<
|
|
120
|
+
Diff<
|
|
121
|
+
ParamCheck<PageParams>,
|
|
122
|
+
{
|
|
123
|
+
__tag__: 'OPTIONS'
|
|
124
|
+
__param_position__: 'second'
|
|
125
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
126
|
+
},
|
|
127
|
+
'OPTIONS'
|
|
128
|
+
>
|
|
129
|
+
>()
|
|
130
|
+
|
|
131
|
+
checkFields<
|
|
132
|
+
Diff<
|
|
133
|
+
{
|
|
134
|
+
__tag__: 'OPTIONS',
|
|
135
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
__tag__: 'OPTIONS',
|
|
139
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'OPTIONS'>>
|
|
140
|
+
},
|
|
141
|
+
'OPTIONS'
|
|
142
|
+
>
|
|
143
|
+
>()
|
|
144
|
+
}
|
|
145
|
+
// Check the prop type of the entry function
|
|
146
|
+
if ('POST' in entry) {
|
|
147
|
+
checkFields<
|
|
148
|
+
Diff<
|
|
149
|
+
ParamCheck<Request | NextRequest>,
|
|
150
|
+
{
|
|
151
|
+
__tag__: 'POST'
|
|
152
|
+
__param_position__: 'first'
|
|
153
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'POST'>>
|
|
154
|
+
},
|
|
155
|
+
'POST'
|
|
156
|
+
>
|
|
157
|
+
>()
|
|
158
|
+
checkFields<
|
|
159
|
+
Diff<
|
|
160
|
+
ParamCheck<PageParams>,
|
|
161
|
+
{
|
|
162
|
+
__tag__: 'POST'
|
|
163
|
+
__param_position__: 'second'
|
|
164
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'POST'>>
|
|
165
|
+
},
|
|
166
|
+
'POST'
|
|
167
|
+
>
|
|
168
|
+
>()
|
|
169
|
+
|
|
170
|
+
checkFields<
|
|
171
|
+
Diff<
|
|
172
|
+
{
|
|
173
|
+
__tag__: 'POST',
|
|
174
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
__tag__: 'POST',
|
|
178
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'POST'>>
|
|
179
|
+
},
|
|
180
|
+
'POST'
|
|
181
|
+
>
|
|
182
|
+
>()
|
|
183
|
+
}
|
|
184
|
+
// Check the prop type of the entry function
|
|
185
|
+
if ('PUT' in entry) {
|
|
186
|
+
checkFields<
|
|
187
|
+
Diff<
|
|
188
|
+
ParamCheck<Request | NextRequest>,
|
|
189
|
+
{
|
|
190
|
+
__tag__: 'PUT'
|
|
191
|
+
__param_position__: 'first'
|
|
192
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'PUT'>>
|
|
193
|
+
},
|
|
194
|
+
'PUT'
|
|
195
|
+
>
|
|
196
|
+
>()
|
|
197
|
+
checkFields<
|
|
198
|
+
Diff<
|
|
199
|
+
ParamCheck<PageParams>,
|
|
200
|
+
{
|
|
201
|
+
__tag__: 'PUT'
|
|
202
|
+
__param_position__: 'second'
|
|
203
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'PUT'>>
|
|
204
|
+
},
|
|
205
|
+
'PUT'
|
|
206
|
+
>
|
|
207
|
+
>()
|
|
208
|
+
|
|
209
|
+
checkFields<
|
|
210
|
+
Diff<
|
|
211
|
+
{
|
|
212
|
+
__tag__: 'PUT',
|
|
213
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
__tag__: 'PUT',
|
|
217
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'PUT'>>
|
|
218
|
+
},
|
|
219
|
+
'PUT'
|
|
220
|
+
>
|
|
221
|
+
>()
|
|
222
|
+
}
|
|
223
|
+
// Check the prop type of the entry function
|
|
224
|
+
if ('DELETE' in entry) {
|
|
225
|
+
checkFields<
|
|
226
|
+
Diff<
|
|
227
|
+
ParamCheck<Request | NextRequest>,
|
|
228
|
+
{
|
|
229
|
+
__tag__: 'DELETE'
|
|
230
|
+
__param_position__: 'first'
|
|
231
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'DELETE'>>
|
|
232
|
+
},
|
|
233
|
+
'DELETE'
|
|
234
|
+
>
|
|
235
|
+
>()
|
|
236
|
+
checkFields<
|
|
237
|
+
Diff<
|
|
238
|
+
ParamCheck<PageParams>,
|
|
239
|
+
{
|
|
240
|
+
__tag__: 'DELETE'
|
|
241
|
+
__param_position__: 'second'
|
|
242
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'DELETE'>>
|
|
243
|
+
},
|
|
244
|
+
'DELETE'
|
|
245
|
+
>
|
|
246
|
+
>()
|
|
247
|
+
|
|
248
|
+
checkFields<
|
|
249
|
+
Diff<
|
|
250
|
+
{
|
|
251
|
+
__tag__: 'DELETE',
|
|
252
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
__tag__: 'DELETE',
|
|
256
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'DELETE'>>
|
|
257
|
+
},
|
|
258
|
+
'DELETE'
|
|
259
|
+
>
|
|
260
|
+
>()
|
|
261
|
+
}
|
|
262
|
+
// Check the prop type of the entry function
|
|
263
|
+
if ('PATCH' in entry) {
|
|
264
|
+
checkFields<
|
|
265
|
+
Diff<
|
|
266
|
+
ParamCheck<Request | NextRequest>,
|
|
267
|
+
{
|
|
268
|
+
__tag__: 'PATCH'
|
|
269
|
+
__param_position__: 'first'
|
|
270
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'PATCH'>>
|
|
271
|
+
},
|
|
272
|
+
'PATCH'
|
|
273
|
+
>
|
|
274
|
+
>()
|
|
275
|
+
checkFields<
|
|
276
|
+
Diff<
|
|
277
|
+
ParamCheck<PageParams>,
|
|
278
|
+
{
|
|
279
|
+
__tag__: 'PATCH'
|
|
280
|
+
__param_position__: 'second'
|
|
281
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'PATCH'>>
|
|
282
|
+
},
|
|
283
|
+
'PATCH'
|
|
284
|
+
>
|
|
285
|
+
>()
|
|
286
|
+
|
|
287
|
+
checkFields<
|
|
288
|
+
Diff<
|
|
289
|
+
{
|
|
290
|
+
__tag__: 'PATCH',
|
|
291
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
__tag__: 'PATCH',
|
|
295
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'PATCH'>>
|
|
296
|
+
},
|
|
297
|
+
'PATCH'
|
|
298
|
+
>
|
|
299
|
+
>()
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
// Check the arguments and return type of the generateStaticParams function
|
|
303
|
+
if ('generateStaticParams' in entry) {
|
|
304
|
+
checkFields<Diff<{ params: PageParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
|
|
305
|
+
checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
type PageParams = any
|
|
309
|
+
export interface PageProps {
|
|
310
|
+
params?: any
|
|
311
|
+
searchParams?: any
|
|
312
|
+
}
|
|
313
|
+
export interface LayoutProps {
|
|
314
|
+
children?: React.ReactNode
|
|
315
|
+
|
|
316
|
+
params?: any
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// =============
|
|
320
|
+
// Utility types
|
|
321
|
+
type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
|
|
322
|
+
|
|
323
|
+
// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
|
|
324
|
+
type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
|
|
325
|
+
type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
|
|
326
|
+
|
|
327
|
+
type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
|
|
328
|
+
type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
|
|
329
|
+
type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
|
|
330
|
+
|
|
331
|
+
type ParamCheck<T> = {
|
|
332
|
+
__tag__: string
|
|
333
|
+
__param_position__: string
|
|
334
|
+
__param_type__: T
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
function checkFields<_ extends { [k in keyof any]: never }>() {}
|
|
338
|
+
|
|
339
|
+
// https://github.com/sindresorhus/type-fest
|
|
340
|
+
type Numeric = number | bigint
|
|
341
|
+
type Zero = 0 | 0n
|
|
342
|
+
type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
|
|
343
|
+
type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
|