@upstart.gg/sdk 0.0.135 → 0.0.137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/shared/ai/schemas.d.ts +11 -2
- package/dist/shared/ai/schemas.d.ts.map +1 -1
- package/dist/shared/ai/schemas.js +38 -8
- package/dist/shared/ai/schemas.js.map +1 -1
- package/dist/shared/ai/types.d.ts +93 -81
- package/dist/shared/ai/types.d.ts.map +1 -1
- package/dist/shared/ajv.js +33 -32
- package/dist/shared/ajv.js.map +1 -1
- package/dist/shared/attributes.d.ts +86 -86
- package/dist/shared/attributes.d.ts.map +1 -1
- package/dist/shared/attributes.js +22 -25
- package/dist/shared/brick-manifest.d.ts +8 -5
- package/dist/shared/brick-manifest.d.ts.map +1 -1
- package/dist/shared/brick-manifest.js +3 -18
- package/dist/shared/bricks/manifests/_types.d.ts +9 -0
- package/dist/shared/bricks/manifests/_types.d.ts.map +1 -0
- package/dist/shared/bricks/manifests/_types.js +3 -0
- package/dist/shared/bricks/manifests/accordion.manifest.d.ts +4 -8
- package/dist/shared/bricks/manifests/accordion.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/accordion.manifest.js +13 -20
- package/dist/shared/bricks/manifests/all-manifests.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/all-manifests.js +44 -43
- package/dist/shared/bricks/manifests/all-props.d.ts +1501 -0
- package/dist/shared/bricks/manifests/all-props.d.ts.map +1 -0
- package/dist/shared/bricks/manifests/all-props.js +243 -0
- package/dist/shared/bricks/manifests/all-props.js.map +1 -0
- package/dist/shared/bricks/manifests/box.manifest.d.ts +4 -8
- package/dist/shared/bricks/manifests/box.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/box.manifest.js +16 -20
- package/dist/shared/bricks/manifests/button.manifest.d.ts +5 -12
- package/dist/shared/bricks/manifests/button.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/button.manifest.js +13 -20
- package/dist/shared/bricks/manifests/card.manifest.d.ts +10 -9
- package/dist/shared/bricks/manifests/card.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/card.manifest.js +18 -20
- package/dist/shared/bricks/manifests/carousel.manifest.d.ts +4 -8
- package/dist/shared/bricks/manifests/carousel.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/carousel.manifest.js +15 -20
- package/dist/shared/bricks/manifests/footer.manifest.d.ts +5 -9
- package/dist/shared/bricks/manifests/footer.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/footer.manifest.js +13 -20
- package/dist/shared/bricks/manifests/form.manifest.d.ts +5 -9
- package/dist/shared/bricks/manifests/form.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/form.manifest.js +13 -20
- package/dist/shared/bricks/manifests/hero.manifest.d.ts +4 -8
- package/dist/shared/bricks/manifests/hero.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/hero.manifest.js +13 -20
- package/dist/shared/bricks/manifests/html.manifest.d.ts +3 -7
- package/dist/shared/bricks/manifests/html.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/html.manifest.js +8 -20
- package/dist/shared/bricks/manifests/icon.manifest.d.ts +3 -7
- package/dist/shared/bricks/manifests/icon.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/icon.manifest.js +13 -20
- package/dist/shared/bricks/manifests/image.manifest.d.ts +3 -2
- package/dist/shared/bricks/manifests/image.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/image.manifest.js +16 -20
- package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts +4 -8
- package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/images-gallery.manifest.js +15 -20
- package/dist/shared/bricks/manifests/map.manifest.d.ts +3 -7
- package/dist/shared/bricks/manifests/map.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/map.manifest.js +11 -20
- package/dist/shared/bricks/manifests/navbar.manifest.d.ts +7 -11
- package/dist/shared/bricks/manifests/navbar.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/navbar.manifest.js +15 -20
- package/dist/shared/bricks/manifests/sidebar.manifest.d.ts +3 -7
- package/dist/shared/bricks/manifests/sidebar.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/sidebar.manifest.js +13 -20
- package/dist/shared/bricks/manifests/social-links.manifest.d.ts +4 -8
- package/dist/shared/bricks/manifests/social-links.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/social-links.manifest.js +14 -20
- package/dist/shared/bricks/manifests/spacer.manifest.d.ts +3 -7
- package/dist/shared/bricks/manifests/spacer.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/spacer.manifest.js +8 -20
- package/dist/shared/bricks/manifests/table.manifest.d.ts +6 -10
- package/dist/shared/bricks/manifests/table.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/table.manifest.js +15 -20
- package/dist/shared/bricks/manifests/tabs.manifest.d.ts +6 -10
- package/dist/shared/bricks/manifests/tabs.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/tabs.manifest.js +15 -20
- package/dist/shared/bricks/manifests/testimonials.manifest.d.ts +4 -8
- package/dist/shared/bricks/manifests/testimonials.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/testimonials.manifest.js +18 -20
- package/dist/shared/bricks/manifests/text.manifest.d.ts +4 -12
- package/dist/shared/bricks/manifests/text.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/text.manifest.js +13 -20
- package/dist/shared/bricks/manifests/timeline.manifest.d.ts +9 -13
- package/dist/shared/bricks/manifests/timeline.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/timeline.manifest.js +15 -20
- package/dist/shared/bricks/manifests/video.manifest.d.ts +3 -7
- package/dist/shared/bricks/manifests/video.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/video.manifest.js +11 -20
- package/dist/shared/bricks/props/align.d.ts +0 -3
- package/dist/shared/bricks/props/align.d.ts.map +1 -1
- package/dist/shared/bricks/props/align.js +4 -11
- package/dist/shared/bricks/props/background.d.ts +2 -8
- package/dist/shared/bricks/props/background.d.ts.map +1 -1
- package/dist/shared/bricks/props/background.js +4 -9
- package/dist/shared/bricks/props/border.d.ts +0 -7
- package/dist/shared/bricks/props/border.d.ts.map +1 -1
- package/dist/shared/bricks/props/border.js +5 -10
- package/dist/shared/bricks/props/color-preset.d.ts +316 -6
- package/dist/shared/bricks/props/color-preset.d.ts.map +1 -1
- package/dist/shared/bricks/props/color-preset.js +2 -5
- package/dist/shared/bricks/props/color.d.ts +3 -5
- package/dist/shared/bricks/props/color.d.ts.map +1 -1
- package/dist/shared/bricks/props/color.js +3 -8
- package/dist/shared/bricks/props/common.d.ts.map +1 -1
- package/dist/shared/bricks/props/common.js +4 -5
- package/dist/shared/bricks/props/css-length.d.ts +0 -1
- package/dist/shared/bricks/props/css-length.d.ts.map +1 -1
- package/dist/shared/bricks/props/css-length.js +1 -4
- package/dist/shared/bricks/props/datasource.d.ts +3 -3
- package/dist/shared/bricks/props/datasource.d.ts.map +1 -1
- package/dist/shared/bricks/props/datasource.js +74 -76
- package/dist/shared/bricks/props/datasource.js.map +1 -1
- package/dist/shared/bricks/props/date.js +21 -4
- package/dist/shared/bricks/props/date.js.map +1 -1
- package/dist/shared/bricks/props/direction.d.ts +1 -2
- package/dist/shared/bricks/props/direction.d.ts.map +1 -1
- package/dist/shared/bricks/props/direction.js +4 -7
- package/dist/shared/bricks/props/dynamic.d.ts +5 -67
- package/dist/shared/bricks/props/dynamic.d.ts.map +1 -1
- package/dist/shared/bricks/props/dynamic.js +6 -24
- package/dist/shared/bricks/props/effects.d.ts +1 -3
- package/dist/shared/bricks/props/effects.d.ts.map +1 -1
- package/dist/shared/bricks/props/effects.js +4 -9
- package/dist/shared/bricks/props/geolocation.d.ts.map +1 -1
- package/dist/shared/bricks/props/geolocation.js +3 -6
- package/dist/shared/bricks/props/geolocation.js.map +1 -1
- package/dist/shared/bricks/props/helpers.js +5 -6
- package/dist/shared/bricks/props/image.d.ts +2 -8
- package/dist/shared/bricks/props/image.d.ts.map +1 -1
- package/dist/shared/bricks/props/image.js +4 -7
- package/dist/shared/bricks/props/string.d.ts +2 -5
- package/dist/shared/bricks/props/string.d.ts.map +1 -1
- package/dist/shared/bricks/props/string.js +3 -10
- package/dist/shared/bricks/props/tags.d.ts +0 -1
- package/dist/shared/bricks/props/tags.d.ts.map +1 -1
- package/dist/shared/bricks/props/tags.js +3 -6
- package/dist/shared/bricks/props/text.d.ts +0 -3
- package/dist/shared/bricks/props/text.d.ts.map +1 -1
- package/dist/shared/bricks/props/text.js +4 -11
- package/dist/shared/bricks/props/types.d.ts +2 -2
- package/dist/shared/bricks/props/types.d.ts.map +1 -1
- package/dist/shared/bricks.d.ts +64 -152
- package/dist/shared/bricks.d.ts.map +1 -1
- package/dist/shared/bricks.js +49 -52
- package/dist/shared/chunk-2O5HVPID.js +41 -0
- package/dist/shared/chunk-2O5HVPID.js.map +1 -0
- package/dist/shared/{chunk-F22LDHEO.js → chunk-2U5U3CCJ.js} +3 -18
- package/dist/shared/chunk-2U5U3CCJ.js.map +1 -0
- package/dist/shared/{chunk-LXAO3JA6.js → chunk-4KY7OZWD.js} +35 -35
- package/dist/shared/chunk-4KY7OZWD.js.map +1 -0
- package/dist/shared/{chunk-TNMNMYOB.js → chunk-5RCC2STG.js} +2 -13
- package/dist/shared/chunk-5RCC2STG.js.map +1 -0
- package/dist/shared/{chunk-V3UA3LRK.js → chunk-6AE7UD73.js} +56 -37
- package/dist/shared/chunk-6AE7UD73.js.map +1 -0
- package/dist/shared/chunk-7U5WPHXB.js +346 -0
- package/dist/shared/chunk-7U5WPHXB.js.map +1 -0
- package/dist/shared/{chunk-Q4NPPLEU.js → chunk-BHARJBEK.js} +2 -9
- package/dist/shared/chunk-BHARJBEK.js.map +1 -0
- package/dist/shared/chunk-BZTWZC77.js +530 -0
- package/dist/shared/chunk-BZTWZC77.js.map +1 -0
- package/dist/shared/{chunk-QSND5IWT.js → chunk-DCM4732T.js} +24 -43
- package/dist/shared/chunk-DCM4732T.js.map +1 -0
- package/dist/shared/{chunk-W6MRYRGJ.js → chunk-DRQKKPTX.js} +6 -20
- package/dist/shared/chunk-DRQKKPTX.js.map +1 -0
- package/dist/shared/{chunk-CSF2WQX2.js → chunk-EID5HPF3.js} +15 -12
- package/dist/shared/chunk-EID5HPF3.js.map +1 -0
- package/dist/shared/chunk-EMF5TCPX.js +389 -0
- package/dist/shared/chunk-EMF5TCPX.js.map +1 -0
- package/dist/shared/chunk-FD7YYFRI.js +225 -0
- package/dist/shared/chunk-FD7YYFRI.js.map +1 -0
- package/dist/shared/{chunk-MLZT7MRQ.js → chunk-FHA4DFIM.js} +26 -27
- package/dist/shared/chunk-FHA4DFIM.js.map +1 -0
- package/dist/shared/{chunk-GRMY35BU.js → chunk-FUUSAMN3.js} +165 -40
- package/dist/shared/chunk-FUUSAMN3.js.map +1 -0
- package/dist/shared/chunk-GDYCCB3B.js +22 -0
- package/dist/shared/chunk-GDYCCB3B.js.map +1 -0
- package/dist/shared/chunk-GLV6QIIM.js +41 -0
- package/dist/shared/chunk-GLV6QIIM.js.map +1 -0
- package/dist/shared/chunk-H6TMBELF.js +374 -0
- package/dist/shared/chunk-H6TMBELF.js.map +1 -0
- package/dist/shared/{chunk-BMWRR4DI.js → chunk-HUWMIXNN.js} +26 -28
- package/dist/shared/chunk-HUWMIXNN.js.map +1 -0
- package/dist/shared/chunk-HY7JOP3J.js +150 -0
- package/dist/shared/chunk-HY7JOP3J.js.map +1 -0
- package/dist/shared/{chunk-TFGGYU6Y.js → chunk-IEMCCHM4.js} +7 -12
- package/dist/shared/chunk-IEMCCHM4.js.map +1 -0
- package/dist/shared/{chunk-TB3X4LRQ.js → chunk-J45LSQT6.js} +2 -2
- package/dist/shared/chunk-J45LSQT6.js.map +1 -0
- package/dist/shared/{chunk-WGDUJSSS.js → chunk-JF52BBFD.js} +27 -28
- package/dist/shared/chunk-JF52BBFD.js.map +1 -0
- package/dist/shared/{chunk-GPCI2N2A.js → chunk-JLDAS3VE.js} +136 -33
- package/dist/shared/chunk-JLDAS3VE.js.map +1 -0
- package/dist/shared/{chunk-SE6O65HC.js → chunk-JSDKK5QN.js} +10 -23
- package/dist/shared/chunk-JSDKK5QN.js.map +1 -0
- package/dist/shared/chunk-JW7MQAU4.js +354 -0
- package/dist/shared/chunk-JW7MQAU4.js.map +1 -0
- package/dist/shared/{chunk-RV7AYVFV.js → chunk-KKWT3OXF.js} +4 -19
- package/dist/shared/chunk-KKWT3OXF.js.map +1 -0
- package/dist/shared/{chunk-TEO6TJOM.js → chunk-KQH6V22E.js} +36 -35
- package/dist/shared/{chunk-TEO6TJOM.js.map → chunk-KQH6V22E.js.map} +1 -1
- package/dist/shared/{chunk-3KLRW4I2.js → chunk-LGDDJJHK.js} +212 -156
- package/dist/shared/chunk-LGDDJJHK.js.map +1 -0
- package/dist/shared/{chunk-QL3T5HJQ.js → chunk-LGGPCCCY.js} +3 -3
- package/dist/shared/chunk-LGGPCCCY.js.map +1 -0
- package/dist/shared/{chunk-2HO4FHLM.js → chunk-LPAQ47C6.js} +137 -171
- package/dist/shared/chunk-LPAQ47C6.js.map +1 -0
- package/dist/shared/chunk-MO6CRLQA.js +73 -0
- package/dist/shared/chunk-MO6CRLQA.js.map +1 -0
- package/dist/shared/{chunk-SHUGHJ7V.js → chunk-MYOLWTB2.js} +29 -32
- package/dist/shared/chunk-MYOLWTB2.js.map +1 -0
- package/dist/shared/{chunk-Z2NTDFB4.js → chunk-O24RDXZS.js} +34 -34
- package/dist/shared/chunk-O24RDXZS.js.map +1 -0
- package/dist/shared/{chunk-BPBKHEQ5.js → chunk-OJ6KL7FU.js} +1 -8
- package/dist/shared/chunk-OJ6KL7FU.js.map +1 -0
- package/dist/shared/{chunk-GCQURRVB.js → chunk-PF75LW33.js} +24 -27
- package/dist/shared/chunk-PF75LW33.js.map +1 -0
- package/dist/shared/{chunk-EWSPTRDL.js → chunk-QEJGPYTB.js} +132 -48
- package/dist/shared/chunk-QEJGPYTB.js.map +1 -0
- package/dist/shared/{chunk-P3RH5URN.js → chunk-SK2O7GFC.js} +17 -18
- package/dist/shared/chunk-SK2O7GFC.js.map +1 -0
- package/dist/shared/{chunk-UQF52PWK.js → chunk-SQXZNGQF.js} +8 -23
- package/dist/shared/chunk-SQXZNGQF.js.map +1 -0
- package/dist/shared/{chunk-NTLAKMMQ.js → chunk-SRYBJ6NQ.js} +6 -17
- package/dist/shared/chunk-SRYBJ6NQ.js.map +1 -0
- package/dist/shared/{chunk-O5PLB3YB.js → chunk-T6C3NG2L.js} +68 -59
- package/dist/shared/chunk-T6C3NG2L.js.map +1 -0
- package/dist/shared/{chunk-U7TVEPKA.js → chunk-TBT2PTGB.js} +41 -33
- package/dist/shared/chunk-TBT2PTGB.js.map +1 -0
- package/dist/shared/{chunk-CKFRSHR2.js → chunk-U4KZUX37.js} +18 -19
- package/dist/shared/chunk-U4KZUX37.js.map +1 -0
- package/dist/shared/{chunk-4WI23M7W.js → chunk-VSLRTXLF.js} +11 -4
- package/dist/shared/chunk-VSLRTXLF.js.map +1 -0
- package/dist/shared/{chunk-BHC2A43S.js → chunk-VTCHJT4O.js} +3 -3
- package/dist/shared/{chunk-BHC2A43S.js.map → chunk-VTCHJT4O.js.map} +1 -1
- package/dist/shared/{chunk-DRTGM2UJ.js → chunk-W2RFDII5.js} +3 -3
- package/dist/shared/chunk-W2RFDII5.js.map +1 -0
- package/dist/shared/{chunk-Y74LZNND.js → chunk-WPZV3LYL.js} +4 -10
- package/dist/shared/chunk-WPZV3LYL.js.map +1 -0
- package/dist/shared/chunk-XFZQGRRL.js +101 -0
- package/dist/shared/chunk-XFZQGRRL.js.map +1 -0
- package/dist/shared/{chunk-QQQ3FYPG.js → chunk-XK2CERPB.js} +147 -31
- package/dist/shared/chunk-XK2CERPB.js.map +1 -0
- package/dist/shared/chunk-XNRSL6FL.js +78 -0
- package/dist/shared/chunk-XNRSL6FL.js.map +1 -0
- package/dist/shared/{chunk-2RK3CPYJ.js → chunk-XXPSM6UA.js} +9 -12
- package/dist/shared/chunk-XXPSM6UA.js.map +1 -0
- package/dist/shared/{chunk-ZLYIRH2B.js → chunk-ZRBTAC3G.js} +3 -18
- package/dist/shared/chunk-ZRBTAC3G.js.map +1 -0
- package/dist/shared/{chunk-Z35I5JM5.js → chunk-ZVJNRKT4.js} +18 -20
- package/dist/shared/chunk-ZVJNRKT4.js.map +1 -0
- package/dist/shared/context.d.ts +402 -22
- package/dist/shared/context.d.ts.map +1 -1
- package/dist/shared/context.js +93 -0
- package/dist/shared/context.js.map +1 -1
- package/dist/shared/datarecords/external/airtable/types.d.ts +1 -1
- package/dist/shared/datarecords/external/airtable/types.d.ts.map +1 -1
- package/dist/shared/datarecords/external/airtable/types.js +2 -1
- package/dist/shared/datarecords/types.d.ts +10 -63
- package/dist/shared/datarecords/types.d.ts.map +1 -1
- package/dist/shared/datarecords/types.js +5 -6
- package/dist/shared/datasources/external/instagram/feed/schema.d.ts +1 -1
- package/dist/shared/datasources/external/instagram/feed/schema.d.ts.map +1 -1
- package/dist/shared/datasources/external/instagram/feed/schema.js +4 -1
- package/dist/shared/datasources/external/instagram/feed/schema.js.map +1 -1
- package/dist/shared/datasources/external/mastodon/status/schema.d.ts +6 -6
- package/dist/shared/datasources/external/mastodon/status/schema.d.ts.map +1 -1
- package/dist/shared/datasources/external/mastodon/status/schema.js +6 -19
- package/dist/shared/datasources/external/mastodon/status/schema.js.map +1 -1
- package/dist/shared/datasources/external/meta/oauth/config.d.ts +2 -2
- package/dist/shared/datasources/external/meta/oauth/config.d.ts.map +1 -1
- package/dist/shared/datasources/external/meta/oauth/config.js +4 -1
- package/dist/shared/datasources/external/meta/oauth/config.js.map +1 -1
- package/dist/shared/datasources/external/threads/media/fetcher.js +3 -3
- package/dist/shared/datasources/external/threads/media/schema.d.ts +1 -1
- package/dist/shared/datasources/external/threads/media/schema.d.ts.map +1 -1
- package/dist/shared/datasources/external/threads/media/schema.js +4 -8
- package/dist/shared/datasources/external/threads/media/schema.js.map +1 -1
- package/dist/shared/datasources/internal/blog/schema.d.ts +1 -1
- package/dist/shared/datasources/internal/blog/schema.d.ts.map +1 -1
- package/dist/shared/datasources/internal/blog/schema.js +4 -1
- package/dist/shared/datasources/internal/blog/schema.js.map +1 -1
- package/dist/shared/datasources/types.d.ts +25 -25
- package/dist/shared/datasources/types.d.ts.map +1 -1
- package/dist/shared/datasources/types.js +3 -16
- package/dist/shared/datasources.d.ts +1 -1
- package/dist/shared/datasources.d.ts.map +1 -1
- package/dist/shared/datasources.js +1 -3
- package/dist/shared/datasources.js.map +1 -1
- package/dist/shared/images.d.ts +1 -1
- package/dist/shared/images.d.ts.map +1 -1
- package/dist/shared/images.js +4 -38
- package/dist/shared/images.js.map +1 -1
- package/dist/shared/page.d.ts +139 -22
- package/dist/shared/page.d.ts.map +1 -1
- package/dist/shared/page.js +51 -49
- package/dist/shared/responsive.js +1 -1
- package/dist/shared/site.d.ts +80 -197
- package/dist/shared/site.d.ts.map +1 -1
- package/dist/shared/site.js +55 -114
- package/dist/shared/site.js.map +1 -1
- package/dist/shared/sitemap.d.ts +6 -327
- package/dist/shared/sitemap.d.ts.map +1 -1
- package/dist/shared/sitemap.js +50 -58
- package/dist/shared/theme.d.ts +0 -37
- package/dist/shared/theme.d.ts.map +1 -1
- package/dist/shared/theme.js +4 -21
- package/dist/shared/utils/llm.d.ts +1 -10
- package/dist/shared/utils/llm.d.ts.map +1 -1
- package/dist/shared/utils/llm.js +1 -18
- package/dist/shared/utils/schema.d.ts +3 -2
- package/dist/shared/utils/schema.d.ts.map +1 -1
- package/dist/shared/utils/schema.js +2 -17
- package/dist/shared/utils/string-enum.d.ts +9 -3
- package/dist/shared/utils/string-enum.d.ts.map +1 -1
- package/dist/shared/utils/string-enum.js +1 -1
- package/package.json +21 -5
- package/src/shared/ai/schemas.ts +41 -10
- package/src/shared/ai/types.ts +78 -76
- package/src/shared/attributes.ts +56 -46
- package/src/shared/brick-manifest.ts +5 -6
- package/src/shared/bricks/manifests/_types.ts +9 -0
- package/src/shared/bricks/manifests/accordion.manifest.ts +138 -171
- package/src/shared/bricks/manifests/all-manifests.ts +1 -0
- package/src/shared/bricks/manifests/all-props.ts +165 -0
- package/src/shared/bricks/manifests/box.manifest.ts +214 -150
- package/src/shared/bricks/manifests/button.manifest.ts +204 -79
- package/src/shared/bricks/manifests/card.manifest.ts +229 -43
- package/src/shared/bricks/manifests/carousel.manifest.ts +165 -35
- package/src/shared/bricks/manifests/footer.manifest.ts +18 -20
- package/src/shared/bricks/manifests/form.manifest.ts +136 -22
- package/src/shared/bricks/manifests/hero.manifest.ts +121 -38
- package/src/shared/bricks/manifests/html.manifest.ts +2 -5
- package/src/shared/bricks/manifests/icon.manifest.ts +225 -46
- package/src/shared/bricks/manifests/image.manifest.ts +125 -21
- package/src/shared/bricks/manifests/images-gallery.manifest.ts +15 -20
- package/src/shared/bricks/manifests/map.manifest.ts +12 -15
- package/src/shared/bricks/manifests/navbar.manifest.ts +22 -26
- package/src/shared/bricks/manifests/sidebar.manifest.ts +11 -14
- package/src/shared/bricks/manifests/social-links.manifest.ts +19 -24
- package/src/shared/bricks/manifests/spacer.manifest.ts +2 -5
- package/src/shared/bricks/manifests/table.manifest.ts +17 -20
- package/src/shared/bricks/manifests/tabs.manifest.ts +16 -21
- package/src/shared/bricks/manifests/testimonials.manifest.ts +23 -25
- package/src/shared/bricks/manifests/text.manifest.ts +47 -29
- package/src/shared/bricks/manifests/timeline.manifest.ts +31 -29
- package/src/shared/bricks/manifests/video.manifest.ts +11 -15
- package/src/shared/bricks/props/align.ts +0 -13
- package/src/shared/bricks/props/background.ts +1 -14
- package/src/shared/bricks/props/border.ts +2 -13
- package/src/shared/bricks/props/color-preset.ts +9 -10
- package/src/shared/bricks/props/color.ts +7 -18
- package/src/shared/bricks/props/common.ts +6 -7
- package/src/shared/bricks/props/css-length.ts +0 -5
- package/src/shared/bricks/props/datasource.ts +72 -74
- package/src/shared/bricks/props/direction.ts +1 -5
- package/src/shared/bricks/props/dynamic.ts +0 -11
- package/src/shared/bricks/props/effects.ts +0 -9
- package/src/shared/bricks/props/geolocation.ts +3 -3
- package/src/shared/bricks/props/helpers.ts +1 -1
- package/src/shared/bricks/props/image.ts +4 -16
- package/src/shared/bricks/props/string.ts +6 -19
- package/src/shared/bricks/props/tags.ts +0 -5
- package/src/shared/bricks/props/tests/background.test.ts +1 -15
- package/src/shared/bricks/props/tests/image.test.ts +3 -9
- package/src/shared/bricks/props/tests/string.test.ts +2 -26
- package/src/shared/bricks/props/text.ts +0 -12
- package/src/shared/bricks/props/types.ts +4 -3
- package/src/shared/bricks.ts +164 -1025
- package/src/shared/context.ts +24 -23
- package/src/shared/datarecords/external/airtable/types.ts +12 -11
- package/src/shared/datarecords/types.ts +22 -44
- package/src/shared/datasources/external/instagram/feed/schema.ts +2 -1
- package/src/shared/datasources/external/mastodon/status/schema.ts +4 -19
- package/src/shared/datasources/external/meta/oauth/config.ts +2 -1
- package/src/shared/datasources/external/threads/media/schema.ts +2 -8
- package/src/shared/datasources/internal/blog/schema.ts +2 -1
- package/src/shared/datasources/types.ts +64 -79
- package/src/shared/datasources.ts +2 -4
- package/src/shared/images.ts +12 -18
- package/src/shared/page.ts +9 -2
- package/src/shared/site.ts +3 -3
- package/src/shared/sitemap.ts +3 -68
- package/src/shared/tests/attributes.test.ts +2 -0
- package/src/shared/theme.ts +81 -96
- package/src/shared/utils/llm.ts +5 -191
- package/src/shared/utils/schema.ts +71 -244
- package/src/shared/utils/string-enum.ts +25 -4
- package/src/shared/utils/tests/schema.test.ts +112 -314
- package/dist/shared/chunk-2HO4FHLM.js.map +0 -1
- package/dist/shared/chunk-2RK3CPYJ.js.map +0 -1
- package/dist/shared/chunk-3KLRW4I2.js.map +0 -1
- package/dist/shared/chunk-4WI23M7W.js.map +0 -1
- package/dist/shared/chunk-6E42XWFH.js +0 -103
- package/dist/shared/chunk-6E42XWFH.js.map +0 -1
- package/dist/shared/chunk-A2QPY54H.js +0 -13
- package/dist/shared/chunk-A2QPY54H.js.map +0 -1
- package/dist/shared/chunk-BMWRR4DI.js.map +0 -1
- package/dist/shared/chunk-BPBKHEQ5.js.map +0 -1
- package/dist/shared/chunk-BW6EFRSF.js +0 -794
- package/dist/shared/chunk-BW6EFRSF.js.map +0 -1
- package/dist/shared/chunk-CKFRSHR2.js.map +0 -1
- package/dist/shared/chunk-CSF2WQX2.js.map +0 -1
- package/dist/shared/chunk-D4YQ6ABM.js +0 -338
- package/dist/shared/chunk-D4YQ6ABM.js.map +0 -1
- package/dist/shared/chunk-DRTGM2UJ.js.map +0 -1
- package/dist/shared/chunk-EQMU6NIU.js +0 -1222
- package/dist/shared/chunk-EQMU6NIU.js.map +0 -1
- package/dist/shared/chunk-EWSPTRDL.js.map +0 -1
- package/dist/shared/chunk-F22LDHEO.js.map +0 -1
- package/dist/shared/chunk-FVU5PXRC.js +0 -244
- package/dist/shared/chunk-FVU5PXRC.js.map +0 -1
- package/dist/shared/chunk-GCQURRVB.js.map +0 -1
- package/dist/shared/chunk-GPCI2N2A.js.map +0 -1
- package/dist/shared/chunk-GRMY35BU.js.map +0 -1
- package/dist/shared/chunk-JK2FWFJU.js +0 -15
- package/dist/shared/chunk-JK2FWFJU.js.map +0 -1
- package/dist/shared/chunk-LXAO3JA6.js.map +0 -1
- package/dist/shared/chunk-MLZT7MRQ.js.map +0 -1
- package/dist/shared/chunk-NT3IW52F.js +0 -260
- package/dist/shared/chunk-NT3IW52F.js.map +0 -1
- package/dist/shared/chunk-NTLAKMMQ.js.map +0 -1
- package/dist/shared/chunk-O5PLB3YB.js.map +0 -1
- package/dist/shared/chunk-P3RH5URN.js.map +0 -1
- package/dist/shared/chunk-Q4NPPLEU.js.map +0 -1
- package/dist/shared/chunk-QL3T5HJQ.js.map +0 -1
- package/dist/shared/chunk-QQQ3FYPG.js.map +0 -1
- package/dist/shared/chunk-QSND5IWT.js.map +0 -1
- package/dist/shared/chunk-RV7AYVFV.js.map +0 -1
- package/dist/shared/chunk-SE6O65HC.js.map +0 -1
- package/dist/shared/chunk-SHUGHJ7V.js.map +0 -1
- package/dist/shared/chunk-TB3X4LRQ.js.map +0 -1
- package/dist/shared/chunk-TFGGYU6Y.js.map +0 -1
- package/dist/shared/chunk-TNMNMYOB.js.map +0 -1
- package/dist/shared/chunk-U7TVEPKA.js.map +0 -1
- package/dist/shared/chunk-UQF52PWK.js.map +0 -1
- package/dist/shared/chunk-V3UA3LRK.js.map +0 -1
- package/dist/shared/chunk-W6MRYRGJ.js.map +0 -1
- package/dist/shared/chunk-WGDUJSSS.js.map +0 -1
- package/dist/shared/chunk-WKN566LN.js +0 -29
- package/dist/shared/chunk-WKN566LN.js.map +0 -1
- package/dist/shared/chunk-X6N463D4.js +0 -222
- package/dist/shared/chunk-X6N463D4.js.map +0 -1
- package/dist/shared/chunk-X75YV73Q.js +0 -178
- package/dist/shared/chunk-X75YV73Q.js.map +0 -1
- package/dist/shared/chunk-Y74LZNND.js.map +0 -1
- package/dist/shared/chunk-Z2NTDFB4.js.map +0 -1
- package/dist/shared/chunk-Z35I5JM5.js.map +0 -1
- package/dist/shared/chunk-ZLYIRH2B.js.map +0 -1
- package/dist/shared/schema-registry.d.ts +0 -5
- package/dist/shared/schema-registry.d.ts.map +0 -1
- package/dist/shared/schema-registry.js +0 -119
- package/dist/shared/schema-registry.js.map +0 -1
- package/dist/shared/tests/schema-registry.test.d.ts +0 -2
- package/dist/shared/tests/schema-registry.test.d.ts.map +0 -1
- package/dist/shared/utils/schema-registry.d.ts +0 -5
- package/dist/shared/utils/schema-registry.d.ts.map +0 -1
- package/dist/shared/utils/schema-registry.js +0 -29
- package/dist/shared/utils/tests/schema-registry.test.d.ts +0 -2
- package/dist/shared/utils/tests/schema-registry.test.d.ts.map +0 -1
- package/dist/shared/utils/typed-ref.d.ts +0 -43
- package/dist/shared/utils/typed-ref.d.ts.map +0 -1
- package/dist/shared/utils/typed-ref.js +0 -10
- package/dist/shared/utils/typed-ref.js.map +0 -1
- package/src/shared/schema-registry.ts +0 -82
- package/src/shared/tests/schema-registry.test.ts +0 -14
- package/src/shared/utils/schema-registry.ts +0 -82
- package/src/shared/utils/tests/schema-registry.test.ts +0 -13
- package/src/shared/utils/typed-ref.ts +0 -53
- /package/dist/shared/{utils/schema-registry.js.map → bricks/manifests/_types.js.map} +0 -0
|
@@ -1,76 +1,23 @@
|
|
|
1
1
|
import { type Static } from "@sinclair/typebox";
|
|
2
|
-
export declare const connectorSchema: import("@sinclair/typebox").
|
|
2
|
+
export declare const connectorSchema: import("@sinclair/typebox").TUnsafe<"internal" | "airtable" | "google-sheets" | "notion">;
|
|
3
3
|
export type DatarecordConnector = Static<typeof connectorSchema>;
|
|
4
|
-
export declare const
|
|
5
|
-
options: import("@sinclair/typebox").TObject<{
|
|
6
|
-
externalUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
7
|
-
baseId: import("@sinclair/typebox").TString;
|
|
8
|
-
baseName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
9
|
-
tableId: import("@sinclair/typebox").TString;
|
|
10
|
-
tableName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
11
|
-
fields: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
12
|
-
id: import("@sinclair/typebox").TString;
|
|
13
|
-
name: import("@sinclair/typebox").TString;
|
|
14
|
-
type: import("@sinclair/typebox").TString;
|
|
15
|
-
}>>>;
|
|
16
|
-
}>;
|
|
17
|
-
provider: import("@sinclair/typebox").TLiteral<"airtable">;
|
|
18
|
-
schema: import("@sinclair/typebox").TAny;
|
|
19
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
20
|
-
options: import("@sinclair/typebox").TObject<{
|
|
21
|
-
spreadsheetId: import("@sinclair/typebox").TString;
|
|
22
|
-
spreadsheetUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
23
|
-
spreadsheetName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
24
|
-
externalUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
25
|
-
}>;
|
|
26
|
-
provider: import("@sinclair/typebox").TLiteral<"google-sheets">;
|
|
27
|
-
schema: import("@sinclair/typebox").TAny;
|
|
28
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
29
|
-
options: import("@sinclair/typebox").TObject<{
|
|
30
|
-
url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
31
|
-
id: import("@sinclair/typebox").TString;
|
|
32
|
-
name: import("@sinclair/typebox").TString;
|
|
33
|
-
properties: import("@sinclair/typebox").TAny;
|
|
34
|
-
}>;
|
|
35
|
-
provider: import("@sinclair/typebox").TLiteral<"notion">;
|
|
36
|
-
schema: import("@sinclair/typebox").TAny;
|
|
37
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
38
|
-
provider: import("@sinclair/typebox").TLiteral<"internal">;
|
|
39
|
-
schema: import("@sinclair/typebox").TAny;
|
|
40
|
-
indexes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
41
|
-
name: import("@sinclair/typebox").TString;
|
|
42
|
-
fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
43
|
-
unique: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
44
|
-
}>>;
|
|
45
|
-
}>]>;
|
|
46
|
-
declare const datarecordManifest: import("@sinclair/typebox").TObject<{
|
|
4
|
+
export declare const genericDatarecord: import("@sinclair/typebox").TObject<{
|
|
47
5
|
provider: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"internal">, import("@sinclair/typebox").TLiteral<"notion">, import("@sinclair/typebox").TLiteral<"google-sheets">, import("@sinclair/typebox").TLiteral<"airtable">]>;
|
|
48
|
-
schema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny]>;
|
|
49
|
-
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
50
|
-
label: import("@sinclair/typebox").TString;
|
|
51
6
|
id: import("@sinclair/typebox").TString;
|
|
52
|
-
}>;
|
|
53
|
-
export declare const internalDatarecordManifest: import("@sinclair/typebox").TObject<{
|
|
54
|
-
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
55
7
|
label: import("@sinclair/typebox").TString;
|
|
56
|
-
|
|
57
|
-
provider: import("@sinclair/typebox").TLiteral<"internal">;
|
|
8
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
58
9
|
schema: import("@sinclair/typebox").TAny;
|
|
59
|
-
indexes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
60
|
-
name: import("@sinclair/typebox").TString;
|
|
61
|
-
fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
62
|
-
unique: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
63
|
-
}>>;
|
|
64
10
|
}>;
|
|
65
|
-
export type
|
|
66
|
-
export type
|
|
11
|
+
export type Datarecord = Static<typeof genericDatarecord>;
|
|
12
|
+
export type InternalDatarecord = Extract<Datarecord, {
|
|
13
|
+
provider: "internal";
|
|
14
|
+
}>;
|
|
67
15
|
export declare const datarecordsList: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
68
16
|
provider: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"internal">, import("@sinclair/typebox").TLiteral<"notion">, import("@sinclair/typebox").TLiteral<"google-sheets">, import("@sinclair/typebox").TLiteral<"airtable">]>;
|
|
69
|
-
schema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny, import("@sinclair/typebox").TAny]>;
|
|
70
|
-
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
71
|
-
label: import("@sinclair/typebox").TString;
|
|
72
17
|
id: import("@sinclair/typebox").TString;
|
|
18
|
+
label: import("@sinclair/typebox").TString;
|
|
19
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
20
|
+
schema: import("@sinclair/typebox").TAny;
|
|
73
21
|
}>>;
|
|
74
22
|
export type DatarecordsList = Static<typeof datarecordsList>;
|
|
75
|
-
export {};
|
|
76
23
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/shared/datarecords/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAMtD,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/shared/datarecords/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAMtD,eAAO,MAAM,eAAe,2FAAkE,CAAC;AAE/F,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC;AA8GjE,eAAO,MAAM,iBAAiB;;;;;;EAkB5B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC1D,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,UAAU,EAAE;IAAE,QAAQ,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC;AAE/E,eAAO,MAAM,eAAe;;;;;;GAAgC,CAAC;AAC7D,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -2,18 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
connectorSchema,
|
|
5
|
-
datarecordsConnectors,
|
|
6
5
|
datarecordsList,
|
|
7
|
-
|
|
8
|
-
} from "../chunk-
|
|
6
|
+
genericDatarecord
|
|
7
|
+
} from "../chunk-DCM4732T.js";
|
|
9
8
|
import "../chunk-OSJ6KGPX.js";
|
|
10
9
|
import "../chunk-7LAWWRU7.js";
|
|
11
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-EID5HPF3.js";
|
|
11
|
+
import "../chunk-GDYCCB3B.js";
|
|
12
12
|
import "../chunk-ZGQ3AQBG.js";
|
|
13
13
|
export {
|
|
14
14
|
connectorSchema,
|
|
15
|
-
datarecordsConnectors,
|
|
16
15
|
datarecordsList,
|
|
17
|
-
|
|
16
|
+
genericDatarecord
|
|
18
17
|
};
|
|
19
18
|
//# sourceMappingURL=types.js.map
|
|
@@ -6,7 +6,7 @@ export declare const instagramFeedSchema: import("@sinclair/typebox").TObject<{
|
|
|
6
6
|
timestamp: import("@sinclair/typebox").TString;
|
|
7
7
|
media_url: import("@sinclair/typebox").TString;
|
|
8
8
|
permalink: import("@sinclair/typebox").TString;
|
|
9
|
-
media_type: import("@sinclair/typebox").
|
|
9
|
+
media_type: import("@sinclair/typebox").TUnsafe<"IMAGE" | "VIDEO" | "CAROUSEL_ALBUM">;
|
|
10
10
|
}>>;
|
|
11
11
|
paging: import("@sinclair/typebox").TObject<{
|
|
12
12
|
cursors: import("@sinclair/typebox").TObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/instagram/feed/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/instagram/feed/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGtD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;EAkB9B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
+
import {
|
|
4
|
+
StringEnum
|
|
5
|
+
} from "../../../../chunk-GDYCCB3B.js";
|
|
3
6
|
import "../../../../chunk-ZGQ3AQBG.js";
|
|
4
7
|
|
|
5
8
|
// src/shared/datasources/external/instagram/feed/schema.ts
|
|
@@ -12,7 +15,7 @@ var instagramFeedSchema = Type.Object({
|
|
|
12
15
|
timestamp: Type.String(),
|
|
13
16
|
media_url: Type.String(),
|
|
14
17
|
permalink: Type.String(),
|
|
15
|
-
media_type:
|
|
18
|
+
media_type: StringEnum(["IMAGE", "VIDEO", "CAROUSEL_ALBUM"])
|
|
16
19
|
})
|
|
17
20
|
),
|
|
18
21
|
paging: Type.Object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/shared/datasources/external/instagram/feed/schema.ts"],"sourcesContent":["import { Type, type Static } from \"@sinclair/typebox\";\n\nexport const instagramFeedSchema = Type.Object({\n data: Type.Array(\n Type.Object({\n id: Type.String(),\n caption: Type.String(),\n timestamp: Type.String(),\n media_url: Type.String(),\n permalink: Type.String(),\n media_type:
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/shared/datasources/external/instagram/feed/schema.ts"],"sourcesContent":["import { Type, type Static } from \"@sinclair/typebox\";\nimport { StringEnum } from \"../../../../utils/string-enum\";\n\nexport const instagramFeedSchema = Type.Object({\n data: Type.Array(\n Type.Object({\n id: Type.String(),\n caption: Type.String(),\n timestamp: Type.String(),\n media_url: Type.String(),\n permalink: Type.String(),\n media_type: StringEnum([\"IMAGE\", \"VIDEO\", \"CAROUSEL_ALBUM\"]),\n }),\n ),\n paging: Type.Object({\n cursors: Type.Object({\n before: Type.Optional(Type.String()),\n after: Type.Optional(Type.String()),\n }),\n next: Type.Optional(Type.String()),\n }),\n});\n\nexport type InstagramFeedSchema = Static<typeof instagramFeedSchema>;\n"],"mappings":";;;;;;;;AAAA,SAAS,YAAyB;AAG3B,IAAM,sBAAsB,KAAK,OAAO;AAAA,EAC7C,MAAM,KAAK;AAAA,IACT,KAAK,OAAO;AAAA,MACV,IAAI,KAAK,OAAO;AAAA,MAChB,SAAS,KAAK,OAAO;AAAA,MACrB,WAAW,KAAK,OAAO;AAAA,MACvB,WAAW,KAAK,OAAO;AAAA,MACvB,WAAW,KAAK,OAAO;AAAA,MACvB,YAAY,WAAW,CAAC,SAAS,SAAS,gBAAgB,CAAC;AAAA,IAC7D,CAAC;AAAA,EACH;AAAA,EACA,QAAQ,KAAK,OAAO;AAAA,IAClB,SAAS,KAAK,OAAO;AAAA,MACnB,QAAQ,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,MACnC,OAAO,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,IACpC,CAAC;AAAA,IACD,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EACnC,CAAC;AACH,CAAC;","names":[]}
|
|
@@ -41,11 +41,11 @@ export declare const mastodonStatusSchema: import("@sinclair/typebox").TObject<{
|
|
|
41
41
|
following_count: import("@sinclair/typebox").TNumber;
|
|
42
42
|
}>;
|
|
43
43
|
content: import("@sinclair/typebox").TString;
|
|
44
|
-
visibility: import("@sinclair/typebox").
|
|
44
|
+
visibility: import("@sinclair/typebox").TUnsafe<"public" | "unlisted" | "private" | "direct">;
|
|
45
45
|
sensitive: import("@sinclair/typebox").TBoolean;
|
|
46
46
|
media_attachments: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
47
47
|
id: import("@sinclair/typebox").TString;
|
|
48
|
-
type: import("@sinclair/typebox").
|
|
48
|
+
type: import("@sinclair/typebox").TUnsafe<"image" | "video" | "audio" | "gifv" | "unknown">;
|
|
49
49
|
url: import("@sinclair/typebox").TString;
|
|
50
50
|
preview_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
51
51
|
remote_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -105,7 +105,7 @@ export declare const mastodonStatusSchema: import("@sinclair/typebox").TObject<{
|
|
|
105
105
|
url: import("@sinclair/typebox").TString;
|
|
106
106
|
title: import("@sinclair/typebox").TString;
|
|
107
107
|
description: import("@sinclair/typebox").TString;
|
|
108
|
-
type: import("@sinclair/typebox").
|
|
108
|
+
type: import("@sinclair/typebox").TUnsafe<"link" | "video" | "photo" | "rich">;
|
|
109
109
|
author_name: import("@sinclair/typebox").TString;
|
|
110
110
|
author_url: import("@sinclair/typebox").TString;
|
|
111
111
|
provider_name: import("@sinclair/typebox").TString;
|
|
@@ -169,11 +169,11 @@ export declare const mastodonStatusArraySchema: import("@sinclair/typebox").TArr
|
|
|
169
169
|
following_count: import("@sinclair/typebox").TNumber;
|
|
170
170
|
}>;
|
|
171
171
|
content: import("@sinclair/typebox").TString;
|
|
172
|
-
visibility: import("@sinclair/typebox").
|
|
172
|
+
visibility: import("@sinclair/typebox").TUnsafe<"public" | "unlisted" | "private" | "direct">;
|
|
173
173
|
sensitive: import("@sinclair/typebox").TBoolean;
|
|
174
174
|
media_attachments: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
175
175
|
id: import("@sinclair/typebox").TString;
|
|
176
|
-
type: import("@sinclair/typebox").
|
|
176
|
+
type: import("@sinclair/typebox").TUnsafe<"image" | "video" | "audio" | "gifv" | "unknown">;
|
|
177
177
|
url: import("@sinclair/typebox").TString;
|
|
178
178
|
preview_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
179
179
|
remote_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -233,7 +233,7 @@ export declare const mastodonStatusArraySchema: import("@sinclair/typebox").TArr
|
|
|
233
233
|
url: import("@sinclair/typebox").TString;
|
|
234
234
|
title: import("@sinclair/typebox").TString;
|
|
235
235
|
description: import("@sinclair/typebox").TString;
|
|
236
|
-
type: import("@sinclair/typebox").
|
|
236
|
+
type: import("@sinclair/typebox").TUnsafe<"link" | "video" | "photo" | "rich">;
|
|
237
237
|
author_name: import("@sinclair/typebox").TString;
|
|
238
238
|
author_url: import("@sinclair/typebox").TString;
|
|
239
239
|
provider_name: import("@sinclair/typebox").TString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/mastodon/status/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/mastodon/status/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAyDtD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+C/B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEvE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmC,CAAC;AAC1E,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -3,19 +3,16 @@
|
|
|
3
3
|
import {
|
|
4
4
|
mastodonAccountSchema
|
|
5
5
|
} from "../../../../chunk-O5PQISX4.js";
|
|
6
|
+
import {
|
|
7
|
+
StringEnum
|
|
8
|
+
} from "../../../../chunk-GDYCCB3B.js";
|
|
6
9
|
import "../../../../chunk-ZGQ3AQBG.js";
|
|
7
10
|
|
|
8
11
|
// src/shared/datasources/external/mastodon/status/schema.ts
|
|
9
12
|
import { Type } from "@sinclair/typebox";
|
|
10
13
|
var mastodonMediaAttachmentSchema = Type.Object({
|
|
11
14
|
id: Type.String(),
|
|
12
|
-
type:
|
|
13
|
-
Type.Literal("audio"),
|
|
14
|
-
Type.Literal("image"),
|
|
15
|
-
Type.Literal("video"),
|
|
16
|
-
Type.Literal("gifv"),
|
|
17
|
-
Type.Literal("unknown")
|
|
18
|
-
]),
|
|
15
|
+
type: StringEnum(["audio", "image", "video", "gifv", "unknown"]),
|
|
19
16
|
url: Type.String(),
|
|
20
17
|
preview_url: Type.Optional(Type.String()),
|
|
21
18
|
remote_url: Type.Optional(Type.String()),
|
|
@@ -34,12 +31,7 @@ var mastodonPreviewCardSchema = Type.Object({
|
|
|
34
31
|
url: Type.String(),
|
|
35
32
|
title: Type.String(),
|
|
36
33
|
description: Type.String(),
|
|
37
|
-
type:
|
|
38
|
-
Type.Literal("link"),
|
|
39
|
-
Type.Literal("photo"),
|
|
40
|
-
Type.Literal("video"),
|
|
41
|
-
Type.Literal("rich")
|
|
42
|
-
]),
|
|
34
|
+
type: StringEnum(["link", "photo", "video", "rich"]),
|
|
43
35
|
author_name: Type.String(),
|
|
44
36
|
author_url: Type.String(),
|
|
45
37
|
provider_name: Type.String(),
|
|
@@ -73,12 +65,7 @@ var mastodonStatusSchema = Type.Object({
|
|
|
73
65
|
created_at: Type.String(),
|
|
74
66
|
account: mastodonAccountSchema,
|
|
75
67
|
content: Type.String(),
|
|
76
|
-
visibility:
|
|
77
|
-
Type.Literal("public"),
|
|
78
|
-
Type.Literal("unlisted"),
|
|
79
|
-
Type.Literal("private"),
|
|
80
|
-
Type.Literal("direct")
|
|
81
|
-
]),
|
|
68
|
+
visibility: StringEnum(["public", "unlisted", "private", "direct"]),
|
|
82
69
|
sensitive: Type.Boolean(),
|
|
83
70
|
media_attachments: Type.Array(mastodonMediaAttachmentSchema),
|
|
84
71
|
application: Type.Optional(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/shared/datasources/external/mastodon/status/schema.ts"],"sourcesContent":["import { Type, type Static } from \"@sinclair/typebox\";\nimport { mastodonAccountSchema } from \"../account/schema\";\n\nconst mastodonMediaAttachmentSchema = Type.Object({\n id: Type.String(),\n type:
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/shared/datasources/external/mastodon/status/schema.ts"],"sourcesContent":["import { Type, type Static } from \"@sinclair/typebox\";\nimport { StringEnum } from \"../../../../utils/string-enum\";\nimport { mastodonAccountSchema } from \"../account/schema\";\n\nconst mastodonMediaAttachmentSchema = Type.Object({\n id: Type.String(),\n type: StringEnum([\"audio\", \"image\", \"video\", \"gifv\", \"unknown\"]),\n url: Type.String(),\n preview_url: Type.Optional(Type.String()),\n remote_url: Type.Optional(Type.String()),\n meta: Type.Record(Type.String(), Type.Any()),\n description: Type.Optional(Type.String()),\n blurhash: Type.Optional(Type.String()),\n});\n\nconst mastodonEmojiSchema = Type.Object({\n shortcode: Type.String(),\n url: Type.String(),\n static_url: Type.String(),\n visible_in_picker: Type.Boolean(),\n category: Type.Optional(Type.String()),\n});\n\nconst mastodonPreviewCardSchema = Type.Object({\n url: Type.String(),\n title: Type.String(),\n description: Type.String(),\n type: StringEnum([\"link\", \"photo\", \"video\", \"rich\"]),\n author_name: Type.String(),\n author_url: Type.String(),\n provider_name: Type.String(),\n provider_url: Type.String(),\n html: Type.String(),\n width: Type.Number(),\n height: Type.Number(),\n image: Type.Optional(Type.String()),\n embed_url: Type.String(),\n blurhash: Type.Optional(Type.String()),\n});\n\nconst mastodonPollSchema = Type.Object({\n id: Type.String(),\n expires_at: Type.String(),\n expired: Type.Boolean(),\n multiple: Type.Boolean(),\n votes_count: Type.Number(),\n options: Type.Array(\n Type.Object({\n title: Type.String(),\n votes_count: Type.Number(),\n }),\n ),\n voted: Type.Optional(Type.Boolean()),\n own_votes: Type.Optional(Type.Array(Type.Number())),\n emojis: Type.Array(mastodonEmojiSchema),\n});\n\nexport const mastodonStatusSchema = Type.Object({\n id: Type.String(),\n uri: Type.String(),\n created_at: Type.String(),\n account: mastodonAccountSchema,\n content: Type.String(),\n visibility: StringEnum([\"public\", \"unlisted\", \"private\", \"direct\"]),\n sensitive: Type.Boolean(),\n media_attachments: Type.Array(mastodonMediaAttachmentSchema),\n application: Type.Optional(\n Type.Object({\n name: Type.String(),\n website: Type.Optional(Type.String()),\n }),\n ),\n mentions: Type.Array(\n Type.Object({\n id: Type.String(),\n username: Type.String(),\n acct: Type.String(),\n url: Type.String(),\n }),\n ),\n tags: Type.Array(\n Type.Object({\n name: Type.String(),\n url: Type.String(),\n }),\n ),\n emojis: Type.Array(mastodonEmojiSchema),\n reblogs_count: Type.Number(),\n favourites_count: Type.Number(),\n replies_count: Type.Number(),\n url: Type.String(),\n in_reply_to_id: Type.Optional(Type.String()),\n in_reply_to_account_id: Type.Optional(Type.String()),\n reblog: Type.Optional(Type.Ref(\"mastodonStatus\")),\n poll: Type.Optional(mastodonPollSchema),\n card: Type.Optional(mastodonPreviewCardSchema),\n language: Type.Optional(Type.String()),\n text: Type.Optional(Type.String()),\n edited_at: Type.Optional(Type.String()),\n favourited: Type.Optional(Type.Boolean()),\n reblogged: Type.Optional(Type.Boolean()),\n muted: Type.Optional(Type.Boolean()),\n bookmarked: Type.Optional(Type.Boolean()),\n pinned: Type.Optional(Type.Boolean()),\n});\n\nexport type MastodonStatusSchema = Static<typeof mastodonStatusSchema>;\n\nexport const mastodonStatusArraySchema = Type.Array(mastodonStatusSchema);\nexport type MastodonStatusArraySchema = Static<typeof mastodonStatusArraySchema>;\n"],"mappings":"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","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Static, type StaticDecode } from "@sinclair/typebox";
|
|
2
2
|
declare const metaOAuthConfig: import("@sinclair/typebox").TObject<{
|
|
3
|
-
type: import("@sinclair/typebox").
|
|
3
|
+
type: import("@sinclair/typebox").TUnsafe<"short-lived" | "long-lived">;
|
|
4
4
|
accessToken: import("@sinclair/typebox").TString;
|
|
5
5
|
userId: import("@sinclair/typebox").TString;
|
|
6
6
|
permissions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
@@ -12,7 +12,7 @@ declare const metaFullOAuthConfig: import("@sinclair/typebox").TObject<{
|
|
|
12
12
|
siteId: import("@sinclair/typebox").TString;
|
|
13
13
|
siteDatasourceId: import("@sinclair/typebox").TString;
|
|
14
14
|
config: import("@sinclair/typebox").TObject<{
|
|
15
|
-
type: import("@sinclair/typebox").
|
|
15
|
+
type: import("@sinclair/typebox").TUnsafe<"short-lived" | "long-lived">;
|
|
16
16
|
accessToken: import("@sinclair/typebox").TString;
|
|
17
17
|
userId: import("@sinclair/typebox").TString;
|
|
18
18
|
permissions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/meta/oauth/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/meta/oauth/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAIzE,QAAA,MAAM,eAAe;;;;;;;EAOnB,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC;AAE7D,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;EAA0C,CAAC;AACpE,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -4,12 +4,15 @@ import {
|
|
|
4
4
|
buildOAuthConfigSchema
|
|
5
5
|
} from "../../../../chunk-2BPYOTKA.js";
|
|
6
6
|
import "../../../../chunk-QLQVDZIL.js";
|
|
7
|
+
import {
|
|
8
|
+
StringEnum
|
|
9
|
+
} from "../../../../chunk-GDYCCB3B.js";
|
|
7
10
|
import "../../../../chunk-ZGQ3AQBG.js";
|
|
8
11
|
|
|
9
12
|
// src/shared/datasources/external/meta/oauth/config.ts
|
|
10
13
|
import { Type } from "@sinclair/typebox";
|
|
11
14
|
var metaOAuthConfig = Type.Object({
|
|
12
|
-
type:
|
|
15
|
+
type: StringEnum(["short-lived", "long-lived"]),
|
|
13
16
|
accessToken: Type.String(),
|
|
14
17
|
userId: Type.String(),
|
|
15
18
|
permissions: Type.Array(Type.String()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/shared/datasources/external/meta/oauth/config.ts"],"sourcesContent":["import { Type, type Static, type StaticDecode } from \"@sinclair/typebox\";\nimport { buildOAuthConfigSchema } from \"~/shared/oauth\";\n\nconst metaOAuthConfig = Type.Object({\n type:
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/shared/datasources/external/meta/oauth/config.ts"],"sourcesContent":["import { Type, type Static, type StaticDecode } from \"@sinclair/typebox\";\nimport { StringEnum } from \"../../../../utils/string-enum\";\nimport { buildOAuthConfigSchema } from \"~/shared/oauth\";\n\nconst metaOAuthConfig = Type.Object({\n type: StringEnum([\"short-lived\", \"long-lived\"]),\n accessToken: Type.String(),\n userId: Type.String(),\n permissions: Type.Array(Type.String()),\n expiresIn: Type.Number(),\n tokenType: Type.String(),\n});\n\nexport type MetaOAuthConfig = Static<typeof metaOAuthConfig>;\n\nconst metaFullOAuthConfig = buildOAuthConfigSchema(metaOAuthConfig);\nexport type MetaFullOAuthConfig = StaticDecode<typeof metaFullOAuthConfig>;\n"],"mappings":";;;;;;;;;;;;AAAA,SAAS,YAA4C;AAIrD,IAAM,kBAAkB,KAAK,OAAO;AAAA,EAClC,MAAM,WAAW,CAAC,eAAe,YAAY,CAAC;AAAA,EAC9C,aAAa,KAAK,OAAO;AAAA,EACzB,QAAQ,KAAK,OAAO;AAAA,EACpB,aAAa,KAAK,MAAM,KAAK,OAAO,CAAC;AAAA,EACrC,WAAW,KAAK,OAAO;AAAA,EACvB,WAAW,KAAK,OAAO;AACzB,CAAC;AAID,IAAM,sBAAsB,uBAAuB,eAAe;","names":[]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
stringifyObjectValues
|
|
5
|
-
} from "../../../../chunk-OJP4HMJT.js";
|
|
6
3
|
import {
|
|
7
4
|
invariant
|
|
8
5
|
} from "../../../../chunk-TKMWY2VN.js";
|
|
6
|
+
import {
|
|
7
|
+
stringifyObjectValues
|
|
8
|
+
} from "../../../../chunk-OJP4HMJT.js";
|
|
9
9
|
import {
|
|
10
10
|
UnauthorizedError
|
|
11
11
|
} from "../../../../chunk-XZ6WJZHN.js";
|
|
@@ -3,7 +3,7 @@ export declare const threadsMediaSchema: import("@sinclair/typebox").TObject<{
|
|
|
3
3
|
data: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
4
4
|
id: import("@sinclair/typebox").TString;
|
|
5
5
|
media_product_type: import("@sinclair/typebox").TLiteral<"THREADS">;
|
|
6
|
-
media_type: import("@sinclair/typebox").
|
|
6
|
+
media_type: import("@sinclair/typebox").TUnsafe<"IMAGE" | "VIDEO" | "CAROUSEL_ALBUM" | "TEXT_POST" | "AUDIO" | "REPOST_FACADE">;
|
|
7
7
|
media_url: import("@sinclair/typebox").TString;
|
|
8
8
|
permalink: import("@sinclair/typebox").TString;
|
|
9
9
|
owner: import("@sinclair/typebox").TObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/threads/media/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/threads/media/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGtD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;EAyB7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
+
import {
|
|
4
|
+
StringEnum
|
|
5
|
+
} from "../../../../chunk-GDYCCB3B.js";
|
|
3
6
|
import "../../../../chunk-ZGQ3AQBG.js";
|
|
4
7
|
|
|
5
8
|
// src/shared/datasources/external/threads/media/schema.ts
|
|
@@ -9,14 +12,7 @@ var threadsMediaSchema = Type.Object({
|
|
|
9
12
|
Type.Object({
|
|
10
13
|
id: Type.String(),
|
|
11
14
|
media_product_type: Type.Literal("THREADS"),
|
|
12
|
-
media_type:
|
|
13
|
-
Type.Literal("TEXT_POST"),
|
|
14
|
-
Type.Literal("IMAGE"),
|
|
15
|
-
Type.Literal("VIDEO"),
|
|
16
|
-
Type.Literal("CAROUSEL_ALBUM"),
|
|
17
|
-
Type.Literal("AUDIO"),
|
|
18
|
-
Type.Literal("REPOST_FACADE")
|
|
19
|
-
]),
|
|
15
|
+
media_type: StringEnum(["TEXT_POST", "IMAGE", "VIDEO", "CAROUSEL_ALBUM", "AUDIO", "REPOST_FACADE"]),
|
|
20
16
|
media_url: Type.String(),
|
|
21
17
|
permalink: Type.String(),
|
|
22
18
|
owner: Type.Object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/shared/datasources/external/threads/media/schema.ts"],"sourcesContent":["import { Type, type Static } from \"@sinclair/typebox\";\n\nexport const threadsMediaSchema = Type.Object({\n data: Type.Array(\n Type.Object({\n id: Type.String(),\n media_product_type: Type.Literal(\"THREADS\"),\n media_type:
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/shared/datasources/external/threads/media/schema.ts"],"sourcesContent":["import { Type, type Static } from \"@sinclair/typebox\";\nimport { StringEnum } from \"../../../../utils/string-enum\";\n\nexport const threadsMediaSchema = Type.Object({\n data: Type.Array(\n Type.Object({\n id: Type.String(),\n media_product_type: Type.Literal(\"THREADS\"),\n media_type: StringEnum([\"TEXT_POST\", \"IMAGE\", \"VIDEO\", \"CAROUSEL_ALBUM\", \"AUDIO\", \"REPOST_FACADE\"]),\n media_url: Type.String(),\n permalink: Type.String(),\n owner: Type.Object({\n id: Type.String(),\n }),\n username: Type.String(),\n text: Type.String(),\n timestamp: Type.String(),\n thumbnail_url: Type.String(),\n shortcode: Type.String(),\n is_quote_post: Type.Boolean(),\n }),\n ),\n paging: Type.Object({\n cursors: Type.Object({\n before: Type.String(),\n after: Type.String(),\n }),\n }),\n});\n\nexport type ThreadsMediaSchema = Static<typeof threadsMediaSchema>;\n"],"mappings":";;;;;;;;AAAA,SAAS,YAAyB;AAG3B,IAAM,qBAAqB,KAAK,OAAO;AAAA,EAC5C,MAAM,KAAK;AAAA,IACT,KAAK,OAAO;AAAA,MACV,IAAI,KAAK,OAAO;AAAA,MAChB,oBAAoB,KAAK,QAAQ,SAAS;AAAA,MAC1C,YAAY,WAAW,CAAC,aAAa,SAAS,SAAS,kBAAkB,SAAS,eAAe,CAAC;AAAA,MAClG,WAAW,KAAK,OAAO;AAAA,MACvB,WAAW,KAAK,OAAO;AAAA,MACvB,OAAO,KAAK,OAAO;AAAA,QACjB,IAAI,KAAK,OAAO;AAAA,MAClB,CAAC;AAAA,MACD,UAAU,KAAK,OAAO;AAAA,MACtB,MAAM,KAAK,OAAO;AAAA,MAClB,WAAW,KAAK,OAAO;AAAA,MACvB,eAAe,KAAK,OAAO;AAAA,MAC3B,WAAW,KAAK,OAAO;AAAA,MACvB,eAAe,KAAK,QAAQ;AAAA,IAC9B,CAAC;AAAA,EACH;AAAA,EACA,QAAQ,KAAK,OAAO;AAAA,IAClB,SAAS,KAAK,OAAO;AAAA,MACnB,QAAQ,KAAK,OAAO;AAAA,MACpB,OAAO,KAAK,OAAO;AAAA,IACrB,CAAC;AAAA,EACH,CAAC;AACH,CAAC;","names":[]}
|
|
@@ -9,7 +9,7 @@ export declare const blogSchema: import("@sinclair/typebox").TArray<import("@sin
|
|
|
9
9
|
}>;
|
|
10
10
|
publishedAt: import("@sinclair/typebox").TString;
|
|
11
11
|
slug: import("@sinclair/typebox").TString;
|
|
12
|
-
status: import("@sinclair/typebox").
|
|
12
|
+
status: import("@sinclair/typebox").TUnsafe<"draft" | "published" | "archived">;
|
|
13
13
|
categories: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
14
14
|
tags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
15
15
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/shared/datasources/internal/blog/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/shared/datasources/internal/blog/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGtD,eAAO,MAAM,UAAU;;;;;;;;;;;;;GAgEtB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
+
import {
|
|
4
|
+
StringEnum
|
|
5
|
+
} from "../../../chunk-GDYCCB3B.js";
|
|
3
6
|
import "../../../chunk-ZGQ3AQBG.js";
|
|
4
7
|
|
|
5
8
|
// src/shared/datasources/internal/blog/schema.ts
|
|
@@ -43,7 +46,7 @@ var blogSchema = Type.Array(
|
|
|
43
46
|
pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$",
|
|
44
47
|
description: "URL-friendly version of the title"
|
|
45
48
|
}),
|
|
46
|
-
status:
|
|
49
|
+
status: StringEnum(["draft", "published", "archived"], {
|
|
47
50
|
title: "Status",
|
|
48
51
|
description: "Publication status of the blog post"
|
|
49
52
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/shared/datasources/internal/blog/schema.ts"],"sourcesContent":["import { Type, type Static } from \"@sinclair/typebox\";\n\nexport const blogSchema = Type.Array(\n Type.Object({\n title: Type.String({\n title: \"Title\",\n description: \"Blog post title\",\n }),\n excerpt: Type.String({\n title: \"Excerpt\",\n description: \"Short summary of the blog post\",\n format: \"markdown\",\n }),\n image: Type.Optional(\n Type.String({\n title: \"Image URL\",\n format: \"uri\",\n description: \"Blog post image\",\n }),\n ),\n content: Type.String({\n title: \"Content\",\n description: \"Blog post content\",\n format: \"markdown\",\n }),\n author: Type.Object({\n name: Type.String({\n title: \"Author Name\",\n description: \"Author's name\",\n }),\n }),\n publishedAt: Type.String({\n title: \"Published Date\",\n format: \"date\",\n description: \"Publication date in ISO format\",\n }),\n slug: Type.String({\n title: \"Slug\",\n pattern: \"^[a-z0-9]+(?:-[a-z0-9]+)*$\",\n description: \"URL-friendly version of the title\",\n }),\n status:
|
|
1
|
+
{"version":3,"sources":["../../../../../src/shared/datasources/internal/blog/schema.ts"],"sourcesContent":["import { Type, type Static } from \"@sinclair/typebox\";\nimport { StringEnum } from \"../../../utils/string-enum\";\n\nexport const blogSchema = Type.Array(\n Type.Object({\n title: Type.String({\n title: \"Title\",\n description: \"Blog post title\",\n }),\n excerpt: Type.String({\n title: \"Excerpt\",\n description: \"Short summary of the blog post\",\n format: \"markdown\",\n }),\n image: Type.Optional(\n Type.String({\n title: \"Image URL\",\n format: \"uri\",\n description: \"Blog post image\",\n }),\n ),\n content: Type.String({\n title: \"Content\",\n description: \"Blog post content\",\n format: \"markdown\",\n }),\n author: Type.Object({\n name: Type.String({\n title: \"Author Name\",\n description: \"Author's name\",\n }),\n }),\n publishedAt: Type.String({\n title: \"Published Date\",\n format: \"date\",\n description: \"Publication date in ISO format\",\n }),\n slug: Type.String({\n title: \"Slug\",\n pattern: \"^[a-z0-9]+(?:-[a-z0-9]+)*$\",\n description: \"URL-friendly version of the title\",\n }),\n status: StringEnum([\"draft\", \"published\", \"archived\"], {\n title: \"Status\",\n description: \"Publication status of the blog post\",\n }),\n categories: Type.Optional(\n Type.Array(\n Type.String({\n title: \"Categories\",\n description: \"Blog post categories\",\n }),\n ),\n ),\n tags: Type.Optional(\n Type.Array(\n Type.String({\n title: \"Tags\",\n description: \"Blog post tags\",\n }),\n ),\n ),\n }),\n {\n title: \"Blog Posts\",\n description: \"List of blog posts\",\n },\n);\n\nexport type BlogSchema = Static<typeof blogSchema>;\n"],"mappings":";;;;;;;;AAAA,SAAS,YAAyB;AAG3B,IAAM,aAAa,KAAK;AAAA,EAC7B,KAAK,OAAO;AAAA,IACV,OAAO,KAAK,OAAO;AAAA,MACjB,OAAO;AAAA,MACP,aAAa;AAAA,IACf,CAAC;AAAA,IACD,SAAS,KAAK,OAAO;AAAA,MACnB,OAAO;AAAA,MACP,aAAa;AAAA,MACb,QAAQ;AAAA,IACV,CAAC;AAAA,IACD,OAAO,KAAK;AAAA,MACV,KAAK,OAAO;AAAA,QACV,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,aAAa;AAAA,MACf,CAAC;AAAA,IACH;AAAA,IACA,SAAS,KAAK,OAAO;AAAA,MACnB,OAAO;AAAA,MACP,aAAa;AAAA,MACb,QAAQ;AAAA,IACV,CAAC;AAAA,IACD,QAAQ,KAAK,OAAO;AAAA,MAClB,MAAM,KAAK,OAAO;AAAA,QAChB,OAAO;AAAA,QACP,aAAa;AAAA,MACf,CAAC;AAAA,IACH,CAAC;AAAA,IACD,aAAa,KAAK,OAAO;AAAA,MACvB,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,aAAa;AAAA,IACf,CAAC;AAAA,IACD,MAAM,KAAK,OAAO;AAAA,MAChB,OAAO;AAAA,MACP,SAAS;AAAA,MACT,aAAa;AAAA,IACf,CAAC;AAAA,IACD,QAAQ,WAAW,CAAC,SAAS,aAAa,UAAU,GAAG;AAAA,MACrD,OAAO;AAAA,MACP,aAAa;AAAA,IACf,CAAC;AAAA,IACD,YAAY,KAAK;AAAA,MACf,KAAK;AAAA,QACH,KAAK,OAAO;AAAA,UACV,OAAO;AAAA,UACP,aAAa;AAAA,QACf,CAAC;AAAA,MACH;AAAA,IACF;AAAA,IACA,MAAM,KAAK;AAAA,MACT,KAAK;AAAA,QACH,KAAK,OAAO;AAAA,UACV,OAAO;AAAA,UACP,aAAa;AAAA,QACf,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF,CAAC;AAAA,EACD;AAAA,IACE,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AACF;","names":[]}
|