@upstart.gg/sdk 0.0.137 → 0.0.139
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 +20 -15
- package/dist/shared/ai/schemas.d.ts.map +1 -1
- package/dist/shared/ai/schemas.js +31 -57
- package/dist/shared/ai/schemas.js.map +1 -1
- package/dist/shared/ai/types.d.ts +193 -190
- package/dist/shared/ai/types.d.ts.map +1 -1
- package/dist/shared/ai/types.js +1 -3
- package/dist/shared/analytics/init.d.ts +4 -1
- package/dist/shared/analytics/init.d.ts.map +1 -1
- package/dist/shared/analytics/init.js +14 -20
- package/dist/shared/analytics/init.js.map +1 -1
- package/dist/shared/analytics/track.d.ts +6 -2
- package/dist/shared/analytics/track.d.ts.map +1 -1
- package/dist/shared/analytics/track.js +14 -24
- package/dist/shared/analytics/track.js.map +1 -1
- package/dist/shared/analytics/types.d.ts +10 -8
- package/dist/shared/analytics/types.d.ts.map +1 -1
- package/dist/shared/analytics/types.js +1 -3
- package/dist/shared/attributes.d.ts +488 -475
- package/dist/shared/attributes.d.ts.map +1 -1
- package/dist/shared/attributes.js +369 -44
- package/dist/shared/attributes.js.map +1 -1
- package/dist/shared/brick-manifest.d.ts +126 -108
- package/dist/shared/brick-manifest.d.ts.map +1 -1
- package/dist/shared/brick-manifest.js +36 -12
- package/dist/shared/brick-manifest.js.map +1 -1
- package/dist/shared/bricks/manifests/_types.d.ts +11 -7
- package/dist/shared/bricks/manifests/_types.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/_types.js +1 -3
- package/dist/shared/bricks/manifests/accordion.manifest.d.ts +83 -76
- package/dist/shared/bricks/manifests/accordion.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/accordion.manifest.js +389 -23
- package/dist/shared/bricks/manifests/accordion.manifest.js.map +1 -1
- package/dist/shared/bricks/manifests/all-manifests.d.ts +15 -10
- package/dist/shared/bricks/manifests/all-manifests.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/all-manifests.js +128 -60
- package/dist/shared/bricks/manifests/all-manifests.js.map +1 -1
- package/dist/shared/bricks/manifests/all-props.d.ts +1510 -1495
- package/dist/shared/bricks/manifests/all-props.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/all-props.js +167 -240
- package/dist/shared/bricks/manifests/all-props.js.map +1 -1
- package/dist/shared/bricks/manifests/box.manifest.d.ts +87 -80
- package/dist/shared/bricks/manifests/box.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/box.manifest.js +548 -26
- package/dist/shared/bricks/manifests/box.manifest.js.map +1 -1
- package/dist/shared/bricks/manifests/button.manifest.d.ts +75 -68
- package/dist/shared/bricks/manifests/button.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/button.manifest.js +308 -22
- package/dist/shared/bricks/manifests/button.manifest.js.map +1 -1
- package/dist/shared/bricks/manifests/card.manifest.d.ts +96 -87
- package/dist/shared/bricks/manifests/card.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/card.manifest.js +392 -27
- package/dist/shared/bricks/manifests/card.manifest.js.map +1 -1
- package/dist/shared/bricks/manifests/carousel.manifest.d.ts +86 -78
- package/dist/shared/bricks/manifests/carousel.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/carousel.manifest.js +775 -25
- package/dist/shared/bricks/manifests/carousel.manifest.js.map +1 -1
- package/dist/shared/bricks/manifests/footer.manifest.d.ts +117 -108
- package/dist/shared/bricks/manifests/footer.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/footer.manifest.js +864 -24
- package/dist/shared/bricks/manifests/footer.manifest.js.map +1 -1
- package/dist/shared/bricks/manifests/form.manifest.d.ts +94 -87
- package/dist/shared/bricks/manifests/form.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/form.manifest.js +324 -24
- package/dist/shared/bricks/manifests/form.manifest.js.map +1 -1
- package/dist/shared/bricks/manifests/hero.manifest.d.ts +80 -75
- package/dist/shared/bricks/manifests/hero.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/hero.manifest.js +202 -23
- package/dist/shared/bricks/manifests/hero.manifest.js.map +1 -1
- package/dist/shared/bricks/manifests/html.manifest.d.ts +68 -60
- package/dist/shared/bricks/manifests/html.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/html.manifest.js +95 -17
- package/dist/shared/bricks/manifests/html.manifest.js.map +1 -1
- package/dist/shared/bricks/manifests/icon.manifest.d.ts +74 -67
- package/dist/shared/bricks/manifests/icon.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/icon.manifest.js +239 -23
- package/dist/shared/bricks/manifests/icon.manifest.js.map +1 -1
- package/dist/shared/bricks/manifests/image.manifest.d.ts +97 -89
- package/dist/shared/bricks/manifests/image.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/image.manifest.js +456 -26
- package/dist/shared/bricks/manifests/image.manifest.js.map +1 -1
- package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts +93 -84
- package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/images-gallery.manifest.js +598 -24
- package/dist/shared/bricks/manifests/images-gallery.manifest.js.map +1 -1
- package/dist/shared/bricks/manifests/map.manifest.d.ts +78 -70
- package/dist/shared/bricks/manifests/map.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/map.manifest.js +138 -22
- package/dist/shared/bricks/manifests/map.manifest.js.map +1 -1
- package/dist/shared/bricks/manifests/navbar.manifest.d.ts +117 -108
- package/dist/shared/bricks/manifests/navbar.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/navbar.manifest.js +370 -27
- package/dist/shared/bricks/manifests/navbar.manifest.js.map +1 -1
- package/dist/shared/bricks/manifests/sidebar.manifest.d.ts +94 -87
- package/dist/shared/bricks/manifests/sidebar.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/sidebar.manifest.js +69 -23
- package/dist/shared/bricks/manifests/sidebar.manifest.js.map +1 -1
- package/dist/shared/bricks/manifests/social-links.manifest.d.ts +84 -77
- package/dist/shared/bricks/manifests/social-links.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/social-links.manifest.js +465 -23
- package/dist/shared/bricks/manifests/social-links.manifest.js.map +1 -1
- package/dist/shared/bricks/manifests/spacer.manifest.d.ts +65 -58
- package/dist/shared/bricks/manifests/spacer.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/spacer.manifest.js +39 -17
- package/dist/shared/bricks/manifests/spacer.manifest.js.map +1 -1
- package/dist/shared/bricks/manifests/table.manifest.d.ts +93 -85
- package/dist/shared/bricks/manifests/table.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/table.manifest.js +771 -24
- package/dist/shared/bricks/manifests/table.manifest.js.map +1 -1
- package/dist/shared/bricks/manifests/tabs.manifest.d.ts +91 -84
- package/dist/shared/bricks/manifests/tabs.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/tabs.manifest.js +119 -24
- package/dist/shared/bricks/manifests/tabs.manifest.js.map +1 -1
- package/dist/shared/bricks/manifests/testimonials.manifest.d.ts +97 -88
- package/dist/shared/bricks/manifests/testimonials.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/testimonials.manifest.js +223 -27
- package/dist/shared/bricks/manifests/testimonials.manifest.js.map +1 -1
- package/dist/shared/bricks/manifests/text.manifest.d.ts +76 -72
- package/dist/shared/bricks/manifests/text.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/text.manifest.js +199 -22
- package/dist/shared/bricks/manifests/text.manifest.js.map +1 -1
- package/dist/shared/bricks/manifests/timeline.manifest.d.ts +102 -95
- package/dist/shared/bricks/manifests/timeline.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/timeline.manifest.js +401 -24
- package/dist/shared/bricks/manifests/timeline.manifest.js.map +1 -1
- package/dist/shared/bricks/manifests/video.manifest.d.ts +74 -67
- package/dist/shared/bricks/manifests/video.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/video.manifest.js +97 -20
- package/dist/shared/bricks/manifests/video.manifest.js.map +1 -1
- package/dist/shared/bricks/props/align.d.ts +12 -7
- package/dist/shared/bricks/props/align.d.ts.map +1 -1
- package/dist/shared/bricks/props/align.js +74 -13
- package/dist/shared/bricks/props/align.js.map +1 -1
- package/dist/shared/bricks/props/background.d.ts +21 -17
- package/dist/shared/bricks/props/background.d.ts.map +1 -1
- package/dist/shared/bricks/props/background.js +63 -11
- package/dist/shared/bricks/props/background.js.map +1 -1
- package/dist/shared/bricks/props/boolean.d.ts +6 -2
- package/dist/shared/bricks/props/boolean.d.ts.map +1 -1
- package/dist/shared/bricks/props/boolean.js +12 -8
- package/dist/shared/bricks/props/boolean.js.map +1 -1
- package/dist/shared/bricks/props/border.d.ts +12 -7
- package/dist/shared/bricks/props/border.d.ts.map +1 -1
- package/dist/shared/bricks/props/border.js +85 -12
- package/dist/shared/bricks/props/border.js.map +1 -1
- package/dist/shared/bricks/props/color-preset.d.ts +331 -327
- package/dist/shared/bricks/props/color-preset.d.ts.map +1 -1
- package/dist/shared/bricks/props/color-preset.js +378 -10
- package/dist/shared/bricks/props/color-preset.js.map +1 -1
- package/dist/shared/bricks/props/color.d.ts +10 -5
- package/dist/shared/bricks/props/color.d.ts.map +1 -1
- package/dist/shared/bricks/props/color.js +27 -10
- package/dist/shared/bricks/props/color.js.map +1 -1
- package/dist/shared/bricks/props/common.d.ts +32 -28
- package/dist/shared/bricks/props/common.d.ts.map +1 -1
- package/dist/shared/bricks/props/common.js +42 -12
- package/dist/shared/bricks/props/common.js.map +1 -1
- package/dist/shared/bricks/props/css-length.d.ts +10 -5
- package/dist/shared/bricks/props/css-length.d.ts.map +1 -1
- package/dist/shared/bricks/props/css-length.js +39 -12
- package/dist/shared/bricks/props/css-length.js.map +1 -1
- package/dist/shared/bricks/props/datarecord.d.ts +8 -3
- package/dist/shared/bricks/props/datarecord.d.ts.map +1 -1
- package/dist/shared/bricks/props/datarecord.js +12 -8
- package/dist/shared/bricks/props/datarecord.js.map +1 -1
- package/dist/shared/bricks/props/datasource.d.ts +18 -13
- package/dist/shared/bricks/props/datasource.d.ts.map +1 -1
- package/dist/shared/bricks/props/datasource.js +61 -84
- package/dist/shared/bricks/props/datasource.js.map +1 -1
- package/dist/shared/bricks/props/date.d.ts +8 -3
- package/dist/shared/bricks/props/date.d.ts.map +1 -1
- package/dist/shared/bricks/props/date.js +19 -23
- package/dist/shared/bricks/props/date.js.map +1 -1
- package/dist/shared/bricks/props/direction.d.ts +8 -3
- package/dist/shared/bricks/props/direction.d.ts.map +1 -1
- package/dist/shared/bricks/props/direction.js +16 -9
- package/dist/shared/bricks/props/direction.js.map +1 -1
- package/dist/shared/bricks/props/dynamic.d.ts +39 -34
- package/dist/shared/bricks/props/dynamic.d.ts.map +1 -1
- package/dist/shared/bricks/props/dynamic.js +92 -13
- package/dist/shared/bricks/props/dynamic.js.map +1 -1
- package/dist/shared/bricks/props/effects.d.ts +18 -11
- package/dist/shared/bricks/props/effects.d.ts.map +1 -1
- package/dist/shared/bricks/props/effects.js +81 -13
- package/dist/shared/bricks/props/effects.js.map +1 -1
- package/dist/shared/bricks/props/file.d.ts +6 -1
- package/dist/shared/bricks/props/file.d.ts.map +1 -1
- package/dist/shared/bricks/props/file.js +11 -14
- package/dist/shared/bricks/props/file.js.map +1 -1
- package/dist/shared/bricks/props/geolocation.d.ts +15 -10
- package/dist/shared/bricks/props/geolocation.d.ts.map +1 -1
- package/dist/shared/bricks/props/geolocation.js +28 -40
- package/dist/shared/bricks/props/geolocation.js.map +1 -1
- package/dist/shared/bricks/props/grow.d.ts +8 -0
- package/dist/shared/bricks/props/grow.d.ts.map +1 -0
- package/dist/shared/bricks/props/grow.js +16 -0
- package/dist/shared/bricks/props/grow.js.map +1 -0
- package/dist/shared/bricks/props/helpers.d.ts +32 -24
- package/dist/shared/bricks/props/helpers.d.ts.map +1 -1
- package/dist/shared/bricks/props/helpers.js +50 -18
- package/dist/shared/bricks/props/helpers.js.map +1 -1
- package/dist/shared/bricks/props/image.d.ts +15 -11
- package/dist/shared/bricks/props/image.d.ts.map +1 -1
- package/dist/shared/bricks/props/image.js +109 -9
- package/dist/shared/bricks/props/image.js.map +1 -1
- package/dist/shared/bricks/props/number.d.ts +8 -4
- package/dist/shared/bricks/props/number.d.ts.map +1 -1
- package/dist/shared/bricks/props/number.js +11 -8
- package/dist/shared/bricks/props/number.js.map +1 -1
- package/dist/shared/bricks/props/position.d.ts +8 -3
- package/dist/shared/bricks/props/position.d.ts.map +1 -1
- package/dist/shared/bricks/props/position.js +12 -8
- package/dist/shared/bricks/props/position.js.map +1 -1
- package/dist/shared/bricks/props/string.d.ts +13 -9
- package/dist/shared/bricks/props/string.d.ts.map +1 -1
- package/dist/shared/bricks/props/string.js +34 -12
- package/dist/shared/bricks/props/string.js.map +1 -1
- package/dist/shared/bricks/props/tags.d.ts +8 -3
- package/dist/shared/bricks/props/tags.d.ts.map +1 -1
- package/dist/shared/bricks/props/tags.js +16 -8
- package/dist/shared/bricks/props/tags.js.map +1 -1
- package/dist/shared/bricks/props/text.d.ts +22 -11
- package/dist/shared/bricks/props/text.d.ts.map +1 -1
- package/dist/shared/bricks/props/text.js +79 -13
- package/dist/shared/bricks/props/text.js.map +1 -1
- package/dist/shared/bricks/props/types.d.ts +52 -49
- package/dist/shared/bricks/props/types.d.ts.map +1 -1
- package/dist/shared/bricks/props/types.js +1 -3
- package/dist/shared/bricks.d.ts +183 -178
- package/dist/shared/bricks.d.ts.map +1 -1
- package/dist/shared/bricks.js +271 -77
- package/dist/shared/bricks.js.map +1 -1
- package/dist/shared/context.d.ts +405 -394
- package/dist/shared/context.d.ts.map +1 -1
- package/dist/shared/context.js +22 -92
- package/dist/shared/context.js.map +1 -1
- package/dist/shared/datarecords/external/airtable/handler.d.ts +40 -20
- package/dist/shared/datarecords/external/airtable/handler.d.ts.map +1 -1
- package/dist/shared/datarecords/external/airtable/handler.js +242 -366
- package/dist/shared/datarecords/external/airtable/handler.js.map +1 -1
- package/dist/shared/datarecords/external/airtable/oauth/config.d.ts +14 -9
- package/dist/shared/datarecords/external/airtable/oauth/config.d.ts.map +1 -1
- package/dist/shared/datarecords/external/airtable/oauth/config.js +12 -15
- package/dist/shared/datarecords/external/airtable/oauth/config.js.map +1 -1
- package/dist/shared/datarecords/external/airtable/types.d.ts +39 -35
- package/dist/shared/datarecords/external/airtable/types.d.ts.map +1 -1
- package/dist/shared/datarecords/external/airtable/types.js +44 -13
- package/dist/shared/datarecords/external/airtable/types.js.map +1 -1
- package/dist/shared/datarecords/external/generic-webhook/handler.d.ts +6 -2
- package/dist/shared/datarecords/external/generic-webhook/handler.d.ts.map +1 -1
- package/dist/shared/datarecords/external/generic-webhook/handler.js +9 -14
- package/dist/shared/datarecords/external/generic-webhook/handler.js.map +1 -1
- package/dist/shared/datarecords/external/generic-webhook/options.d.ts +10 -5
- package/dist/shared/datarecords/external/generic-webhook/options.d.ts.map +1 -1
- package/dist/shared/datarecords/external/generic-webhook/options.js +14 -16
- package/dist/shared/datarecords/external/generic-webhook/options.js.map +1 -1
- package/dist/shared/datarecords/external/google/oauth/config.d.ts +28 -24
- package/dist/shared/datarecords/external/google/oauth/config.d.ts.map +1 -1
- package/dist/shared/datarecords/external/google/oauth/config.js +25 -34
- package/dist/shared/datarecords/external/google/oauth/config.js.map +1 -1
- package/dist/shared/datarecords/external/google/sheets/client.d.ts +11 -9
- package/dist/shared/datarecords/external/google/sheets/client.d.ts.map +1 -1
- package/dist/shared/datarecords/external/google/sheets/client.js +75 -8
- package/dist/shared/datarecords/external/google/sheets/client.js.map +1 -1
- package/dist/shared/datarecords/external/google/sheets/handler.d.ts +36 -18
- package/dist/shared/datarecords/external/google/sheets/handler.d.ts.map +1 -1
- package/dist/shared/datarecords/external/google/sheets/handler.js +103 -176
- package/dist/shared/datarecords/external/google/sheets/handler.js.map +1 -1
- package/dist/shared/datarecords/external/google/sheets/types.d.ts +12 -7
- package/dist/shared/datarecords/external/google/sheets/types.d.ts.map +1 -1
- package/dist/shared/datarecords/external/google/sheets/types.js +11 -8
- package/dist/shared/datarecords/external/google/sheets/types.js.map +1 -1
- package/dist/shared/datarecords/external/notion/handler.d.ts +48 -26
- package/dist/shared/datarecords/external/notion/handler.d.ts.map +1 -1
- package/dist/shared/datarecords/external/notion/handler.js +233 -386
- package/dist/shared/datarecords/external/notion/handler.js.map +1 -1
- package/dist/shared/datarecords/external/notion/oauth/config.d.ts +10 -5
- package/dist/shared/datarecords/external/notion/oauth/config.d.ts.map +1 -1
- package/dist/shared/datarecords/external/notion/oauth/config.js +8 -11
- package/dist/shared/datarecords/external/notion/oauth/config.js.map +1 -1
- package/dist/shared/datarecords/external/notion/types.d.ts +20 -15
- package/dist/shared/datarecords/external/notion/types.d.ts.map +1 -1
- package/dist/shared/datarecords/external/notion/types.js +14 -8
- package/dist/shared/datarecords/external/notion/types.js.map +1 -1
- package/dist/shared/datarecords/types.d.ts +24 -19
- package/dist/shared/datarecords/types.d.ts.map +1 -1
- package/dist/shared/datarecords/types.js +144 -16
- package/dist/shared/datarecords/types.js.map +1 -1
- package/dist/shared/datarecords.d.ts +6 -2
- package/dist/shared/datarecords.d.ts.map +1 -1
- package/dist/shared/datarecords.js +5 -9
- package/dist/shared/datarecords.js.map +1 -1
- package/dist/shared/datasources/external/facebook/posts/fetcher.d.ts +8 -5
- package/dist/shared/datasources/external/facebook/posts/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/external/facebook/posts/fetcher.js +38 -48
- package/dist/shared/datasources/external/facebook/posts/fetcher.js.map +1 -1
- package/dist/shared/datasources/external/facebook/posts/schema.d.ts +30 -25
- package/dist/shared/datasources/external/facebook/posts/schema.d.ts.map +1 -1
- package/dist/shared/datasources/external/facebook/posts/schema.js +29 -36
- package/dist/shared/datasources/external/facebook/posts/schema.js.map +1 -1
- package/dist/shared/datasources/external/http-json/fetcher.d.ts +7 -3
- package/dist/shared/datasources/external/http-json/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/external/http-json/fetcher.js +16 -28
- package/dist/shared/datasources/external/http-json/fetcher.js.map +1 -1
- package/dist/shared/datasources/external/http-json/options.d.ts +10 -5
- package/dist/shared/datasources/external/http-json/options.d.ts.map +1 -1
- package/dist/shared/datasources/external/http-json/options.js +8 -11
- package/dist/shared/datasources/external/http-json/options.js.map +1 -1
- package/dist/shared/datasources/external/http-json/schema.d.ts +9 -4
- package/dist/shared/datasources/external/http-json/schema.d.ts.map +1 -1
- package/dist/shared/datasources/external/http-json/schema.js +6 -10
- package/dist/shared/datasources/external/http-json/schema.js.map +1 -1
- package/dist/shared/datasources/external/instagram/feed/fetcher.d.ts +8 -5
- package/dist/shared/datasources/external/instagram/feed/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/external/instagram/feed/fetcher.js +26 -28
- package/dist/shared/datasources/external/instagram/feed/fetcher.js.map +1 -1
- package/dist/shared/datasources/external/instagram/feed/schema.d.ts +22 -17
- package/dist/shared/datasources/external/instagram/feed/schema.d.ts.map +1 -1
- package/dist/shared/datasources/external/instagram/feed/schema.js +26 -29
- package/dist/shared/datasources/external/instagram/feed/schema.js.map +1 -1
- package/dist/shared/datasources/external/mastodon/account/fetcher.d.ts +7 -4
- package/dist/shared/datasources/external/mastodon/account/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/external/mastodon/account/fetcher.js +10 -8
- package/dist/shared/datasources/external/mastodon/account/fetcher.js.map +1 -1
- package/dist/shared/datasources/external/mastodon/account/schema.d.ts +43 -38
- package/dist/shared/datasources/external/mastodon/account/schema.d.ts.map +1 -1
- package/dist/shared/datasources/external/mastodon/account/schema.js +42 -8
- package/dist/shared/datasources/external/mastodon/account/schema.js.map +1 -1
- package/dist/shared/datasources/external/mastodon/options.d.ts +9 -4
- package/dist/shared/datasources/external/mastodon/options.d.ts.map +1 -1
- package/dist/shared/datasources/external/mastodon/options.js +5 -10
- package/dist/shared/datasources/external/mastodon/options.js.map +1 -1
- package/dist/shared/datasources/external/mastodon/status/fetcher.d.ts +7 -4
- package/dist/shared/datasources/external/mastodon/status/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/external/mastodon/status/fetcher.js +20 -31
- package/dist/shared/datasources/external/mastodon/status/fetcher.js.map +1 -1
- package/dist/shared/datasources/external/mastodon/status/sample.array.d.ts +50 -47
- package/dist/shared/datasources/external/mastodon/status/sample.array.d.ts.map +1 -1
- package/dist/shared/datasources/external/mastodon/status/sample.array.js +54 -62
- package/dist/shared/datasources/external/mastodon/status/sample.array.js.map +1 -1
- package/dist/shared/datasources/external/mastodon/status/sample.single.d.ts +50 -47
- package/dist/shared/datasources/external/mastodon/status/sample.single.d.ts.map +1 -1
- package/dist/shared/datasources/external/mastodon/status/sample.single.js +54 -60
- package/dist/shared/datasources/external/mastodon/status/sample.single.js.map +1 -1
- package/dist/shared/datasources/external/mastodon/status/schema.d.ts +252 -247
- package/dist/shared/datasources/external/mastodon/status/schema.d.ts.map +1 -1
- package/dist/shared/datasources/external/mastodon/status/schema.js +108 -108
- package/dist/shared/datasources/external/mastodon/status/schema.js.map +1 -1
- package/dist/shared/datasources/external/meta/oauth/config.d.ts +29 -25
- package/dist/shared/datasources/external/meta/oauth/config.d.ts.map +1 -1
- package/dist/shared/datasources/external/meta/oauth/config.js +15 -20
- package/dist/shared/datasources/external/meta/oauth/config.js.map +1 -1
- package/dist/shared/datasources/external/meta/options.d.ts +9 -4
- package/dist/shared/datasources/external/meta/options.d.ts.map +1 -1
- package/dist/shared/datasources/external/meta/options.js +5 -10
- package/dist/shared/datasources/external/meta/options.js.map +1 -1
- package/dist/shared/datasources/external/rss/fetcher.d.ts +7 -4
- package/dist/shared/datasources/external/rss/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/external/rss/fetcher.js +14 -25
- package/dist/shared/datasources/external/rss/fetcher.js.map +1 -1
- package/dist/shared/datasources/external/rss/options.d.ts +9 -4
- package/dist/shared/datasources/external/rss/options.d.ts.map +1 -1
- package/dist/shared/datasources/external/rss/options.js +5 -10
- package/dist/shared/datasources/external/rss/options.js.map +1 -1
- package/dist/shared/datasources/external/rss/sample.js +25 -0
- package/dist/shared/datasources/external/rss/sample.js.map +1 -0
- package/dist/shared/datasources/external/rss/schema.d.ts +13 -8
- package/dist/shared/datasources/external/rss/schema.d.ts.map +1 -1
- package/dist/shared/datasources/external/rss/schema.js +30 -8
- package/dist/shared/datasources/external/rss/schema.js.map +1 -1
- package/dist/shared/datasources/external/threads/media/fetcher.d.ts +9 -5
- package/dist/shared/datasources/external/threads/media/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/external/threads/media/fetcher.js +37 -46
- package/dist/shared/datasources/external/threads/media/fetcher.js.map +1 -1
- package/dist/shared/datasources/external/threads/media/schema.d.ts +29 -24
- package/dist/shared/datasources/external/threads/media/schema.d.ts.map +1 -1
- package/dist/shared/datasources/external/threads/media/schema.js +32 -36
- package/dist/shared/datasources/external/threads/media/schema.js.map +1 -1
- package/dist/shared/datasources/external/tiktok/oauth/config.d.ts +31 -27
- package/dist/shared/datasources/external/tiktok/oauth/config.d.ts.map +1 -1
- package/dist/shared/datasources/external/tiktok/oauth/config.js +15 -18
- package/dist/shared/datasources/external/tiktok/oauth/config.js.map +1 -1
- package/dist/shared/datasources/external/tiktok/video/fetcher.d.ts +8 -5
- package/dist/shared/datasources/external/tiktok/video/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/external/tiktok/video/fetcher.js +31 -33
- package/dist/shared/datasources/external/tiktok/video/fetcher.js.map +1 -1
- package/dist/shared/datasources/external/tiktok/video/options.d.ts +10 -5
- package/dist/shared/datasources/external/tiktok/video/options.d.ts.map +1 -1
- package/dist/shared/datasources/external/tiktok/video/options.js +8 -11
- package/dist/shared/datasources/external/tiktok/video/options.js.map +1 -1
- package/dist/shared/datasources/external/tiktok/video/schema.d.ts +24 -19
- package/dist/shared/datasources/external/tiktok/video/schema.d.ts.map +1 -1
- package/dist/shared/datasources/external/tiktok/video/schema.js +23 -30
- package/dist/shared/datasources/external/tiktok/video/schema.js.map +1 -1
- package/dist/shared/datasources/external/youtube/list/fetcher.d.ts +8 -5
- package/dist/shared/datasources/external/youtube/list/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/external/youtube/list/fetcher.js +20 -31
- package/dist/shared/datasources/external/youtube/list/fetcher.js.map +1 -1
- package/dist/shared/datasources/external/youtube/list/options.d.ts +13 -8
- package/dist/shared/datasources/external/youtube/list/options.d.ts.map +1 -1
- package/dist/shared/datasources/external/youtube/list/options.js +11 -14
- package/dist/shared/datasources/external/youtube/list/options.js.map +1 -1
- package/dist/shared/datasources/external/youtube/list/sample.js +33 -0
- package/dist/shared/datasources/external/youtube/list/sample.js.map +1 -0
- package/dist/shared/datasources/external/youtube/list/schema.d.ts +33 -28
- package/dist/shared/datasources/external/youtube/list/schema.d.ts.map +1 -1
- package/dist/shared/datasources/external/youtube/list/schema.js +36 -8
- package/dist/shared/datasources/external/youtube/list/schema.js.map +1 -1
- package/dist/shared/datasources/external/youtube/oauth/config.d.ts +22 -18
- package/dist/shared/datasources/external/youtube/oauth/config.d.ts.map +1 -1
- package/dist/shared/datasources/external/youtube/oauth/config.js +15 -18
- package/dist/shared/datasources/external/youtube/oauth/config.js.map +1 -1
- package/dist/shared/datasources/fetcher.d.ts +10 -6
- package/dist/shared/datasources/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/fetcher.js +1 -3
- package/dist/shared/datasources/internal/blog/schema.d.ts +20 -15
- package/dist/shared/datasources/internal/blog/schema.d.ts.map +1 -1
- package/dist/shared/datasources/internal/blog/schema.js +59 -75
- package/dist/shared/datasources/internal/blog/schema.js.map +1 -1
- package/dist/shared/datasources/internal/changelog/schema.d.ts +15 -10
- package/dist/shared/datasources/internal/changelog/schema.d.ts.map +1 -1
- package/dist/shared/datasources/internal/changelog/schema.js +36 -51
- package/dist/shared/datasources/internal/changelog/schema.js.map +1 -1
- package/dist/shared/datasources/internal/contact-info/schema.d.ts +21 -16
- package/dist/shared/datasources/internal/contact-info/schema.d.ts.map +1 -1
- package/dist/shared/datasources/internal/contact-info/schema.js +21 -25
- package/dist/shared/datasources/internal/contact-info/schema.js.map +1 -1
- package/dist/shared/datasources/internal/cv/schema.d.ts +71 -66
- package/dist/shared/datasources/internal/cv/schema.d.ts.map +1 -1
- package/dist/shared/datasources/internal/cv/schema.js +155 -222
- package/dist/shared/datasources/internal/cv/schema.js.map +1 -1
- package/dist/shared/datasources/internal/faq/schema.d.ts +13 -8
- package/dist/shared/datasources/internal/faq/schema.d.ts.map +1 -1
- package/dist/shared/datasources/internal/faq/schema.js +20 -30
- package/dist/shared/datasources/internal/faq/schema.js.map +1 -1
- package/dist/shared/datasources/internal/job-board/schema.d.ts +86 -81
- package/dist/shared/datasources/internal/job-board/schema.d.ts.map +1 -1
- package/dist/shared/datasources/internal/job-board/schema.js +194 -224
- package/dist/shared/datasources/internal/job-board/schema.js.map +1 -1
- package/dist/shared/datasources/internal/links/schema.d.ts +12 -7
- package/dist/shared/datasources/internal/links/schema.d.ts.map +1 -1
- package/dist/shared/datasources/internal/links/schema.js +20 -8
- package/dist/shared/datasources/internal/links/schema.js.map +1 -1
- package/dist/shared/datasources/internal/recipes/schema.d.ts +19 -14
- package/dist/shared/datasources/internal/recipes/schema.d.ts.map +1 -1
- package/dist/shared/datasources/internal/recipes/schema.js +23 -45
- package/dist/shared/datasources/internal/recipes/schema.js.map +1 -1
- package/dist/shared/datasources/internal/restaurant/schema.d.ts +82 -77
- package/dist/shared/datasources/internal/restaurant/schema.d.ts.map +1 -1
- package/dist/shared/datasources/internal/restaurant/schema.js +154 -226
- package/dist/shared/datasources/internal/restaurant/schema.js.map +1 -1
- package/dist/shared/datasources/samples.d.ts +7 -3
- package/dist/shared/datasources/samples.d.ts.map +1 -1
- package/dist/shared/datasources/samples.js +9 -69
- package/dist/shared/datasources/samples.js.map +1 -1
- package/dist/shared/datasources/schemas.d.ts +43 -38
- package/dist/shared/datasources/schemas.d.ts.map +1 -1
- package/dist/shared/datasources/schemas.js +10 -34
- package/dist/shared/datasources/schemas.js.map +1 -1
- package/dist/shared/datasources/types.d.ts +142 -138
- package/dist/shared/datasources/types.d.ts.map +1 -1
- package/dist/shared/datasources/types.js +384 -20
- package/dist/shared/datasources/types.js.map +1 -1
- package/dist/shared/datasources/utils.d.ts +8 -4
- package/dist/shared/datasources/utils.d.ts.map +1 -1
- package/dist/shared/datasources/utils.js +15 -12
- package/dist/shared/datasources/utils.js.map +1 -1
- package/dist/shared/datasources.d.ts +22 -9
- package/dist/shared/datasources.d.ts.map +1 -1
- package/dist/shared/datasources.js +65 -44
- package/dist/shared/datasources.js.map +1 -1
- package/dist/shared/env.d.ts +25 -21
- package/dist/shared/env.d.ts.map +1 -1
- package/dist/shared/env.js +1 -3
- package/dist/shared/errors.d.ts +2 -2
- package/dist/shared/errors.js +2 -9
- package/dist/shared/images.d.ts +21 -16
- package/dist/shared/images.d.ts.map +1 -1
- package/dist/shared/images.js +24 -11
- package/dist/shared/images.js.map +1 -1
- package/dist/shared/index.d.ts +4 -2
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index.js +4 -10
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/layout-constants.d.ts +8 -5
- package/dist/shared/layout-constants.d.ts.map +1 -1
- package/dist/shared/layout-constants.js +15 -15
- package/dist/shared/layout-constants.js.map +1 -1
- package/dist/shared/manifest.d.ts +17 -12
- package/dist/shared/manifest.d.ts.map +1 -1
- package/dist/shared/manifest.js +26 -52
- package/dist/shared/manifest.js.map +1 -1
- package/dist/shared/oauth.d.ts +14 -9
- package/dist/shared/oauth.d.ts.map +1 -1
- package/dist/shared/oauth.js +14 -9
- package/dist/shared/oauth.js.map +1 -1
- package/dist/shared/page.d.ts +250 -241
- package/dist/shared/page.d.ts.map +1 -1
- package/dist/shared/page.js +29 -61
- package/dist/shared/page.js.map +1 -1
- package/dist/shared/prompt.d.ts +8 -3
- package/dist/shared/prompt.d.ts.map +1 -1
- package/dist/shared/prompt.js +10 -8
- package/dist/shared/prompt.js.map +1 -1
- package/dist/shared/responsive.d.ts +8 -3
- package/dist/shared/responsive.d.ts.map +1 -1
- package/dist/shared/responsive.js +5 -10
- package/dist/shared/responsive.js.map +1 -1
- package/dist/shared/site.d.ts +629 -615
- package/dist/shared/site.d.ts.map +1 -1
- package/dist/shared/site.js +56 -69
- package/dist/shared/site.js.map +1 -1
- package/dist/shared/sitemap.d.ts +21 -14
- package/dist/shared/sitemap.d.ts.map +1 -1
- package/dist/shared/sitemap.js +29 -62
- package/dist/shared/sitemap.js.map +1 -1
- package/dist/shared/social-icons.d.ts +6 -3
- package/dist/shared/social-icons.d.ts.map +1 -1
- package/dist/shared/social-icons.js +309 -313
- package/dist/shared/social-icons.js.map +1 -1
- package/dist/shared/theme.d.ts +83 -78
- package/dist/shared/theme.d.ts.map +1 -1
- package/dist/shared/theme.js +261 -18
- package/dist/shared/theme.js.map +1 -1
- package/dist/shared/themes/color-system.d.ts +16 -12
- package/dist/shared/themes/color-system.d.ts.map +1 -1
- package/dist/shared/themes/color-system.js +81 -89
- package/dist/shared/themes/color-system.js.map +1 -1
- package/dist/shared/utils/canvas-data-uri.d.ts +4 -1
- package/dist/shared/utils/canvas-data-uri.d.ts.map +1 -1
- package/dist/shared/utils/canvas-data-uri.js +4 -8
- package/dist/shared/utils/canvas-data-uri.js.map +1 -1
- package/dist/shared/utils/invariant.d.ts +4 -1
- package/dist/shared/utils/invariant.d.ts.map +1 -1
- package/dist/shared/utils/invariant.js +10 -8
- package/dist/shared/utils/invariant.js.map +1 -1
- package/dist/shared/utils/json-date.d.ts +9 -4
- package/dist/shared/utils/json-date.d.ts.map +1 -1
- package/dist/shared/utils/json-date.js +6 -8
- package/dist/shared/utils/json-date.js.map +1 -1
- package/dist/shared/utils/llm.d.ts +7 -2
- package/dist/shared/utils/llm.d.ts.map +1 -1
- package/dist/shared/utils/llm.js +57 -8
- package/dist/shared/utils/llm.js.map +1 -1
- package/dist/shared/utils/merge.d.ts +4 -1
- package/dist/shared/utils/merge.d.ts.map +1 -1
- package/dist/shared/utils/merge.js +11 -8
- package/dist/shared/utils/merge.js.map +1 -1
- package/dist/shared/utils/object-hash.d.ts +4 -1
- package/dist/shared/utils/object-hash.d.ts.map +1 -1
- package/dist/shared/utils/object-hash.js +8 -13
- package/dist/shared/utils/object-hash.js.map +1 -1
- package/dist/shared/utils/schema.d.ts +13 -15
- package/dist/shared/utils/schema.d.ts.map +1 -1
- package/dist/shared/utils/schema.js +91 -16
- package/dist/shared/utils/schema.js.map +1 -1
- package/dist/shared/utils/string-enum.d.ts +13 -8
- package/dist/shared/utils/string-enum.d.ts.map +1 -1
- package/dist/shared/utils/string-enum.js +18 -8
- package/dist/shared/utils/string-enum.js.map +1 -1
- package/dist/shared/utils/try-catch.d.ts +4 -2
- package/dist/shared/utils/try-catch.d.ts.map +1 -1
- package/dist/shared/utils/try-catch.js +12 -13
- package/dist/shared/utils/try-catch.js.map +1 -1
- package/package.json +10 -20
- package/src/shared/ai/schemas.ts +6 -4
- package/src/shared/ai/types.ts +2 -2
- package/src/shared/attributes.ts +10 -6
- package/src/shared/bricks/manifests/card.manifest.ts +27 -173
- package/src/shared/bricks/manifests/hero.manifest.ts +44 -249
- package/src/shared/bricks/manifests/html.manifest.ts +6 -0
- package/src/shared/bricks/manifests/icon.manifest.ts +1 -89
- package/src/shared/bricks/manifests/image.manifest.ts +1 -9
- package/src/shared/bricks/manifests/images-gallery.manifest.ts +8 -0
- package/src/shared/bricks/manifests/map.manifest.ts +9 -65
- package/src/shared/bricks/manifests/sidebar.manifest.ts +0 -1
- package/src/shared/bricks/manifests/social-links.manifest.ts +0 -1
- package/src/shared/bricks/manifests/spacer.manifest.ts +0 -1
- package/src/shared/bricks/manifests/table.manifest.ts +6 -0
- package/src/shared/bricks/manifests/tabs.manifest.ts +12 -429
- package/src/shared/bricks/manifests/testimonials.manifest.ts +28 -226
- package/src/shared/bricks/manifests/text.manifest.ts +16 -44
- package/src/shared/bricks/props/background.ts +2 -1
- package/src/shared/bricks/props/color.ts +6 -2
- package/src/shared/bricks/props/common.ts +2 -8
- package/src/shared/bricks/props/dynamic.ts +4 -1
- package/src/shared/bricks/props/grow.ts +11 -0
- package/src/shared/bricks/props/image.ts +41 -2
- package/src/shared/bricks/props/string.ts +2 -0
- package/src/shared/bricks.ts +35 -24
- package/src/shared/datarecords/types.ts +41 -33
- package/src/shared/datasources/external/rss/fetcher.ts +0 -6
- package/src/shared/datasources.ts +13 -5
- package/src/shared/page.ts +1 -0
- package/src/shared/prompt.ts +1 -1
- package/src/shared/site.ts +3 -1
- package/src/shared/sitemap.ts +7 -0
- package/src/shared/utils/schema.ts +31 -52
- package/src/shared/utils/tests/schema.test.ts +239 -7
- package/dist/shared/ai/types.js.map +0 -1
- package/dist/shared/ajv.d.ts +0 -7
- package/dist/shared/ajv.d.ts.map +0 -1
- package/dist/shared/ajv.js +0 -6865
- package/dist/shared/ajv.js.map +0 -1
- package/dist/shared/analytics/types.js.map +0 -1
- package/dist/shared/bricks/manifests/_types.js.map +0 -1
- package/dist/shared/bricks/manifests/tests/header.manifest.test.d.ts +0 -2
- package/dist/shared/bricks/manifests/tests/header.manifest.test.d.ts.map +0 -1
- package/dist/shared/bricks/props/tests/background.test.d.ts +0 -2
- package/dist/shared/bricks/props/tests/background.test.d.ts.map +0 -1
- package/dist/shared/bricks/props/tests/border.test.d.ts +0 -2
- package/dist/shared/bricks/props/tests/border.test.d.ts.map +0 -1
- package/dist/shared/bricks/props/tests/effects.test.d.ts +0 -2
- package/dist/shared/bricks/props/tests/effects.test.d.ts.map +0 -1
- package/dist/shared/bricks/props/tests/helpers.test.d.ts +0 -2
- package/dist/shared/bricks/props/tests/helpers.test.d.ts.map +0 -1
- package/dist/shared/bricks/props/tests/image.test.d.ts +0 -2
- package/dist/shared/bricks/props/tests/image.test.d.ts.map +0 -1
- package/dist/shared/bricks/props/tests/string.test.d.ts +0 -2
- package/dist/shared/bricks/props/tests/string.test.d.ts.map +0 -1
- package/dist/shared/bricks/props/types.js.map +0 -1
- package/dist/shared/chunk-2BPYOTKA.js +0 -21
- package/dist/shared/chunk-2BPYOTKA.js.map +0 -1
- package/dist/shared/chunk-2O5HVPID.js +0 -41
- package/dist/shared/chunk-2O5HVPID.js.map +0 -1
- package/dist/shared/chunk-2U5U3CCJ.js +0 -90
- package/dist/shared/chunk-2U5U3CCJ.js.map +0 -1
- package/dist/shared/chunk-3ZDN5BWN.js +0 -18
- package/dist/shared/chunk-3ZDN5BWN.js.map +0 -1
- package/dist/shared/chunk-4KY7OZWD.js +0 -368
- package/dist/shared/chunk-4KY7OZWD.js.map +0 -1
- package/dist/shared/chunk-55C6MTX2.js +0 -21
- package/dist/shared/chunk-55C6MTX2.js.map +0 -1
- package/dist/shared/chunk-5RCC2STG.js +0 -58
- package/dist/shared/chunk-5RCC2STG.js.map +0 -1
- package/dist/shared/chunk-6AE7UD73.js +0 -272
- package/dist/shared/chunk-6AE7UD73.js.map +0 -1
- package/dist/shared/chunk-6TVVKUWM.js +0 -15
- package/dist/shared/chunk-6TVVKUWM.js.map +0 -1
- package/dist/shared/chunk-6WIMWLCJ.js +0 -17
- package/dist/shared/chunk-6WIMWLCJ.js.map +0 -1
- package/dist/shared/chunk-7LAWWRU7.js +0 -21
- package/dist/shared/chunk-7LAWWRU7.js.map +0 -1
- package/dist/shared/chunk-7U5WPHXB.js +0 -346
- package/dist/shared/chunk-7U5WPHXB.js.map +0 -1
- package/dist/shared/chunk-BHARJBEK.js +0 -27
- package/dist/shared/chunk-BHARJBEK.js.map +0 -1
- package/dist/shared/chunk-BZTWZC77.js +0 -530
- package/dist/shared/chunk-BZTWZC77.js.map +0 -1
- package/dist/shared/chunk-DCM4732T.js +0 -146
- package/dist/shared/chunk-DCM4732T.js.map +0 -1
- package/dist/shared/chunk-DRQKKPTX.js +0 -86
- package/dist/shared/chunk-DRQKKPTX.js.map +0 -1
- package/dist/shared/chunk-EID5HPF3.js +0 -63
- package/dist/shared/chunk-EID5HPF3.js.map +0 -1
- package/dist/shared/chunk-EMF5TCPX.js +0 -389
- package/dist/shared/chunk-EMF5TCPX.js.map +0 -1
- package/dist/shared/chunk-FD7YYFRI.js +0 -225
- package/dist/shared/chunk-FD7YYFRI.js.map +0 -1
- package/dist/shared/chunk-FHA4DFIM.js +0 -537
- package/dist/shared/chunk-FHA4DFIM.js.map +0 -1
- package/dist/shared/chunk-FUUSAMN3.js +0 -847
- package/dist/shared/chunk-FUUSAMN3.js.map +0 -1
- package/dist/shared/chunk-GDYCCB3B.js +0 -22
- package/dist/shared/chunk-GDYCCB3B.js.map +0 -1
- package/dist/shared/chunk-GLV6QIIM.js +0 -41
- package/dist/shared/chunk-GLV6QIIM.js.map +0 -1
- package/dist/shared/chunk-H6TMBELF.js +0 -374
- package/dist/shared/chunk-H6TMBELF.js.map +0 -1
- package/dist/shared/chunk-HPCCD6V5.js +0 -17
- package/dist/shared/chunk-HPCCD6V5.js.map +0 -1
- package/dist/shared/chunk-HUWMIXNN.js +0 -570
- package/dist/shared/chunk-HUWMIXNN.js.map +0 -1
- package/dist/shared/chunk-HY7JOP3J.js +0 -150
- package/dist/shared/chunk-HY7JOP3J.js.map +0 -1
- package/dist/shared/chunk-IEMCCHM4.js +0 -389
- package/dist/shared/chunk-IEMCCHM4.js.map +0 -1
- package/dist/shared/chunk-J45LSQT6.js +0 -56
- package/dist/shared/chunk-J45LSQT6.js.map +0 -1
- package/dist/shared/chunk-JF52BBFD.js +0 -461
- package/dist/shared/chunk-JF52BBFD.js.map +0 -1
- package/dist/shared/chunk-JLDAS3VE.js +0 -498
- package/dist/shared/chunk-JLDAS3VE.js.map +0 -1
- package/dist/shared/chunk-JSDKK5QN.js +0 -31
- package/dist/shared/chunk-JSDKK5QN.js.map +0 -1
- package/dist/shared/chunk-JW7MQAU4.js +0 -354
- package/dist/shared/chunk-JW7MQAU4.js.map +0 -1
- package/dist/shared/chunk-KKWT3OXF.js +0 -60
- package/dist/shared/chunk-KKWT3OXF.js.map +0 -1
- package/dist/shared/chunk-KNREHAPN.js +0 -13
- package/dist/shared/chunk-KNREHAPN.js.map +0 -1
- package/dist/shared/chunk-KQH6V22E.js +0 -213
- package/dist/shared/chunk-KQH6V22E.js.map +0 -1
- package/dist/shared/chunk-KT7SSWMM.js +0 -24
- package/dist/shared/chunk-KT7SSWMM.js.map +0 -1
- package/dist/shared/chunk-LGDDJJHK.js +0 -616
- package/dist/shared/chunk-LGDDJJHK.js.map +0 -1
- package/dist/shared/chunk-LGGPCCCY.js +0 -59
- package/dist/shared/chunk-LGGPCCCY.js.map +0 -1
- package/dist/shared/chunk-LPAQ47C6.js +0 -422
- package/dist/shared/chunk-LPAQ47C6.js.map +0 -1
- package/dist/shared/chunk-MO6CRLQA.js +0 -73
- package/dist/shared/chunk-MO6CRLQA.js.map +0 -1
- package/dist/shared/chunk-MYOLWTB2.js +0 -516
- package/dist/shared/chunk-MYOLWTB2.js.map +0 -1
- package/dist/shared/chunk-O24RDXZS.js +0 -505
- package/dist/shared/chunk-O24RDXZS.js.map +0 -1
- package/dist/shared/chunk-O5PQISX4.js +0 -51
- package/dist/shared/chunk-O5PQISX4.js.map +0 -1
- package/dist/shared/chunk-OJ6KL7FU.js +0 -32
- package/dist/shared/chunk-OJ6KL7FU.js.map +0 -1
- package/dist/shared/chunk-OJP4HMJT.js +0 -22
- package/dist/shared/chunk-OJP4HMJT.js.map +0 -1
- package/dist/shared/chunk-OSJ6KGPX.js +0 -16
- package/dist/shared/chunk-OSJ6KGPX.js.map +0 -1
- package/dist/shared/chunk-OXYXZHP2.js +0 -48
- package/dist/shared/chunk-OXYXZHP2.js.map +0 -1
- package/dist/shared/chunk-PF75LW33.js +0 -834
- package/dist/shared/chunk-PF75LW33.js.map +0 -1
- package/dist/shared/chunk-QEJGPYTB.js +0 -462
- package/dist/shared/chunk-QEJGPYTB.js.map +0 -1
- package/dist/shared/chunk-QLQVDZIL.js +0 -11
- package/dist/shared/chunk-QLQVDZIL.js.map +0 -1
- package/dist/shared/chunk-SK2O7GFC.js +0 -229
- package/dist/shared/chunk-SK2O7GFC.js.map +0 -1
- package/dist/shared/chunk-SQXZNGQF.js +0 -55
- package/dist/shared/chunk-SQXZNGQF.js.map +0 -1
- package/dist/shared/chunk-SRYBJ6NQ.js +0 -83
- package/dist/shared/chunk-SRYBJ6NQ.js.map +0 -1
- package/dist/shared/chunk-T6C3NG2L.js +0 -422
- package/dist/shared/chunk-T6C3NG2L.js.map +0 -1
- package/dist/shared/chunk-TBT2PTGB.js +0 -440
- package/dist/shared/chunk-TBT2PTGB.js.map +0 -1
- package/dist/shared/chunk-TKMWY2VN.js +0 -18
- package/dist/shared/chunk-TKMWY2VN.js.map +0 -1
- package/dist/shared/chunk-U4KZUX37.js +0 -104
- package/dist/shared/chunk-U4KZUX37.js.map +0 -1
- package/dist/shared/chunk-VSLRTXLF.js +0 -37
- package/dist/shared/chunk-VSLRTXLF.js.map +0 -1
- package/dist/shared/chunk-VTCHJT4O.js +0 -67
- package/dist/shared/chunk-VTCHJT4O.js.map +0 -1
- package/dist/shared/chunk-W2RFDII5.js +0 -129
- package/dist/shared/chunk-W2RFDII5.js.map +0 -1
- package/dist/shared/chunk-WPZV3LYL.js +0 -24
- package/dist/shared/chunk-WPZV3LYL.js.map +0 -1
- package/dist/shared/chunk-XCWMZVF5.js +0 -89
- package/dist/shared/chunk-XCWMZVF5.js.map +0 -1
- package/dist/shared/chunk-XCZVD5H6.js +0 -13
- package/dist/shared/chunk-XCZVD5H6.js.map +0 -1
- package/dist/shared/chunk-XFZQGRRL.js +0 -101
- package/dist/shared/chunk-XFZQGRRL.js.map +0 -1
- package/dist/shared/chunk-XK2CERPB.js +0 -364
- package/dist/shared/chunk-XK2CERPB.js.map +0 -1
- package/dist/shared/chunk-XNRSL6FL.js +0 -78
- package/dist/shared/chunk-XNRSL6FL.js.map +0 -1
- package/dist/shared/chunk-XXPSM6UA.js +0 -71
- package/dist/shared/chunk-XXPSM6UA.js.map +0 -1
- package/dist/shared/chunk-XZ6WJZHN.js +0 -10
- package/dist/shared/chunk-XZ6WJZHN.js.map +0 -1
- package/dist/shared/chunk-ZEFOWKYP.js +0 -44
- package/dist/shared/chunk-ZEFOWKYP.js.map +0 -1
- package/dist/shared/chunk-ZGQ3AQBG.js +0 -33
- package/dist/shared/chunk-ZGQ3AQBG.js.map +0 -1
- package/dist/shared/chunk-ZRBTAC3G.js +0 -53
- package/dist/shared/chunk-ZRBTAC3G.js.map +0 -1
- package/dist/shared/chunk-ZVJNRKT4.js +0 -129
- package/dist/shared/chunk-ZVJNRKT4.js.map +0 -1
- package/dist/shared/datasources/external/facebook/posts/sample.d.ts +0 -26
- package/dist/shared/datasources/external/facebook/posts/sample.d.ts.map +0 -1
- package/dist/shared/datasources/external/facebook/posts/tests/fetcher.test.d.ts +0 -2
- package/dist/shared/datasources/external/facebook/posts/tests/fetcher.test.d.ts.map +0 -1
- package/dist/shared/datasources/external/http-json/tests/fetcher.test.d.ts +0 -2
- package/dist/shared/datasources/external/http-json/tests/fetcher.test.d.ts.map +0 -1
- package/dist/shared/datasources/external/instagram/feed/sample.d.ts +0 -3
- package/dist/shared/datasources/external/instagram/feed/sample.d.ts.map +0 -1
- package/dist/shared/datasources/external/instagram/feed/tests/fetcher.test.d.ts +0 -2
- package/dist/shared/datasources/external/instagram/feed/tests/fetcher.test.d.ts.map +0 -1
- package/dist/shared/datasources/external/mastodon/account/sample.d.ts +0 -30
- package/dist/shared/datasources/external/mastodon/account/sample.d.ts.map +0 -1
- package/dist/shared/datasources/external/mastodon/account/tests/fetcher.test.d.ts +0 -2
- package/dist/shared/datasources/external/mastodon/account/tests/fetcher.test.d.ts.map +0 -1
- package/dist/shared/datasources/external/mastodon/status/tests/fetcher.test.d.ts +0 -2
- package/dist/shared/datasources/external/mastodon/status/tests/fetcher.test.d.ts.map +0 -1
- package/dist/shared/datasources/external/rss/sample.d.ts +0 -3
- package/dist/shared/datasources/external/rss/sample.d.ts.map +0 -1
- package/dist/shared/datasources/external/threads/media/sample.d.ts +0 -40
- package/dist/shared/datasources/external/threads/media/sample.d.ts.map +0 -1
- package/dist/shared/datasources/external/tiktok/video/sample.d.ts +0 -15
- package/dist/shared/datasources/external/tiktok/video/sample.d.ts.map +0 -1
- package/dist/shared/datasources/external/youtube/list/sample.d.ts +0 -29
- package/dist/shared/datasources/external/youtube/list/sample.d.ts.map +0 -1
- package/dist/shared/datasources/fetcher.js.map +0 -1
- package/dist/shared/env.js.map +0 -1
- package/dist/shared/errors.d.ts.map +0 -1
- package/dist/shared/errors.js.map +0 -1
- package/dist/shared/tests/attributes.test.d.ts +0 -2
- package/dist/shared/tests/attributes.test.d.ts.map +0 -1
- package/dist/shared/themes/tests/color-system.test.d.ts +0 -2
- package/dist/shared/themes/tests/color-system.test.d.ts.map +0 -1
- package/dist/shared/utils/tests/schema.test.d.ts +0 -2
- package/dist/shared/utils/tests/schema.test.d.ts.map +0 -1
- package/src/shared/ajv.ts +0 -123
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import * as _sinclair_typebox7522 from "@sinclair/typebox";
|
|
2
|
+
import { Static } from "@sinclair/typebox";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/datasources/external/tiktok/video/options.d.ts
|
|
5
|
+
declare const tiktokVideoOptions: _sinclair_typebox7522.TObject<{
|
|
6
|
+
maxCount: _sinclair_typebox7522.TOptional<_sinclair_typebox7522.TNumber>;
|
|
7
|
+
refreshInterval: _sinclair_typebox7522.TOptional<_sinclair_typebox7522.TNumber>;
|
|
5
8
|
}>;
|
|
6
|
-
|
|
9
|
+
type TiktokVideoOptions = Static<typeof tiktokVideoOptions>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { TiktokVideoOptions, tiktokVideoOptions };
|
|
7
12
|
//# sourceMappingURL=options.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","
|
|
1
|
+
{"version":3,"file":"options.d.ts","names":[],"sources":["../../../../../../src/shared/datasources/external/tiktok/video/options.ts"],"sourcesContent":[],"mappings":";;;;cAEa,0CAAkB;4CAG7B,qBAAA,CAAA,OAAA;;AAHF,CAAA,CAAA;AAGE,KAEU,kBAAA,GAAqB,MAF/B,CAAA,OAE6C,kBAF7C,CAAA"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import "../../../../chunk-ZGQ3AQBG.js";
|
|
4
|
-
|
|
5
|
-
// src/shared/datasources/external/tiktok/video/options.ts
|
|
6
1
|
import { Type } from "@sinclair/typebox";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
|
|
3
|
+
//#region src/shared/datasources/external/tiktok/video/options.ts
|
|
4
|
+
const tiktokVideoOptions = Type.Object({
|
|
5
|
+
maxCount: Type.Optional(Type.Number()),
|
|
6
|
+
refreshInterval: Type.Optional(Type.Number())
|
|
10
7
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { tiktokVideoOptions };
|
|
14
11
|
//# sourceMappingURL=options.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/shared/datasources/external/tiktok/video/options.ts"],"sourcesContent":["import { Type, type Static } from \"@sinclair/typebox\";\n\nexport const tiktokVideoOptions = Type.Object({\n maxCount: Type.Optional(Type.Number()),\n refreshInterval: Type.Optional(Type.Number()),\n});\n\nexport type TiktokVideoOptions = Static<typeof tiktokVideoOptions>;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"options.js","names":[],"sources":["../../../../../../src/shared/datasources/external/tiktok/video/options.ts"],"sourcesContent":["import { Type, type Static } from \"@sinclair/typebox\";\n\nexport const tiktokVideoOptions = Type.Object({\n maxCount: Type.Optional(Type.Number()),\n refreshInterval: Type.Optional(Type.Number()),\n});\n\nexport type TiktokVideoOptions = Static<typeof tiktokVideoOptions>;\n"],"mappings":";;;AAEA,MAAa,qBAAqB,KAAK,OAAO;CAC5C,UAAU,KAAK,SAAS,KAAK,QAAQ,CAAC;CACtC,iBAAiB,KAAK,SAAS,KAAK,QAAQ,CAAC;CAC9C,CAAC"}
|
|
@@ -1,22 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
code: import("@sinclair/typebox").TString;
|
|
17
|
-
message: import("@sinclair/typebox").TString;
|
|
18
|
-
log_id: import("@sinclair/typebox").TString;
|
|
1
|
+
import * as _sinclair_typebox7887 from "@sinclair/typebox";
|
|
2
|
+
import { Static } from "@sinclair/typebox";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/datasources/external/tiktok/video/schema.d.ts
|
|
5
|
+
declare const tiktokVideoListSchema: _sinclair_typebox7887.TObject<{
|
|
6
|
+
data: _sinclair_typebox7887.TObject<{
|
|
7
|
+
has_more: _sinclair_typebox7887.TBoolean;
|
|
8
|
+
cursor: _sinclair_typebox7887.TNumber;
|
|
9
|
+
videos: _sinclair_typebox7887.TArray<_sinclair_typebox7887.TObject<{
|
|
10
|
+
title: _sinclair_typebox7887.TString;
|
|
11
|
+
video_description: _sinclair_typebox7887.TString;
|
|
12
|
+
cover_image_url: _sinclair_typebox7887.TString;
|
|
13
|
+
duration: _sinclair_typebox7887.TNumber;
|
|
14
|
+
embed_link: _sinclair_typebox7887.TString;
|
|
15
|
+
id: _sinclair_typebox7887.TString;
|
|
19
16
|
}>>;
|
|
17
|
+
}>;
|
|
18
|
+
error: _sinclair_typebox7887.TOptional<_sinclair_typebox7887.TObject<{
|
|
19
|
+
code: _sinclair_typebox7887.TString;
|
|
20
|
+
message: _sinclair_typebox7887.TString;
|
|
21
|
+
log_id: _sinclair_typebox7887.TString;
|
|
22
|
+
}>>;
|
|
20
23
|
}>;
|
|
21
|
-
|
|
24
|
+
type TiktokVideoListSchema = Static<typeof tiktokVideoListSchema>;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { TiktokVideoListSchema, tiktokVideoListSchema };
|
|
22
27
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","
|
|
1
|
+
{"version":3,"file":"schema.d.ts","names":[],"sources":["../../../../../../src/shared/datasources/external/tiktok/video/schema.ts"],"sourcesContent":[],"mappings":";;;;cAEa,6CAAqB;;cAsBhC,qBAAA,CAAA;IAtBW,MAAA,+BAsBX;IAAA,MAAA,8BAAA,8BAAA,CAAA;MAAA,KAAA,+BAAA;;;;;;;;;;;;;;KAEU,qBAAA,GAAwB,cAAc"}
|
|
@@ -1,33 +1,26 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import "../../../../chunk-ZGQ3AQBG.js";
|
|
4
|
-
|
|
5
|
-
// src/shared/datasources/external/tiktok/video/schema.ts
|
|
6
1
|
import { Type } from "@sinclair/typebox";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
})
|
|
28
|
-
)
|
|
2
|
+
|
|
3
|
+
//#region src/shared/datasources/external/tiktok/video/schema.ts
|
|
4
|
+
const tiktokVideoListSchema = Type.Object({
|
|
5
|
+
data: Type.Object({
|
|
6
|
+
has_more: Type.Boolean(),
|
|
7
|
+
cursor: Type.Number(),
|
|
8
|
+
videos: Type.Array(Type.Object({
|
|
9
|
+
title: Type.String(),
|
|
10
|
+
video_description: Type.String(),
|
|
11
|
+
cover_image_url: Type.String(),
|
|
12
|
+
duration: Type.Number(),
|
|
13
|
+
embed_link: Type.String(),
|
|
14
|
+
id: Type.String()
|
|
15
|
+
}))
|
|
16
|
+
}),
|
|
17
|
+
error: Type.Optional(Type.Object({
|
|
18
|
+
code: Type.String(),
|
|
19
|
+
message: Type.String(),
|
|
20
|
+
log_id: Type.String()
|
|
21
|
+
}))
|
|
29
22
|
});
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { tiktokVideoListSchema };
|
|
33
26
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/shared/datasources/external/tiktok/video/schema.ts"],"sourcesContent":["import { Type, type Static } from \"@sinclair/typebox\";\n\nexport const tiktokVideoListSchema = Type.Object({\n data: Type.Object({\n has_more: Type.Boolean(),\n cursor: Type.Number(),\n videos: Type.Array(\n Type.Object({\n title: Type.String(),\n video_description: Type.String(),\n cover_image_url: Type.String(),\n duration: Type.Number(),\n embed_link: Type.String(),\n id: Type.String(),\n }),\n ),\n }),\n error: Type.Optional(\n Type.Object({\n code: Type.String(),\n message: Type.String(),\n log_id: Type.String(),\n }),\n ),\n});\n\nexport type TiktokVideoListSchema = Static<typeof tiktokVideoListSchema>;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.js","names":[],"sources":["../../../../../../src/shared/datasources/external/tiktok/video/schema.ts"],"sourcesContent":["import { Type, type Static } from \"@sinclair/typebox\";\n\nexport const tiktokVideoListSchema = Type.Object({\n data: Type.Object({\n has_more: Type.Boolean(),\n cursor: Type.Number(),\n videos: Type.Array(\n Type.Object({\n title: Type.String(),\n video_description: Type.String(),\n cover_image_url: Type.String(),\n duration: Type.Number(),\n embed_link: Type.String(),\n id: Type.String(),\n }),\n ),\n }),\n error: Type.Optional(\n Type.Object({\n code: Type.String(),\n message: Type.String(),\n log_id: Type.String(),\n }),\n ),\n});\n\nexport type TiktokVideoListSchema = Static<typeof tiktokVideoListSchema>;\n"],"mappings":";;;AAEA,MAAa,wBAAwB,KAAK,OAAO;CAC/C,MAAM,KAAK,OAAO;EAChB,UAAU,KAAK,SAAS;EACxB,QAAQ,KAAK,QAAQ;EACrB,QAAQ,KAAK,MACX,KAAK,OAAO;GACV,OAAO,KAAK,QAAQ;GACpB,mBAAmB,KAAK,QAAQ;GAChC,iBAAiB,KAAK,QAAQ;GAC9B,UAAU,KAAK,QAAQ;GACvB,YAAY,KAAK,QAAQ;GACzB,IAAI,KAAK,QAAQ;GAClB,CAAC,CACH;EACF,CAAC;CACF,OAAO,KAAK,SACV,KAAK,OAAO;EACV,MAAM,KAAK,QAAQ;EACnB,SAAS,KAAK,QAAQ;EACtB,QAAQ,KAAK,QAAQ;EACtB,CAAC,CACH;CACF,CAAC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { DatasourceFetcher } from "../../../fetcher.js";
|
|
2
|
+
import { YoutubeListOptions } from "./options.js";
|
|
3
|
+
import { YoutubeListSchema } from "./schema.js";
|
|
4
|
+
import { YoutubeFullOAuthConfig } from "../oauth/config.js";
|
|
5
|
+
|
|
6
|
+
//#region src/shared/datasources/external/youtube/list/fetcher.d.ts
|
|
5
7
|
declare const fetchYoutubeList: DatasourceFetcher<YoutubeListSchema, YoutubeFullOAuthConfig, YoutubeListOptions>;
|
|
6
|
-
|
|
8
|
+
//#endregion
|
|
9
|
+
export { fetchYoutubeList as default };
|
|
7
10
|
//# sourceMappingURL=fetcher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetcher.d.ts","
|
|
1
|
+
{"version":3,"file":"fetcher.d.ts","names":[],"sources":["../../../../../../src/shared/datasources/external/youtube/list/fetcher.ts"],"sourcesContent":[],"mappings":";;;;;;cAOM,kBAAkB,kBACtB,mBACA,wBACA"}
|
|
@@ -1,35 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
import { UnauthorizedError } from "../../../../errors.js";
|
|
2
|
+
import { stringifyObjectValues } from "../../../utils.js";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
access_token: oauth.config.accessToken
|
|
19
|
-
});
|
|
20
|
-
const url = `https://www.googleapis.com/youtube/v3/search?${params}`;
|
|
21
|
-
const response = await fetch(url);
|
|
22
|
-
if (!response.ok) {
|
|
23
|
-
if (response.status === 401) {
|
|
24
|
-
throw new UnauthorizedError(`fetchYoutubeList Error: Unauthorized.`);
|
|
25
|
-
}
|
|
26
|
-
throw new Error(`fetchYoutubeList Error: Response status: ${response.status}`);
|
|
27
|
-
}
|
|
28
|
-
const data = await response.json();
|
|
29
|
-
return data;
|
|
4
|
+
//#region src/shared/datasources/external/youtube/list/fetcher.ts
|
|
5
|
+
const fetchYoutubeList = async ({ options, oauth }) => {
|
|
6
|
+
const url = `https://www.googleapis.com/youtube/v3/search?${new URLSearchParams({
|
|
7
|
+
...stringifyObjectValues(options),
|
|
8
|
+
part: "snippet,id",
|
|
9
|
+
type: "video",
|
|
10
|
+
videoEmbeddable: "true",
|
|
11
|
+
access_token: oauth.config.accessToken
|
|
12
|
+
})}`;
|
|
13
|
+
const response = await fetch(url);
|
|
14
|
+
if (!response.ok) {
|
|
15
|
+
if (response.status === 401) throw new UnauthorizedError(`fetchYoutubeList Error: Unauthorized.`);
|
|
16
|
+
throw new Error(`fetchYoutubeList Error: Response status: ${response.status}`);
|
|
17
|
+
}
|
|
18
|
+
return await response.json();
|
|
30
19
|
};
|
|
31
20
|
var fetcher_default = fetchYoutubeList;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
};
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { fetcher_default as default };
|
|
35
24
|
//# sourceMappingURL=fetcher.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/shared/datasources/external/youtube/list/fetcher.ts"],"sourcesContent":["import type { YoutubeListOptions } from \"./options\";\nimport type { YoutubeListSchema } from \"./schema\";\nimport { UnauthorizedError } from \"~/shared/errors\";\nimport { stringifyObjectValues } from \"~/shared/datasources/utils\";\nimport type { YoutubeFullOAuthConfig } from \"../oauth/config\";\nimport type { DatasourceFetcher } from \"~/shared/datasources/fetcher\";\n\nconst fetchYoutubeList: DatasourceFetcher<\n YoutubeListSchema,\n YoutubeFullOAuthConfig,\n YoutubeListOptions\n> = async ({ options, oauth }) => {\n const params = new URLSearchParams({\n ...stringifyObjectValues(options),\n part: \"snippet,id\",\n type: \"video\",\n videoEmbeddable: \"true\",\n access_token: oauth.config.accessToken,\n });\n\n const url = `https://www.googleapis.com/youtube/v3/search?${params}`;\n\n const response = await fetch(url);\n\n if (!response.ok) {\n if (response.status === 401) {\n throw new UnauthorizedError(`fetchYoutubeList Error: Unauthorized.`);\n }\n throw new Error(`fetchYoutubeList Error: Response status: ${response.status}`);\n }\n\n const data = (await response.json()) as YoutubeListSchema;\n\n return data;\n};\n\nexport default fetchYoutubeList;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetcher.js","names":["fetchYoutubeList: DatasourceFetcher<\n YoutubeListSchema,\n YoutubeFullOAuthConfig,\n YoutubeListOptions\n>"],"sources":["../../../../../../src/shared/datasources/external/youtube/list/fetcher.ts"],"sourcesContent":["import type { YoutubeListOptions } from \"./options\";\nimport type { YoutubeListSchema } from \"./schema\";\nimport { UnauthorizedError } from \"~/shared/errors\";\nimport { stringifyObjectValues } from \"~/shared/datasources/utils\";\nimport type { YoutubeFullOAuthConfig } from \"../oauth/config\";\nimport type { DatasourceFetcher } from \"~/shared/datasources/fetcher\";\n\nconst fetchYoutubeList: DatasourceFetcher<\n YoutubeListSchema,\n YoutubeFullOAuthConfig,\n YoutubeListOptions\n> = async ({ options, oauth }) => {\n const params = new URLSearchParams({\n ...stringifyObjectValues(options),\n part: \"snippet,id\",\n type: \"video\",\n videoEmbeddable: \"true\",\n access_token: oauth.config.accessToken,\n });\n\n const url = `https://www.googleapis.com/youtube/v3/search?${params}`;\n\n const response = await fetch(url);\n\n if (!response.ok) {\n if (response.status === 401) {\n throw new UnauthorizedError(`fetchYoutubeList Error: Unauthorized.`);\n }\n throw new Error(`fetchYoutubeList Error: Response status: ${response.status}`);\n }\n\n const data = (await response.json()) as YoutubeListSchema;\n\n return data;\n};\n\nexport default fetchYoutubeList;\n"],"mappings":";;;;AAOA,MAAMA,mBAIF,OAAO,EAAE,SAAS,YAAY;CAShC,MAAM,MAAM,gDARG,IAAI,gBAAgB;EACjC,GAAG,sBAAsB,QAAQ;EACjC,MAAM;EACN,MAAM;EACN,iBAAiB;EACjB,cAAc,MAAM,OAAO;EAC5B,CAAC;CAIF,MAAM,WAAW,MAAM,MAAM,IAAI;AAEjC,KAAI,CAAC,SAAS,IAAI;AAChB,MAAI,SAAS,WAAW,IACtB,OAAM,IAAI,kBAAkB,wCAAwC;AAEtE,QAAM,IAAI,MAAM,4CAA4C,SAAS,SAAS;;AAKhF,QAFc,MAAM,SAAS,MAAM;;AAKrC,sBAAe"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import * as _sinclair_typebox7812 from "@sinclair/typebox";
|
|
2
|
+
import { Static } from "@sinclair/typebox";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/datasources/external/youtube/list/options.d.ts
|
|
5
|
+
declare const youtubeListOptions: _sinclair_typebox7812.TObject<{
|
|
6
|
+
channelId: _sinclair_typebox7812.TString;
|
|
7
|
+
order: _sinclair_typebox7812.TOptional<_sinclair_typebox7812.TString>;
|
|
8
|
+
maxResults: _sinclair_typebox7812.TOptional<_sinclair_typebox7812.TNumber>;
|
|
9
|
+
regionCode: _sinclair_typebox7812.TOptional<_sinclair_typebox7812.TString>;
|
|
10
|
+
relevanceLanguage: _sinclair_typebox7812.TOptional<_sinclair_typebox7812.TString>;
|
|
8
11
|
}>;
|
|
9
|
-
|
|
12
|
+
type YoutubeListOptions = Static<typeof youtubeListOptions>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { YoutubeListOptions, youtubeListOptions };
|
|
10
15
|
//# sourceMappingURL=options.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","
|
|
1
|
+
{"version":3,"file":"options.d.ts","names":[],"sources":["../../../../../../src/shared/datasources/external/youtube/list/options.ts"],"sourcesContent":[],"mappings":";;;;cAEa,0CAAkB;aAM7B,qBAAA,CAAA;;EANW,UAAA,iCAMX,+BAAA;EAAA,UAAA,iCAAA,+BAAA;mBAAA,iCAAA,+BAAA;;KAEU,kBAAA,GAAqB,cAAc"}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import "../../../../chunk-ZGQ3AQBG.js";
|
|
4
|
-
|
|
5
|
-
// src/shared/datasources/external/youtube/list/options.ts
|
|
6
1
|
import { Type } from "@sinclair/typebox";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
|
|
3
|
+
//#region src/shared/datasources/external/youtube/list/options.ts
|
|
4
|
+
const youtubeListOptions = Type.Object({
|
|
5
|
+
channelId: Type.String(),
|
|
6
|
+
order: Type.Optional(Type.String()),
|
|
7
|
+
maxResults: Type.Optional(Type.Number()),
|
|
8
|
+
regionCode: Type.Optional(Type.String()),
|
|
9
|
+
relevanceLanguage: Type.Optional(Type.String())
|
|
13
10
|
});
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { youtubeListOptions };
|
|
17
14
|
//# sourceMappingURL=options.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/shared/datasources/external/youtube/list/options.ts"],"sourcesContent":["import { Type, type Static } from \"@sinclair/typebox\";\n\nexport const youtubeListOptions = Type.Object({\n channelId: Type.String(),\n order: Type.Optional(Type.String()),\n maxResults: Type.Optional(Type.Number()),\n regionCode: Type.Optional(Type.String()),\n relevanceLanguage: Type.Optional(Type.String()),\n});\n\nexport type YoutubeListOptions = Static<typeof youtubeListOptions>;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"options.js","names":[],"sources":["../../../../../../src/shared/datasources/external/youtube/list/options.ts"],"sourcesContent":["import { Type, type Static } from \"@sinclair/typebox\";\n\nexport const youtubeListOptions = Type.Object({\n channelId: Type.String(),\n order: Type.Optional(Type.String()),\n maxResults: Type.Optional(Type.Number()),\n regionCode: Type.Optional(Type.String()),\n relevanceLanguage: Type.Optional(Type.String()),\n});\n\nexport type YoutubeListOptions = Static<typeof youtubeListOptions>;\n"],"mappings":";;;AAEA,MAAa,qBAAqB,KAAK,OAAO;CAC5C,WAAW,KAAK,QAAQ;CACxB,OAAO,KAAK,SAAS,KAAK,QAAQ,CAAC;CACnC,YAAY,KAAK,SAAS,KAAK,QAAQ,CAAC;CACxC,YAAY,KAAK,SAAS,KAAK,QAAQ,CAAC;CACxC,mBAAmB,KAAK,SAAS,KAAK,QAAQ,CAAC;CAChD,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//#region src/shared/datasources/external/youtube/list/sample.ts
|
|
2
|
+
const sample = [{
|
|
3
|
+
etag: "123456789",
|
|
4
|
+
id: {
|
|
5
|
+
videoId: "dQw4w9WgXcQ",
|
|
6
|
+
channelId: "UCXuqSBlHAE6Xw-yeJA0Tunw",
|
|
7
|
+
playlistId: "PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI"
|
|
8
|
+
},
|
|
9
|
+
snippet: {
|
|
10
|
+
channelId: "UCXuqSBlHAE6Xw-yeJA0Tunw",
|
|
11
|
+
channelTitle: "RickAstleyVEVO",
|
|
12
|
+
description: "Rick Astley's official music video for “Never Gonna Give You Up” Listen to Rick Astley: https://RickAstley.lnk.to/_listenYD Subscribe to the official Rick Astley YouTube channel: https://RickAstley.lnk.to/_subscribeYD Follow Rick Astley: Facebook: https://RickAstley.lnk.to/_followYD Twitter: https://RickAstley.lnk.to/_followYD Instagram: https://RickAstley.lnk.to/_followYD Website: https://RickAstley.lnk.to/_followYD Spotify: https://RickAstley.lnk.to/_followYD Lyrics: We're no strangers to love You know the rules and so do I A full commitment's what I'm thinking of You wouldn't get this from any other guy I just wanna tell you how I'm feeling Gotta make you understand Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you #RickAstley #NeverGonnaGiveYouUp #DancePop",
|
|
13
|
+
liveBroadcastContent: "none",
|
|
14
|
+
publishedAt: "2009-10-25",
|
|
15
|
+
thumbnails: {
|
|
16
|
+
default: {
|
|
17
|
+
height: 90,
|
|
18
|
+
url: "https://i.ytimg.com/vi/dQw4w9WgXcQ/default.jpg",
|
|
19
|
+
width: 120
|
|
20
|
+
},
|
|
21
|
+
standard: {
|
|
22
|
+
height: 480,
|
|
23
|
+
url: "https://i.ytimg.com/vi/dQw4w9WgXcQ/sddefault.jpg",
|
|
24
|
+
width: 640
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
title: "Rick Astley - Never Gonna Give You Up (Official Music Video)"
|
|
28
|
+
}
|
|
29
|
+
}];
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
export { sample };
|
|
33
|
+
//# sourceMappingURL=sample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sample.js","names":[],"sources":["../../../../../../src/shared/datasources/external/youtube/list/sample.ts"],"sourcesContent":["import type { YoutubeListSchema } from \"./schema\";\n\nexport const sample = [\n {\n etag: \"123456789\",\n id: {\n videoId: \"dQw4w9WgXcQ\",\n channelId: \"UCXuqSBlHAE6Xw-yeJA0Tunw\",\n playlistId: \"PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI\",\n },\n snippet: {\n channelId: \"UCXuqSBlHAE6Xw-yeJA0Tunw\",\n channelTitle: \"RickAstleyVEVO\",\n description:\n \"Rick Astley's official music video for “Never Gonna Give You Up” Listen to Rick Astley: https://RickAstley.lnk.to/_listenYD Subscribe to the official Rick Astley YouTube channel: https://RickAstley.lnk.to/_subscribeYD Follow Rick Astley: Facebook: https://RickAstley.lnk.to/_followYD Twitter: https://RickAstley.lnk.to/_followYD Instagram: https://RickAstley.lnk.to/_followYD Website: https://RickAstley.lnk.to/_followYD Spotify: https://RickAstley.lnk.to/_followYD Lyrics: We're no strangers to love You know the rules and so do I A full commitment's what I'm thinking of You wouldn't get this from any other guy I just wanna tell you how I'm feeling Gotta make you understand Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you #RickAstley #NeverGonnaGiveYouUp #DancePop\",\n liveBroadcastContent: \"none\",\n publishedAt: \"2009-10-25\",\n thumbnails: {\n default: {\n height: 90,\n url: \"https://i.ytimg.com/vi/dQw4w9WgXcQ/default.jpg\",\n width: 120,\n },\n standard: {\n height: 480,\n url: \"https://i.ytimg.com/vi/dQw4w9WgXcQ/sddefault.jpg\",\n width: 640,\n },\n },\n title: \"Rick Astley - Never Gonna Give You Up (Official Music Video)\",\n },\n },\n] satisfies YoutubeListSchema;\n"],"mappings":";AAEA,MAAa,SAAS,CACpB;CACE,MAAM;CACN,IAAI;EACF,SAAS;EACT,WAAW;EACX,YAAY;EACb;CACD,SAAS;EACP,WAAW;EACX,cAAc;EACd,aACE;EACF,sBAAsB;EACtB,aAAa;EACb,YAAY;GACV,SAAS;IACP,QAAQ;IACR,KAAK;IACL,OAAO;IACR;GACD,UAAU;IACR,QAAQ;IACR,KAAK;IACL,OAAO;IACR;GACF;EACD,OAAO;EACR;CACF,CACF"}
|
|
@@ -1,31 +1,36 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
import * as _sinclair_typebox7904 from "@sinclair/typebox";
|
|
2
|
+
import { Static } from "@sinclair/typebox";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/datasources/external/youtube/list/schema.d.ts
|
|
5
|
+
declare const youtubeListSchema: _sinclair_typebox7904.TArray<_sinclair_typebox7904.TObject<{
|
|
6
|
+
etag: _sinclair_typebox7904.TString;
|
|
7
|
+
id: _sinclair_typebox7904.TObject<{
|
|
8
|
+
videoId: _sinclair_typebox7904.TString;
|
|
9
|
+
channelId: _sinclair_typebox7904.TString;
|
|
10
|
+
playlistId: _sinclair_typebox7904.TString;
|
|
11
|
+
}>;
|
|
12
|
+
snippet: _sinclair_typebox7904.TObject<{
|
|
13
|
+
publishedAt: _sinclair_typebox7904.TString;
|
|
14
|
+
channelId: _sinclair_typebox7904.TString;
|
|
15
|
+
title: _sinclair_typebox7904.TString;
|
|
16
|
+
description: _sinclair_typebox7904.TString;
|
|
17
|
+
thumbnails: _sinclair_typebox7904.TObject<{
|
|
18
|
+
default: _sinclair_typebox7904.TObject<{
|
|
19
|
+
url: _sinclair_typebox7904.TString;
|
|
20
|
+
width: _sinclair_typebox7904.TNumber;
|
|
21
|
+
height: _sinclair_typebox7904.TNumber;
|
|
22
|
+
}>;
|
|
23
|
+
standard: _sinclair_typebox7904.TObject<{
|
|
24
|
+
url: _sinclair_typebox7904.TString;
|
|
25
|
+
width: _sinclair_typebox7904.TNumber;
|
|
26
|
+
height: _sinclair_typebox7904.TNumber;
|
|
27
|
+
}>;
|
|
28
28
|
}>;
|
|
29
|
+
channelTitle: _sinclair_typebox7904.TString;
|
|
30
|
+
liveBroadcastContent: _sinclair_typebox7904.TString;
|
|
31
|
+
}>;
|
|
29
32
|
}>>;
|
|
30
|
-
|
|
33
|
+
type YoutubeListSchema = Static<typeof youtubeListSchema>;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { YoutubeListSchema, youtubeListSchema };
|
|
31
36
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","
|
|
1
|
+
{"version":3,"file":"schema.d.ts","names":[],"sources":["../../../../../../src/shared/datasources/external/youtube/list/schema.ts"],"sourcesContent":[],"mappings":";;;;cAEa,mBAAiB,qBAAA,CAAA,6BAAA;QAiC7B,qBAAA,CAAA;;IAjCY,OAAA,+BAiCZ;IAAA,SAAA,+BAAA;IAAA,UAAA,+BAAA;;;;;;;;;;;;;;;;;;;;;;;AAjC6B,KAmClB,iBAAA,GAAoB,MAnCF,CAAA,OAmCgB,iBAnChB,CAAA"}
|
|
@@ -1,10 +1,38 @@
|
|
|
1
|
-
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
//#region src/shared/datasources/external/youtube/list/schema.ts
|
|
4
|
+
const youtubeListSchema = Type.Array(Type.Object({
|
|
5
|
+
etag: Type.String(),
|
|
6
|
+
id: Type.Object({
|
|
7
|
+
videoId: Type.String(),
|
|
8
|
+
channelId: Type.String(),
|
|
9
|
+
playlistId: Type.String()
|
|
10
|
+
}),
|
|
11
|
+
snippet: Type.Object({
|
|
12
|
+
publishedAt: Type.String(),
|
|
13
|
+
channelId: Type.String(),
|
|
14
|
+
title: Type.String(),
|
|
15
|
+
description: Type.String(),
|
|
16
|
+
thumbnails: Type.Object({
|
|
17
|
+
default: Type.Object({
|
|
18
|
+
url: Type.String(),
|
|
19
|
+
width: Type.Number(),
|
|
20
|
+
height: Type.Number()
|
|
21
|
+
}),
|
|
22
|
+
standard: Type.Object({
|
|
23
|
+
url: Type.String(),
|
|
24
|
+
width: Type.Number(),
|
|
25
|
+
height: Type.Number()
|
|
26
|
+
})
|
|
27
|
+
}),
|
|
28
|
+
channelTitle: Type.String(),
|
|
29
|
+
liveBroadcastContent: Type.String()
|
|
30
|
+
})
|
|
31
|
+
}), {
|
|
32
|
+
title: "Youtube list schema",
|
|
33
|
+
description: "Schema for a list of Youtube videos"
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
export { youtubeListSchema };
|
|
10
38
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"schema.js","names":[],"sources":["../../../../../../src/shared/datasources/external/youtube/list/schema.ts"],"sourcesContent":["import { Type, type Static } from \"@sinclair/typebox\";\n\nexport const youtubeListSchema = Type.Array(\n Type.Object({\n etag: Type.String(),\n id: Type.Object({\n videoId: Type.String(),\n channelId: Type.String(),\n playlistId: Type.String(),\n }),\n snippet: Type.Object({\n publishedAt: Type.String(),\n channelId: Type.String(),\n title: Type.String(),\n description: Type.String(),\n thumbnails: Type.Object({\n default: Type.Object({\n url: Type.String(),\n width: Type.Number(),\n height: Type.Number(),\n }),\n standard: Type.Object({\n url: Type.String(),\n width: Type.Number(),\n height: Type.Number(),\n }),\n }),\n channelTitle: Type.String(),\n liveBroadcastContent: Type.String(),\n }),\n }),\n {\n title: \"Youtube list schema\",\n description: \"Schema for a list of Youtube videos\",\n },\n);\n\nexport type YoutubeListSchema = Static<typeof youtubeListSchema>;\n"],"mappings":";;;AAEA,MAAa,oBAAoB,KAAK,MACpC,KAAK,OAAO;CACV,MAAM,KAAK,QAAQ;CACnB,IAAI,KAAK,OAAO;EACd,SAAS,KAAK,QAAQ;EACtB,WAAW,KAAK,QAAQ;EACxB,YAAY,KAAK,QAAQ;EAC1B,CAAC;CACF,SAAS,KAAK,OAAO;EACnB,aAAa,KAAK,QAAQ;EAC1B,WAAW,KAAK,QAAQ;EACxB,OAAO,KAAK,QAAQ;EACpB,aAAa,KAAK,QAAQ;EAC1B,YAAY,KAAK,OAAO;GACtB,SAAS,KAAK,OAAO;IACnB,KAAK,KAAK,QAAQ;IAClB,OAAO,KAAK,QAAQ;IACpB,QAAQ,KAAK,QAAQ;IACtB,CAAC;GACF,UAAU,KAAK,OAAO;IACpB,KAAK,KAAK,QAAQ;IAClB,OAAO,KAAK,QAAQ;IACpB,QAAQ,KAAK,QAAQ;IACtB,CAAC;GACH,CAAC;EACF,cAAc,KAAK,QAAQ;EAC3B,sBAAsB,KAAK,QAAQ;EACpC,CAAC;CACH,CAAC,EACF;CACE,OAAO;CACP,aAAa;CACd,CACF"}
|
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import * as _sinclair_typebox7822 from "@sinclair/typebox";
|
|
2
|
+
import { Static } from "@sinclair/typebox";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/datasources/external/youtube/oauth/config.d.ts
|
|
5
|
+
declare const youtubeFullOAuthConfig: _sinclair_typebox7822.TObject<{
|
|
6
|
+
siteId: _sinclair_typebox7822.TString;
|
|
7
|
+
siteDatasourceId: _sinclair_typebox7822.TString;
|
|
8
|
+
config: _sinclair_typebox7822.TObject<{
|
|
9
|
+
accessToken: _sinclair_typebox7822.TString;
|
|
10
|
+
expiresIn: _sinclair_typebox7822.TNumber;
|
|
11
|
+
openId: _sinclair_typebox7822.TString;
|
|
12
|
+
refreshExpiresIn: _sinclair_typebox7822.TNumber;
|
|
13
|
+
refreshToken: _sinclair_typebox7822.TString;
|
|
14
|
+
scope: _sinclair_typebox7822.TString;
|
|
15
|
+
tokenType: _sinclair_typebox7822.TString;
|
|
16
|
+
}>;
|
|
17
|
+
oauthTokenExpireAt: _sinclair_typebox7822.TTransform<_sinclair_typebox7822.TString, Date>;
|
|
18
|
+
oauthRefreshTokenExpireAt: _sinclair_typebox7822.TOptional<_sinclair_typebox7822.TTransform<_sinclair_typebox7822.TString, Date>>;
|
|
19
|
+
nextRefreshTokenAt: _sinclair_typebox7822.TOptional<_sinclair_typebox7822.TTransform<_sinclair_typebox7822.TString, Date>>;
|
|
17
20
|
}>;
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
type YoutubeFullOAuthConfig = Static<typeof youtubeFullOAuthConfig>;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { YoutubeFullOAuthConfig };
|
|
20
24
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","
|
|
1
|
+
{"version":3,"file":"config.d.ts","names":[],"sources":["../../../../../../src/shared/datasources/external/youtube/oauth/config.ts"],"sourcesContent":[],"mappings":";;;;cAaM,8CAAsB;UAA6C,qBAAA,CAAA;;EAAnE,MAAA,+BAAmE,CAAA;IAAA,WAAA,+BAAA;IAAA,SAAA,+BAAA;;;;;;;;;;;KAC7D,sBAAA,GAAyB,cAAc"}
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
buildOAuthConfigSchema
|
|
5
|
-
} from "../../../../chunk-2BPYOTKA.js";
|
|
6
|
-
import "../../../../chunk-QLQVDZIL.js";
|
|
7
|
-
import "../../../../chunk-ZGQ3AQBG.js";
|
|
8
|
-
|
|
9
|
-
// src/shared/datasources/external/youtube/oauth/config.ts
|
|
1
|
+
import { buildOAuthConfigSchema } from "../../../../oauth.js";
|
|
10
2
|
import { Type } from "@sinclair/typebox";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
3
|
+
|
|
4
|
+
//#region src/shared/datasources/external/youtube/oauth/config.ts
|
|
5
|
+
const youtubeOAuthConfig = Type.Object({
|
|
6
|
+
accessToken: Type.String(),
|
|
7
|
+
expiresIn: Type.Number(),
|
|
8
|
+
openId: Type.String(),
|
|
9
|
+
refreshExpiresIn: Type.Number(),
|
|
10
|
+
refreshToken: Type.String(),
|
|
11
|
+
scope: Type.String(),
|
|
12
|
+
tokenType: Type.String()
|
|
19
13
|
});
|
|
20
|
-
|
|
14
|
+
buildOAuthConfigSchema(youtubeOAuthConfig);
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { };
|
|
21
18
|
//# sourceMappingURL=config.js.map
|