@upstart.gg/sdk 0.0.68 → 0.0.69
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/node/cli/api.js +1 -1
- package/dist/node/cli/commands/login/cmd-login.js +1 -1
- package/dist/node/cli/commands/publish/cmd-publish.js +6 -6
- package/dist/node/cli/commands/publish/uploader.js +1 -1
- package/dist/node/cli/is-logged-in.js +1 -1
- package/dist/node/cli/program.js +1 -1
- package/dist/node/metafile-esm.json +1 -1
- package/dist/node/shared/config.d.ts.map +1 -1
- package/dist/node/shared/config.js +2 -2
- package/dist/node/shared/logger.js +1 -1
- package/dist/shared/chunk-A3ACTIE3.js +3 -0
- package/dist/shared/chunk-V4SJKXET.js +3 -0
- package/dist/shared/datasources/external/meta/oauth/config.d.ts +5 -5
- package/dist/shared/datasources/external/meta/oauth/config.d.ts.map +1 -1
- package/dist/shared/datasources/external/meta/oauth/config.js +1 -1
- package/dist/shared/datasources/external/tiktok/oauth/config.d.ts +15 -5
- package/dist/shared/datasources/external/tiktok/oauth/config.d.ts.map +1 -1
- package/dist/shared/datasources/external/tiktok/oauth/config.js +1 -1
- package/dist/shared/datasources/external/youtube/oauth/config.d.ts +3 -3
- package/dist/shared/datasources/external/youtube/oauth/config.js +1 -1
- package/dist/shared/datasources/types.d.ts +19 -7
- package/dist/shared/datasources/types.d.ts.map +1 -1
- package/dist/shared/metafile-esm.json +1 -1
- package/dist/shared/oauth.d.ts +5 -4
- package/dist/shared/oauth.d.ts.map +1 -1
- package/dist/shared/oauth.js +3 -0
- package/dist/shared/page.d.ts +9 -3
- package/dist/shared/page.d.ts.map +1 -1
- package/dist/shared/page.js +1 -1
- package/dist/shared/theme.d.ts +13 -9
- package/dist/shared/theme.d.ts.map +1 -1
- package/dist/shared/theme.js +1 -1
- package/dist/shared/themes/all-themes.d.ts.map +1 -1
- package/dist/shared/utils/json-date.d.ts +5 -0
- package/dist/shared/utils/json-date.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/shared/chunk-4NZGINOT.js +0 -3
- package/dist/shared/chunk-HIXVR4RL.js +0 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{Type as e}from"@sinclair/typebox";var c=e.Object({id:e.Optional(e.String({title:"Template ID",description:"A unique identifier for the template. Can be any string, but should be unique."})),name:e.String({title:"Template Name"}),description:e.Optional(e.String({title:"Show template description"})),readme:e.Optional(e.Record(e.RegExp(/^[a-z]{2}$/),e.String(),{title:"Readme texts.",description:"A dictionary of readme files for different languages (iso 2 letters code). Currently on supported for 'en' and 'fr'."})),tags:e.Optional(e.Array(e.String(),{title:"Tags"})),author:e.Optional(e.String({title:"Author name"})),thumbnail:e.Optional(e.String({title:"Thumbnail",description:"A URL to the thumbnail image for the template."})),homepage:e.Optional(e.String({title:"Homepage",description:"A URL to the homepage of the template."}))});import d from"node:fs";import{readFile as x}from"node:fs/promises";import L from"fast-glob";import{createLogger as b}from"vite";var g="0.0.
|
|
3
|
+
import{Type as e}from"@sinclair/typebox";var c=e.Object({id:e.Optional(e.String({title:"Template ID",description:"A unique identifier for the template. Can be any string, but should be unique."})),name:e.String({title:"Template Name"}),description:e.Optional(e.String({title:"Show template description"})),readme:e.Optional(e.Record(e.RegExp(/^[a-z]{2}$/),e.String(),{title:"Readme texts.",description:"A dictionary of readme files for different languages (iso 2 letters code). Currently on supported for 'en' and 'fr'."})),tags:e.Optional(e.Array(e.String(),{title:"Tags"})),author:e.Optional(e.String({title:"Author name"})),thumbnail:e.Optional(e.String({title:"Thumbnail",description:"A URL to the thumbnail image for the template."})),homepage:e.Optional(e.String({title:"Homepage",description:"A URL to the homepage of the template."}))});import d from"node:fs";import{readFile as x}from"node:fs/promises";import L from"fast-glob";import{createLogger as b}from"vite";var g="0.0.69";import n from"chalk";function v(r,s,a=!1){let t=b(r==="debug"?"info":r,{prefix:"[enpage]",allowClearScreen:s});return a&&t.info(n.hex("#7270c6").bold(`\u{1F680} Enpage v${g}
|
|
4
4
|
`)),{...t,success:(o,i)=>t.info(n.green(o),i),error:(o,i)=>t.error(n.red(o),i),warn:(o,i)=>t.warn(n.yellow(o),i),warnOnce:(o,i)=>t.warnOnce(n.yellow(o),i),debug:(o,i)=>{r==="debug"&&t.info(n.gray(o),i)}}}var u=v();import{fromError as O}from"zod-validation-error";import{basename as f,dirname as w,extname as S}from"node:path";async function P(r,s=u){d.existsSync(r)||(s.error(`\u{1F534} No enpage.config.js found!
|
|
5
5
|
Your project must have an enpage.config.js file in the root directory.
|
|
6
6
|
|
|
7
|
-
`),process.exit(1));let a=await import(r),t=w(r),o={},i=await L(["README.enpage.md","README.enpage.*.md"],{cwd:t,onlyFiles:!0,absolute:!0,caseSensitiveMatch:!1});for(let p of i){let y=f(p,".md"),
|
|
7
|
+
`),process.exit(1));let a=await import(r),t=w(r),o={},i=await L(["README.enpage.md","README.enpage.*.md"],{cwd:t,onlyFiles:!0,absolute:!0,caseSensitiveMatch:!1});for(let p of i){let y=f(p,".md"),l=S(y),m=(l===".enpage"?"en":l.substring(1)).toLowerCase();s.debug(`Found template readme file (${m}): ${f(p)}`),o[m]=await x(p,"utf-8")}return a.manifest.readme=o,a}function B(r,s){return d.existsSync(r)||(s.error(`\u{1F534} No enpage.manifest.json found!
|
|
8
8
|
You may want to 'build' your template.
|
|
9
9
|
|
|
10
10
|
`),process.exit(1)),JSON.parse(d.readFileSync(r,"utf-8"))}function H(r,s){for(let t in r.datasources)if(r.datasources[t].provider==="json"&&!r.datasources[t].sampleData)throw s.error(`\u{1F534} Error: Datasource "${t}" is missing sample data - nothing will be rendered during development! Please check your enpage.config.js file and add a "sampleData" key to your ${t} datasource.`),new Error(`Missing sample data for datasource "${t}"`);let a=c.safeParse(r.manifest);if(!a.success){s.error(`\u{1F534} Error: template manifest is invalid. Check your call to defineManifest().
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{createLogger as d}from"vite";var o="0.0.
|
|
3
|
+
import{createLogger as d}from"vite";var o="0.0.69";import r from"chalk";function g(i,a,n=!1){let s=d(i==="debug"?"info":i,{prefix:"[enpage]",allowClearScreen:a});return n&&s.info(r.hex("#7270c6").bold(`\u{1F680} Enpage v${o}
|
|
4
4
|
`)),{...s,success:(e,t)=>s.info(r.green(e),t),error:(e,t)=>s.error(r.red(e),t),warn:(e,t)=>s.warn(r.yellow(e),t),warnOnce:(e,t)=>s.warnOnce(r.yellow(e),t),debug:(e,t)=>{i==="debug"&&s.info(r.gray(e),t)}}}var y=g();export{g as createLogger,y as logger};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{Type as t}from"@sinclair/typebox";import{Type as n}from"@sinclair/typebox";var o=n.Transform(n.String({format:"date-time"})).Decode(e=>new Date(e)).Encode(e=>e.toISOString());var r=e=>t.Object({siteId:t.String(),siteDatasourceId:t.String(),config:e,oauthTokenExpireAt:o,oauthRefreshTokenExpireAt:t.Optional(o),nextRefreshTokenAt:t.Optional(o)});export{r as a};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{Type as t}from"@sinclair/typebox";var a=t.Object({id:t.String({title:"ID",description:"The unique identifier of the theme"}),name:t.String({title:"Name",description:"The name of the theme"}),description:t.Optional(t.String({title:"Description",description:"The description of the theme"})),tags:t.Optional(t.Array(t.String({title:"Tag"}),{title:"Tags",description:"The tags of the theme"})),colors:t.Object({primary:t.String({title:"Primary color",description:"The brand's primary color"}),secondary:t.String({title:"Secondary color",description:"The brand's second most used color"}),accent:t.String({title:"Accent color",description:"The brand's least used color"}),neutral:t.String({title:"Neutral color",description:"The base neutral color"})},{title:"Theme base colors",description:"The base colors of the theme. Each theme must declare all these colors."}),typography:t.Object({base:t.Number({title:"Base font size",description:"The base font size in pixels. It is safe to keep it as is.",default:16}),heading:t.Union([t.Literal("system-ui",{title:"System UI"}),t.Literal("transitional",{title:"Transitional"}),t.Literal("old-style",{title:"Old style"}),t.Literal("humanist",{title:"Humanist"}),t.Literal("geometric-humanist",{title:"Geometric humanist"}),t.Literal("classical-humanist",{title:"Classical humanist"}),t.Literal("neo-grotesque",{title:"Neo-grotesque"}),t.Literal("monospace-slab-serif",{title:"Monospace slab serif"}),t.Literal("monospace-code",{title:"Monospace code"}),t.Literal("industrial",{title:"Industrial"}),t.Literal("rounded-sans",{title:"Rounded sans"}),t.Literal("slab-serif",{title:"Slab serif"}),t.Literal("antique",{title:"Antique"}),t.Literal("didone",{title:"Didone"}),t.Literal("handwritten",{title:"Handwritten"}),t.String({title:"Custom font",description:"The custom font name from teh customFonts array","ui:option-hidden":!0})],{title:"Heading font",description:"Used for titles and headings.",default:"system-ui"}),body:t.Union([t.Literal("system-ui",{title:"System UI"}),t.Literal("transitional",{title:"Transitional"}),t.Literal("old-style",{title:"Old style"}),t.Literal("humanist",{title:"Humanist"}),t.Literal("geometric-humanist",{title:"Geometric humanist"}),t.Literal("classical-humanist",{title:"Classical humanist"}),t.Literal("neo-grotesque",{title:"Neo-grotesque"}),t.Literal("monospace-slab-serif",{title:"Monospace slab serif"}),t.Literal("monospace-code",{title:"Monospace code"}),t.Literal("industrial",{title:"Industrial"}),t.Literal("rounded-sans",{title:"Rounded sans"}),t.Literal("slab-serif",{title:"Slab serif"}),t.Literal("antique",{title:"Antique"}),t.Literal("didone",{title:"Didone"}),t.Literal("handwritten",{title:"Handwritten"}),t.String({title:"Custom font",description:"The custom font name from teh customFonts array","ui:option-hidden":!0})],{title:"Body font",description:"Used for paragraphs and body text",default:"system-ui"})}),customFonts:t.Optional(t.Array(t.Object({name:t.String({title:"Name",description:"The name of the font"}),src:t.String({title:"Font URL",description:"The URL of the font"}),display:t.Optional(t.Union([t.Literal("auto",{title:"Auto"}),t.Literal("swap",{title:"Swap"}),t.Literal("block",{title:"Block"}),t.Literal("fallback",{title:"Fallback"}),t.Literal("optional",{title:"Optional"}),t.String({title:"Custom"})],{title:"Display",default:"auto"})),stretch:t.Optional(t.Union([t.Literal("normal",{title:"Normal"}),t.Literal("ultra-condensed",{title:"Ultra condensed"}),t.Literal("extra-condensed",{title:"Extra condensed"}),t.Literal("condensed",{title:"Condensed"}),t.Literal("semi-condensed",{title:"Semi condensed"}),t.Literal("semi-expanded",{title:"Semi expanded"}),t.Literal("expanded",{title:"Expanded"}),t.Literal("extra-expanded",{title:"Extra expanded"}),t.Literal("ultra-expanded",{title:"Ultra expanded"}),t.String({title:"Custom"})],{title:"Stretch",default:"normal"})),style:t.Optional(t.Union([t.Literal("normal",{title:"Normal"}),t.Literal("italic",{title:"Italic"}),t.Literal("oblique",{title:"Oblique"}),t.String({title:"Custom"})],{title:"Style",default:"normal"})),weight:t.Optional(t.Union([t.Literal("normal",{title:"Normal"}),t.Literal("bold",{title:"Bold"}),t.Literal("bolder",{title:"Bolder"}),t.Literal("lighter",{title:"Lighter"}),t.Literal("100",{title:"100"}),t.Literal("200",{title:"200"}),t.Literal("300",{title:"300"}),t.Literal("400",{title:"400"}),t.Literal("500",{title:"500"}),t.Literal("600",{title:"600"}),t.Literal("700",{title:"700"}),t.Literal("800",{title:"800"}),t.Literal("900",{title:"900"}),t.String({title:"Custom"})],{title:"Weight",default:"normal"}))},{title:"Custom font"}),{title:"Custom fonts",description:"The custom fonts used in the theme"}))},{$id:"Theme"});function o(e,l){return l.customFonts?.length?{...e,properties:{...e.properties,typography:{...e.properties.typography,properties:{...e.properties.typography.properties,body:t.Union([...l.customFonts.map(i=>t.Literal(i.name,{title:i.name})),...e.properties.typography.properties.body.anyOf]),heading:t.Union([...l.customFonts.map(i=>t.Literal(i.name,{title:i.name})),...e.properties.typography.properties.heading.anyOf])}}}}:e}var n=t.Array(a);export{a,o as b,n as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Static } from "@sinclair/typebox";
|
|
1
|
+
import { type Static, type StaticDecode } from "@sinclair/typebox";
|
|
2
2
|
declare const metaOAuthConfig: import("@sinclair/typebox").TObject<{
|
|
3
3
|
type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"short-lived">, import("@sinclair/typebox").TLiteral<"long-lived">]>;
|
|
4
4
|
accessToken: import("@sinclair/typebox").TString;
|
|
@@ -19,10 +19,10 @@ declare const metaFullOAuthConfig: import("@sinclair/typebox").TObject<{
|
|
|
19
19
|
expiresIn: import("@sinclair/typebox").TNumber;
|
|
20
20
|
tokenType: import("@sinclair/typebox").TString;
|
|
21
21
|
}>;
|
|
22
|
-
oauthTokenExpireAt: import("@sinclair/typebox").TString
|
|
23
|
-
oauthRefreshTokenExpireAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString
|
|
24
|
-
nextRefreshTokenAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString
|
|
22
|
+
oauthTokenExpireAt: import("@sinclair/typebox").TTransform<import("@sinclair/typebox").TString, Date>;
|
|
23
|
+
oauthRefreshTokenExpireAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTransform<import("@sinclair/typebox").TString, Date>>;
|
|
24
|
+
nextRefreshTokenAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTransform<import("@sinclair/typebox").TString, Date>>;
|
|
25
25
|
}>;
|
|
26
|
-
export type MetaFullOAuthConfig =
|
|
26
|
+
export type MetaFullOAuthConfig = StaticDecode<typeof metaFullOAuthConfig>;
|
|
27
27
|
export {};
|
|
28
28
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -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,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;AAGzE,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"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a as e}from"../../../../chunk-
|
|
3
|
+
import{a as e}from"../../../../chunk-A3ACTIE3.js";import{Type as t}from"@sinclair/typebox";var i=t.Object({type:t.Union([t.Literal("short-lived"),t.Literal("long-lived")]),accessToken:t.String(),userId:t.String(),permissions:t.Array(t.String()),expiresIn:t.Number(),tokenType:t.String()}),r=e(i);
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import { type Static } from "@sinclair/typebox";
|
|
1
|
+
import { type StaticDecode, type Static } from "@sinclair/typebox";
|
|
2
|
+
declare const tiktokOAuthConfig: import("@sinclair/typebox").TObject<{
|
|
3
|
+
accessToken: import("@sinclair/typebox").TString;
|
|
4
|
+
expiresIn: import("@sinclair/typebox").TNumber;
|
|
5
|
+
openId: import("@sinclair/typebox").TString;
|
|
6
|
+
refreshExpiresIn: import("@sinclair/typebox").TNumber;
|
|
7
|
+
refreshToken: import("@sinclair/typebox").TString;
|
|
8
|
+
scope: import("@sinclair/typebox").TString;
|
|
9
|
+
tokenType: import("@sinclair/typebox").TString;
|
|
10
|
+
}>;
|
|
11
|
+
export type TiktokOAuthConfig = Static<typeof tiktokOAuthConfig>;
|
|
2
12
|
declare const tiktokFullOAuthConfig: import("@sinclair/typebox").TObject<{
|
|
3
13
|
siteId: import("@sinclair/typebox").TString;
|
|
4
14
|
siteDatasourceId: import("@sinclair/typebox").TString;
|
|
@@ -11,10 +21,10 @@ declare const tiktokFullOAuthConfig: import("@sinclair/typebox").TObject<{
|
|
|
11
21
|
scope: import("@sinclair/typebox").TString;
|
|
12
22
|
tokenType: import("@sinclair/typebox").TString;
|
|
13
23
|
}>;
|
|
14
|
-
oauthTokenExpireAt: import("@sinclair/typebox").TString
|
|
15
|
-
oauthRefreshTokenExpireAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString
|
|
16
|
-
nextRefreshTokenAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString
|
|
24
|
+
oauthTokenExpireAt: import("@sinclair/typebox").TTransform<import("@sinclair/typebox").TString, Date>;
|
|
25
|
+
oauthRefreshTokenExpireAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTransform<import("@sinclair/typebox").TString, Date>>;
|
|
26
|
+
nextRefreshTokenAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTransform<import("@sinclair/typebox").TString, Date>>;
|
|
17
27
|
}>;
|
|
18
|
-
export type TiktokFullOAuthConfig =
|
|
28
|
+
export type TiktokFullOAuthConfig = StaticDecode<typeof tiktokFullOAuthConfig>;
|
|
19
29
|
export {};
|
|
20
30
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/tiktok/oauth/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/datasources/external/tiktok/oauth/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,YAAY,EAAE,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGzE,QAAA,MAAM,iBAAiB;;;;;;;;EAQrB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEjE,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;EAA4C,CAAC;AACxE,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a as e}from"../../../../chunk-
|
|
3
|
+
import{a as e}from"../../../../chunk-A3ACTIE3.js";import{Type as t}from"@sinclair/typebox";var o=t.Object({accessToken:t.String(),expiresIn:t.Number(),openId:t.String(),refreshExpiresIn:t.Number(),refreshToken:t.String(),scope:t.String(),tokenType:t.String()}),r=e(o);
|
|
@@ -11,9 +11,9 @@ declare const youtubeFullOAuthConfig: import("@sinclair/typebox").TObject<{
|
|
|
11
11
|
scope: import("@sinclair/typebox").TString;
|
|
12
12
|
tokenType: import("@sinclair/typebox").TString;
|
|
13
13
|
}>;
|
|
14
|
-
oauthTokenExpireAt: import("@sinclair/typebox").TString
|
|
15
|
-
oauthRefreshTokenExpireAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString
|
|
16
|
-
nextRefreshTokenAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString
|
|
14
|
+
oauthTokenExpireAt: import("@sinclair/typebox").TTransform<import("@sinclair/typebox").TString, Date>;
|
|
15
|
+
oauthRefreshTokenExpireAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTransform<import("@sinclair/typebox").TString, Date>>;
|
|
16
|
+
nextRefreshTokenAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTransform<import("@sinclair/typebox").TString, Date>>;
|
|
17
17
|
}>;
|
|
18
18
|
export type YoutubeFullOAuthConfig = Static<typeof youtubeFullOAuthConfig>;
|
|
19
19
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a as e}from"../../../../chunk-
|
|
3
|
+
import{a as e}from"../../../../chunk-A3ACTIE3.js";import{Type as t}from"@sinclair/typebox";var o=t.Object({accessToken:t.String(),expiresIn:t.Number(),openId:t.String(),refreshExpiresIn:t.Number(),refreshToken:t.String(),scope:t.String(),tokenType:t.String()}),r=e(o);
|
|
@@ -2,7 +2,7 @@ import { type Static, type TObject } from "@sinclair/typebox";
|
|
|
2
2
|
export declare const providersSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"facebook-posts">, import("@sinclair/typebox").TLiteral<"instagram-feed">, import("@sinclair/typebox").TLiteral<"mastodon-status">, import("@sinclair/typebox").TLiteral<"rss">, import("@sinclair/typebox").TLiteral<"threads-media">, import("@sinclair/typebox").TLiteral<"tiktok-video">, import("@sinclair/typebox").TLiteral<"youtube-list">, import("@sinclair/typebox").TLiteral<"json">]>;
|
|
3
3
|
export type DatasourceProvider = Static<typeof providersSchema>;
|
|
4
4
|
declare const datasourceProviderManifest: TObject<{
|
|
5
|
-
options: import("@sinclair/typebox").TUnion<[TObject<{
|
|
5
|
+
options: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TAny, TObject<{
|
|
6
6
|
refreshInterval: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
7
7
|
headers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
8
8
|
url: import("@sinclair/typebox").TString;
|
|
@@ -18,6 +18,12 @@ declare const datasourceProviderManifest: TObject<{
|
|
|
18
18
|
}>, TObject<{
|
|
19
19
|
refreshInterval: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
20
20
|
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
21
|
+
}>, TObject<{
|
|
22
|
+
refreshInterval: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
23
|
+
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
24
|
+
}>, TObject<{
|
|
25
|
+
refreshInterval: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
26
|
+
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
21
27
|
}>, TObject<{
|
|
22
28
|
refreshInterval: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
23
29
|
order: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -26,7 +32,7 @@ declare const datasourceProviderManifest: TObject<{
|
|
|
26
32
|
regionCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
27
33
|
relevanceLanguage: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
28
34
|
}>]>;
|
|
29
|
-
provider: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"
|
|
35
|
+
provider: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"generic">, import("@sinclair/typebox").TLiteral<"json">, import("@sinclair/typebox").TLiteral<"tiktok-video">, import("@sinclair/typebox").TLiteral<"rss">, import("@sinclair/typebox").TLiteral<"mastodon-status">, import("@sinclair/typebox").TLiteral<"threads-media">, import("@sinclair/typebox").TLiteral<"instragram-feed">, import("@sinclair/typebox").TLiteral<"facebook-posts">, import("@sinclair/typebox").TLiteral<"youtube-list">]>;
|
|
30
36
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
31
37
|
name: import("@sinclair/typebox").TString;
|
|
32
38
|
sampleData: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
@@ -40,7 +46,7 @@ declare const datasourceGenericManifest: TObject<{
|
|
|
40
46
|
provider: import("@sinclair/typebox").TLiteral<"generic">;
|
|
41
47
|
name: import("@sinclair/typebox").TString;
|
|
42
48
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
43
|
-
schema:
|
|
49
|
+
schema: import("@sinclair/typebox").TAny;
|
|
44
50
|
refresh: import("@sinclair/typebox").TOptional<TObject<{
|
|
45
51
|
method: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"interval">, import("@sinclair/typebox").TLiteral<"manual">]>;
|
|
46
52
|
interval: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
@@ -52,14 +58,14 @@ export declare const datasourcesMap: import("@sinclair/typebox").TRecord<import(
|
|
|
52
58
|
provider: import("@sinclair/typebox").TLiteral<"generic">;
|
|
53
59
|
name: import("@sinclair/typebox").TString;
|
|
54
60
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
55
|
-
schema:
|
|
61
|
+
schema: import("@sinclair/typebox").TAny;
|
|
56
62
|
refresh: import("@sinclair/typebox").TOptional<TObject<{
|
|
57
63
|
method: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"interval">, import("@sinclair/typebox").TLiteral<"manual">]>;
|
|
58
64
|
interval: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
59
65
|
}>>;
|
|
60
66
|
sampleData: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
61
67
|
}>, TObject<{
|
|
62
|
-
options: import("@sinclair/typebox").TUnion<[TObject<{
|
|
68
|
+
options: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TAny, TObject<{
|
|
63
69
|
refreshInterval: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
64
70
|
headers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
65
71
|
url: import("@sinclair/typebox").TString;
|
|
@@ -75,6 +81,12 @@ export declare const datasourcesMap: import("@sinclair/typebox").TRecord<import(
|
|
|
75
81
|
}>, TObject<{
|
|
76
82
|
refreshInterval: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
77
83
|
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
84
|
+
}>, TObject<{
|
|
85
|
+
refreshInterval: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
86
|
+
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
87
|
+
}>, TObject<{
|
|
88
|
+
refreshInterval: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
89
|
+
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
78
90
|
}>, TObject<{
|
|
79
91
|
refreshInterval: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
80
92
|
order: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -83,7 +95,7 @@ export declare const datasourcesMap: import("@sinclair/typebox").TRecord<import(
|
|
|
83
95
|
regionCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
84
96
|
relevanceLanguage: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
85
97
|
}>]>;
|
|
86
|
-
provider: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"
|
|
98
|
+
provider: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"generic">, import("@sinclair/typebox").TLiteral<"json">, import("@sinclair/typebox").TLiteral<"tiktok-video">, import("@sinclair/typebox").TLiteral<"rss">, import("@sinclair/typebox").TLiteral<"mastodon-status">, import("@sinclair/typebox").TLiteral<"threads-media">, import("@sinclair/typebox").TLiteral<"instragram-feed">, import("@sinclair/typebox").TLiteral<"facebook-posts">, import("@sinclair/typebox").TLiteral<"youtube-list">]>;
|
|
87
99
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
88
100
|
name: import("@sinclair/typebox").TString;
|
|
89
101
|
sampleData: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
@@ -94,7 +106,7 @@ export declare const datasourcesMap: import("@sinclair/typebox").TRecord<import(
|
|
|
94
106
|
}>]>>;
|
|
95
107
|
export type DatasourcesMap = Static<typeof datasourcesMap>;
|
|
96
108
|
export type DatasourcesResolved<T extends DatasourcesMap> = {
|
|
97
|
-
|
|
109
|
+
[K in keyof T]: unknown;
|
|
98
110
|
};
|
|
99
111
|
export {};
|
|
100
112
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/shared/datasources/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,KAAK,OAAO,EAAgB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/shared/datasources/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,KAAK,OAAO,EAAgB,MAAM,mBAAmB,CAAC;AAelF,eAAO,MAAM,eAAe,6cAS1B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC;AAwDhE,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB9B,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEnF,QAAA,MAAM,yBAAyB;;;;;;;;;;EA0B7B,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAEjF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAI1B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAE3D,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,cAAc,IAAI;KACzD,CAAC,IAAI,MAAM,CAAC,GAAG,OAAO;CACxB,CAAC"}
|