@atproto/oauth-provider 0.18.3 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/dist/account/account-manager.d.ts +11 -7
- package/dist/account/account-manager.d.ts.map +1 -1
- package/dist/account/account-manager.js +82 -19
- package/dist/account/account-manager.js.map +1 -1
- package/dist/account/account-store.d.ts +47 -13
- package/dist/account/account-store.d.ts.map +1 -1
- package/dist/account/account-store.js +12 -9
- package/dist/account/account-store.js.map +1 -1
- package/dist/account/sign-in-data.d.ts +2 -2
- package/dist/account/sign-up-input.d.ts +5 -5
- package/dist/client/client-manager.d.ts.map +1 -1
- package/dist/client/client-manager.js.map +1 -1
- package/dist/client/client.d.ts +1 -1
- package/dist/client/client.d.ts.map +1 -1
- package/dist/client/client.js.map +1 -1
- package/dist/customization/branding.d.ts +52 -52
- package/dist/customization/colors.d.ts +24 -24
- package/dist/customization/colors.d.ts.map +1 -1
- package/dist/customization/customization.d.ts +77 -77
- package/dist/customization/links.d.ts +4 -4
- package/dist/device/device-manager.d.ts +20 -20
- package/dist/device/device-manager.d.ts.map +1 -1
- package/dist/device/device-manager.js.map +1 -1
- package/dist/device/device-store.js +1 -1
- package/dist/device/device-store.js.map +1 -1
- package/dist/dpop/dpop-manager.d.ts.map +1 -1
- package/dist/dpop/dpop-manager.js.map +1 -1
- package/dist/dpop/dpop-nonce.d.ts.map +1 -1
- package/dist/dpop/dpop-nonce.js +1 -1
- package/dist/dpop/dpop-nonce.js.map +1 -1
- package/dist/errors/access-denied-error.d.ts.map +1 -1
- package/dist/errors/account-selection-required-error.d.ts.map +1 -1
- package/dist/errors/authorization-error.d.ts.map +1 -1
- package/dist/errors/authorization-error.js.map +1 -1
- package/dist/errors/consent-required-error.d.ts.map +1 -1
- package/dist/errors/handle-unavailable-error.d.ts +1 -1
- package/dist/errors/handle-unavailable-error.d.ts.map +1 -1
- package/dist/errors/handle-unavailable-error.js.map +1 -1
- package/dist/errors/invalid-authorization-details-error.d.ts.map +1 -1
- package/dist/errors/invalid-client-error.d.ts.map +1 -1
- package/dist/errors/invalid-client-id-error.d.ts.map +1 -1
- package/dist/errors/invalid-client-metadata-error.d.ts.map +1 -1
- package/dist/errors/invalid-credentials-error.d.ts +9 -9
- package/dist/errors/invalid-credentials-error.d.ts.map +1 -1
- package/dist/errors/invalid-credentials-error.js +8 -8
- package/dist/errors/invalid-credentials-error.js.map +1 -1
- package/dist/errors/invalid-dpop-key-binding-error.d.ts.map +1 -1
- package/dist/errors/invalid-dpop-proof-error.d.ts.map +1 -1
- package/dist/errors/invalid-grant-error.d.ts.map +1 -1
- package/dist/errors/invalid-invite-code-error.d.ts.map +1 -1
- package/dist/errors/invalid-redirect-uri-error.d.ts.map +1 -1
- package/dist/errors/invalid-request-error.d.ts.map +1 -1
- package/dist/errors/invalid-scope-error.d.ts.map +1 -1
- package/dist/errors/invalid-token-error.d.ts.map +1 -1
- package/dist/errors/invalid-token-error.js.map +1 -1
- package/dist/errors/login-required-error.d.ts.map +1 -1
- package/dist/errors/oauth-error.d.ts.map +1 -1
- package/dist/errors/oauth-error.js.map +1 -1
- package/dist/errors/second-authentication-factor-required-error.d.ts +2 -2
- package/dist/errors/second-authentication-factor-required-error.d.ts.map +1 -1
- package/dist/errors/second-authentication-factor-required-error.js.map +1 -1
- package/dist/errors/unauthorized-client-error.d.ts.map +1 -1
- package/dist/errors/use-dpop-nonce-error.d.ts.map +1 -1
- package/dist/errors/www-authenticate-error.d.ts.map +1 -1
- package/dist/lexicon/lexicon-getter.d.ts.map +1 -1
- package/dist/lexicon/lexicon-manager.d.ts.map +1 -1
- package/dist/lexicon/lexicon-store.js +1 -1
- package/dist/lexicon/lexicon-store.js.map +1 -1
- package/dist/lib/csp/index.d.ts +3 -3
- package/dist/lib/csp/index.d.ts.map +1 -1
- package/dist/lib/hcaptcha.d.ts +3 -3
- package/dist/lib/hcaptcha.d.ts.map +1 -1
- package/dist/lib/hcaptcha.js.map +1 -1
- package/dist/lib/html/build-document.d.ts.map +1 -1
- package/dist/lib/html/html.d.ts.map +1 -1
- package/dist/lib/html/tags.d.ts.map +1 -1
- package/dist/lib/http/accept.js.map +1 -1
- package/dist/lib/http/context.js.map +1 -1
- package/dist/lib/http/middleware.js.map +1 -1
- package/dist/lib/http/parser.d.ts +5 -5
- package/dist/lib/http/parser.d.ts.map +1 -1
- package/dist/lib/http/response.js.map +1 -1
- package/dist/lib/http/router.d.ts.map +1 -1
- package/dist/lib/http/stream.d.ts +5 -5
- package/dist/lib/http/stream.d.ts.map +1 -1
- package/dist/lib/util/authorization-header.d.ts +1 -1
- package/dist/lib/util/authorization-header.d.ts.map +1 -1
- package/dist/lib/util/color.js.map +1 -1
- package/dist/lib/util/crypto.d.ts +1 -1
- package/dist/lib/util/crypto.d.ts.map +1 -1
- package/dist/lib/util/date.js.map +1 -1
- package/dist/lib/util/function.js +1 -1
- package/dist/lib/util/function.js.map +1 -1
- package/dist/lib/util/type.d.ts.map +1 -1
- package/dist/oauth-hooks.d.ts +77 -4
- package/dist/oauth-hooks.d.ts.map +1 -1
- package/dist/oauth-hooks.js.map +1 -1
- package/dist/oauth-middleware.js.map +1 -1
- package/dist/oauth-provider.d.ts +31 -31
- package/dist/oauth-provider.d.ts.map +1 -1
- package/dist/oauth-provider.js +15 -9
- package/dist/oauth-provider.js.map +1 -1
- package/dist/oauth-verifier.d.ts.map +1 -1
- package/dist/replay/replay-manager.d.ts.map +1 -1
- package/dist/replay/replay-manager.js.map +1 -1
- package/dist/replay/replay-store-memory.d.ts.map +1 -1
- package/dist/replay/replay-store-redis.d.ts.map +1 -1
- package/dist/request/code.d.ts.map +1 -1
- package/dist/request/request-data.d.ts +4 -4
- package/dist/request/request-data.d.ts.map +1 -1
- package/dist/request/request-data.js +1 -1
- package/dist/request/request-data.js.map +1 -1
- package/dist/request/request-manager.d.ts +32 -32
- package/dist/request/request-manager.d.ts.map +1 -1
- package/dist/request/request-manager.js +7 -4
- package/dist/request/request-manager.js.map +1 -1
- package/dist/request/request-store.d.ts +1 -1
- package/dist/request/request-store.js +2 -2
- package/dist/request/request-store.js.map +1 -1
- package/dist/result/authorization-result-authorize-page.d.ts +1 -1
- package/dist/result/authorization-result-authorize-page.js.map +1 -1
- package/dist/router/assets/assets-manifest.js.map +1 -1
- package/dist/router/assets/assets.d.ts +1 -1
- package/dist/router/assets/assets.d.ts.map +1 -1
- package/dist/router/assets/assets.js.map +1 -1
- package/dist/router/assets/send-account-page.d.ts.map +1 -1
- package/dist/router/assets/send-authorization-page.d.ts.map +1 -1
- package/dist/router/assets/send-authorization-page.js +1 -1
- package/dist/router/assets/send-authorization-page.js.map +1 -1
- package/dist/router/assets/send-cookie-error-page.d.ts.map +1 -1
- package/dist/router/assets/send-error-page.d.ts.map +1 -1
- package/dist/router/assets/send-redirect.d.ts +2 -2
- package/dist/router/assets/send-redirect.d.ts.map +1 -1
- package/dist/router/create-api-middleware.d.ts.map +1 -1
- package/dist/router/create-api-middleware.js +87 -51
- package/dist/router/create-api-middleware.js.map +1 -1
- package/dist/signer/access-token-payload.d.ts +1762 -1762
- package/dist/signer/access-token-payload.d.ts.map +1 -1
- package/dist/signer/access-token-payload.js +2 -2
- package/dist/signer/access-token-payload.js.map +1 -1
- package/dist/signer/api-token-payload.d.ts +1738 -1738
- package/dist/signer/api-token-payload.d.ts.map +1 -1
- package/dist/signer/api-token-payload.js +2 -2
- package/dist/signer/api-token-payload.js.map +1 -1
- package/dist/signer/signer.d.ts +6 -187
- package/dist/signer/signer.d.ts.map +1 -1
- package/dist/signer/signer.js.map +1 -1
- package/dist/token/refresh-token.d.ts.map +1 -1
- package/dist/token/token-claims.d.ts +2 -1
- package/dist/token/token-claims.d.ts.map +1 -1
- package/dist/token/token-claims.js.map +1 -1
- package/dist/token/token-data.d.ts +3 -3
- package/dist/token/token-data.d.ts.map +1 -1
- package/dist/token/token-data.js.map +1 -1
- package/dist/token/token-id.d.ts.map +1 -1
- package/dist/token/token-manager.d.ts +3 -3
- package/dist/token/token-manager.d.ts.map +1 -1
- package/dist/token/token-manager.js +14 -14
- package/dist/token/token-manager.js.map +1 -1
- package/dist/token/token-store.d.ts +3 -3
- package/dist/token/token-store.d.ts.map +1 -1
- package/dist/token/token-store.js +3 -3
- package/dist/token/token-store.js.map +1 -1
- package/dist/types/handle.d.ts +5 -1
- package/dist/types/handle.d.ts.map +1 -1
- package/dist/types/handle.js +9 -8
- package/dist/types/handle.js.map +1 -1
- package/package.json +19 -19
- package/src/account/account-manager.ts +123 -20
- package/src/account/account-store.ts +67 -19
- package/src/device/device-store.ts +1 -1
- package/src/errors/invalid-credentials-error.ts +8 -8
- package/src/lexicon/lexicon-store.ts +1 -1
- package/src/lib/util/function.ts +2 -2
- package/src/oauth-hooks.ts +85 -3
- package/src/oauth-provider.ts +17 -9
- package/src/request/request-data.ts +5 -5
- package/src/request/request-manager.ts +11 -4
- package/src/request/request-store.ts +3 -3
- package/src/result/authorization-result-authorize-page.ts +1 -1
- package/src/router/assets/send-authorization-page.ts +1 -1
- package/src/router/create-api-middleware.ts +128 -67
- package/src/signer/access-token-payload.ts +2 -2
- package/src/signer/api-token-payload.ts +2 -2
- package/src/signer/signer.ts +13 -4
- package/src/token/token-claims.ts +2 -1
- package/src/token/token-data.ts +3 -3
- package/src/token/token-manager.ts +15 -15
- package/src/token/token-store.ts +6 -6
- package/src/types/handle.ts +21 -16
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/oidc/sub.d.ts +0 -4
- package/dist/oidc/sub.d.ts.map +0 -1
- package/dist/oidc/sub.js +0 -3
- package/dist/oidc/sub.js.map +0 -1
- package/src/oidc/sub.ts +0 -4
|
@@ -6,112 +6,112 @@ export declare const brandingSchema: z.ZodObject<{
|
|
|
6
6
|
light: z.ZodOptional<z.ZodEffects<z.ZodString, import("../lib/util/color.js").RgbColor, string>>;
|
|
7
7
|
dark: z.ZodOptional<z.ZodEffects<z.ZodString, import("../lib/util/color.js").RgbColor, string>>;
|
|
8
8
|
contrastSaturation: z.ZodOptional<z.ZodNumber>;
|
|
9
|
-
}, Record<"error" | "
|
|
10
|
-
error?: import("../lib/util/color.js").RgbColor | undefined;
|
|
11
|
-
success?: import("../lib/util/color.js").RgbColor | undefined;
|
|
12
|
-
warning?: import("../lib/util/color.js").RgbColor | undefined;
|
|
9
|
+
}, Record<"error" | "info" | "primary" | "success" | "warning", z.ZodOptional<z.ZodEffects<z.ZodString, import("../lib/util/color.js").RgbColor, string>>>>, Record<"errorContrast" | "infoContrast" | "primaryContrast" | "successContrast" | "warningContrast", z.ZodOptional<z.ZodEffects<z.ZodString, import("../lib/util/color.js").RgbColor, string>>>>, Record<"errorHue" | "infoHue" | "primaryHue" | "successHue" | "warningHue", z.ZodOptional<z.ZodNumber>>>, "strip", z.ZodTypeAny, {
|
|
13
10
|
light?: import("../lib/util/color.js").RgbColor | undefined;
|
|
14
11
|
dark?: import("../lib/util/color.js").RgbColor | undefined;
|
|
15
12
|
contrastSaturation?: number | undefined;
|
|
16
|
-
|
|
17
|
-
info?: import("../lib/util/color.js").RgbColor | undefined;
|
|
13
|
+
error?: import("../lib/util/color.js").RgbColor | undefined;
|
|
18
14
|
errorContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
19
|
-
successContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
20
|
-
warningContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
21
|
-
primaryContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
22
|
-
infoContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
23
15
|
errorHue?: number | undefined;
|
|
16
|
+
info?: import("../lib/util/color.js").RgbColor | undefined;
|
|
17
|
+
infoContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
18
|
+
infoHue?: number | undefined;
|
|
19
|
+
primary?: import("../lib/util/color.js").RgbColor | undefined;
|
|
20
|
+
primaryContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
21
|
+
primaryHue?: number | undefined;
|
|
22
|
+
success?: import("../lib/util/color.js").RgbColor | undefined;
|
|
23
|
+
successContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
24
24
|
successHue?: number | undefined;
|
|
25
|
+
warning?: import("../lib/util/color.js").RgbColor | undefined;
|
|
26
|
+
warningContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
25
27
|
warningHue?: number | undefined;
|
|
26
|
-
primaryHue?: number | undefined;
|
|
27
|
-
infoHue?: number | undefined;
|
|
28
28
|
}, {
|
|
29
|
-
error?: string | undefined;
|
|
30
|
-
success?: string | undefined;
|
|
31
|
-
warning?: string | undefined;
|
|
32
29
|
light?: string | undefined;
|
|
33
30
|
dark?: string | undefined;
|
|
34
31
|
contrastSaturation?: number | undefined;
|
|
35
|
-
|
|
36
|
-
info?: string | undefined;
|
|
32
|
+
error?: string | undefined;
|
|
37
33
|
errorContrast?: string | undefined;
|
|
38
|
-
successContrast?: string | undefined;
|
|
39
|
-
warningContrast?: string | undefined;
|
|
40
|
-
primaryContrast?: string | undefined;
|
|
41
|
-
infoContrast?: string | undefined;
|
|
42
34
|
errorHue?: number | undefined;
|
|
35
|
+
info?: string | undefined;
|
|
36
|
+
infoContrast?: string | undefined;
|
|
37
|
+
infoHue?: number | undefined;
|
|
38
|
+
primary?: string | undefined;
|
|
39
|
+
primaryContrast?: string | undefined;
|
|
40
|
+
primaryHue?: number | undefined;
|
|
41
|
+
success?: string | undefined;
|
|
42
|
+
successContrast?: string | undefined;
|
|
43
43
|
successHue?: number | undefined;
|
|
44
|
+
warning?: string | undefined;
|
|
45
|
+
warningContrast?: string | undefined;
|
|
44
46
|
warningHue?: number | undefined;
|
|
45
|
-
primaryHue?: number | undefined;
|
|
46
|
-
infoHue?: number | undefined;
|
|
47
47
|
}>>;
|
|
48
48
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
49
49
|
title: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>]>;
|
|
50
50
|
href: z.ZodString;
|
|
51
|
-
rel: z.ZodOptional<z.ZodEffects<z.ZodString, "
|
|
51
|
+
rel: z.ZodOptional<z.ZodEffects<z.ZodString, "alternate" | "author" | "canonical" | "dns-prefetch" | "expect" | "external" | "help" | "icon" | "license" | "manifest" | "me" | "modulepreload" | "next" | "pingback" | "preconnect" | "prefetch" | "preload" | "prerender" | "prev" | "privacy-policy" | "search" | "stylesheet" | "terms-of-service", string>>;
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
53
|
-
href: string;
|
|
54
53
|
title: string | Record<string, string | undefined>;
|
|
55
|
-
rel?: "search" | "expect" | "manifest" | "alternate" | "author" | "canonical" | "dns-prefetch" | "external" | "help" | "icon" | "license" | "me" | "modulepreload" | "next" | "pingback" | "preconnect" | "prefetch" | "preload" | "prerender" | "prev" | "privacy-policy" | "stylesheet" | "terms-of-service" | undefined;
|
|
56
|
-
}, {
|
|
57
54
|
href: string;
|
|
55
|
+
rel?: "alternate" | "author" | "canonical" | "dns-prefetch" | "expect" | "external" | "help" | "icon" | "license" | "manifest" | "me" | "modulepreload" | "next" | "pingback" | "preconnect" | "prefetch" | "preload" | "prerender" | "prev" | "privacy-policy" | "search" | "stylesheet" | "terms-of-service" | undefined;
|
|
56
|
+
}, {
|
|
58
57
|
title: string | Record<string, string | undefined>;
|
|
58
|
+
href: string;
|
|
59
59
|
rel?: string | undefined;
|
|
60
60
|
}>, "many">>;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
62
|
name?: string | undefined;
|
|
63
63
|
logo?: string | undefined;
|
|
64
64
|
colors?: {
|
|
65
|
-
error?: import("../lib/util/color.js").RgbColor | undefined;
|
|
66
|
-
success?: import("../lib/util/color.js").RgbColor | undefined;
|
|
67
|
-
warning?: import("../lib/util/color.js").RgbColor | undefined;
|
|
68
65
|
light?: import("../lib/util/color.js").RgbColor | undefined;
|
|
69
66
|
dark?: import("../lib/util/color.js").RgbColor | undefined;
|
|
70
67
|
contrastSaturation?: number | undefined;
|
|
71
|
-
|
|
72
|
-
info?: import("../lib/util/color.js").RgbColor | undefined;
|
|
68
|
+
error?: import("../lib/util/color.js").RgbColor | undefined;
|
|
73
69
|
errorContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
74
|
-
successContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
75
|
-
warningContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
76
|
-
primaryContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
77
|
-
infoContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
78
70
|
errorHue?: number | undefined;
|
|
71
|
+
info?: import("../lib/util/color.js").RgbColor | undefined;
|
|
72
|
+
infoContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
73
|
+
infoHue?: number | undefined;
|
|
74
|
+
primary?: import("../lib/util/color.js").RgbColor | undefined;
|
|
75
|
+
primaryContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
76
|
+
primaryHue?: number | undefined;
|
|
77
|
+
success?: import("../lib/util/color.js").RgbColor | undefined;
|
|
78
|
+
successContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
79
79
|
successHue?: number | undefined;
|
|
80
|
+
warning?: import("../lib/util/color.js").RgbColor | undefined;
|
|
81
|
+
warningContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
80
82
|
warningHue?: number | undefined;
|
|
81
|
-
primaryHue?: number | undefined;
|
|
82
|
-
infoHue?: number | undefined;
|
|
83
83
|
} | undefined;
|
|
84
84
|
links?: {
|
|
85
|
-
href: string;
|
|
86
85
|
title: string | Record<string, string | undefined>;
|
|
87
|
-
|
|
86
|
+
href: string;
|
|
87
|
+
rel?: "alternate" | "author" | "canonical" | "dns-prefetch" | "expect" | "external" | "help" | "icon" | "license" | "manifest" | "me" | "modulepreload" | "next" | "pingback" | "preconnect" | "prefetch" | "preload" | "prerender" | "prev" | "privacy-policy" | "search" | "stylesheet" | "terms-of-service" | undefined;
|
|
88
88
|
}[] | undefined;
|
|
89
89
|
}, {
|
|
90
90
|
name?: string | undefined;
|
|
91
91
|
logo?: string | undefined;
|
|
92
92
|
colors?: {
|
|
93
|
-
error?: string | undefined;
|
|
94
|
-
success?: string | undefined;
|
|
95
|
-
warning?: string | undefined;
|
|
96
93
|
light?: string | undefined;
|
|
97
94
|
dark?: string | undefined;
|
|
98
95
|
contrastSaturation?: number | undefined;
|
|
99
|
-
|
|
100
|
-
info?: string | undefined;
|
|
96
|
+
error?: string | undefined;
|
|
101
97
|
errorContrast?: string | undefined;
|
|
102
|
-
successContrast?: string | undefined;
|
|
103
|
-
warningContrast?: string | undefined;
|
|
104
|
-
primaryContrast?: string | undefined;
|
|
105
|
-
infoContrast?: string | undefined;
|
|
106
98
|
errorHue?: number | undefined;
|
|
99
|
+
info?: string | undefined;
|
|
100
|
+
infoContrast?: string | undefined;
|
|
101
|
+
infoHue?: number | undefined;
|
|
102
|
+
primary?: string | undefined;
|
|
103
|
+
primaryContrast?: string | undefined;
|
|
104
|
+
primaryHue?: number | undefined;
|
|
105
|
+
success?: string | undefined;
|
|
106
|
+
successContrast?: string | undefined;
|
|
107
107
|
successHue?: number | undefined;
|
|
108
|
+
warning?: string | undefined;
|
|
109
|
+
warningContrast?: string | undefined;
|
|
108
110
|
warningHue?: number | undefined;
|
|
109
|
-
primaryHue?: number | undefined;
|
|
110
|
-
infoHue?: number | undefined;
|
|
111
111
|
} | undefined;
|
|
112
112
|
links?: {
|
|
113
|
-
href: string;
|
|
114
113
|
title: string | Record<string, string | undefined>;
|
|
114
|
+
href: string;
|
|
115
115
|
rel?: string | undefined;
|
|
116
116
|
}[] | undefined;
|
|
117
117
|
}>;
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const COLOR_NAMES: readonly [
|
|
2
|
+
export declare const COLOR_NAMES: readonly ['primary', 'error', 'warning', 'info', 'success'];
|
|
3
3
|
export type ColorName = (typeof COLOR_NAMES)[number];
|
|
4
4
|
export declare const colorsSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
5
5
|
light: z.ZodOptional<z.ZodEffects<z.ZodString, import("../lib/util/color.js").RgbColor, string>>;
|
|
6
6
|
dark: z.ZodOptional<z.ZodEffects<z.ZodString, import("../lib/util/color.js").RgbColor, string>>;
|
|
7
7
|
contrastSaturation: z.ZodOptional<z.ZodNumber>;
|
|
8
|
-
}, Record<"error" | "
|
|
9
|
-
error?: import("../lib/util/color.js").RgbColor | undefined;
|
|
10
|
-
success?: import("../lib/util/color.js").RgbColor | undefined;
|
|
11
|
-
warning?: import("../lib/util/color.js").RgbColor | undefined;
|
|
8
|
+
}, Record<"error" | "info" | "primary" | "success" | "warning", z.ZodOptional<z.ZodEffects<z.ZodString, import("../lib/util/color.js").RgbColor, string>>>>, Record<"errorContrast" | "infoContrast" | "primaryContrast" | "successContrast" | "warningContrast", z.ZodOptional<z.ZodEffects<z.ZodString, import("../lib/util/color.js").RgbColor, string>>>>, Record<"errorHue" | "infoHue" | "primaryHue" | "successHue" | "warningHue", z.ZodOptional<z.ZodNumber>>>, "strip", z.ZodTypeAny, {
|
|
12
9
|
light?: import("../lib/util/color.js").RgbColor | undefined;
|
|
13
10
|
dark?: import("../lib/util/color.js").RgbColor | undefined;
|
|
14
11
|
contrastSaturation?: number | undefined;
|
|
15
|
-
|
|
16
|
-
info?: import("../lib/util/color.js").RgbColor | undefined;
|
|
12
|
+
error?: import("../lib/util/color.js").RgbColor | undefined;
|
|
17
13
|
errorContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
18
|
-
successContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
19
|
-
warningContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
20
|
-
primaryContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
21
|
-
infoContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
22
14
|
errorHue?: number | undefined;
|
|
15
|
+
info?: import("../lib/util/color.js").RgbColor | undefined;
|
|
16
|
+
infoContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
17
|
+
infoHue?: number | undefined;
|
|
18
|
+
primary?: import("../lib/util/color.js").RgbColor | undefined;
|
|
19
|
+
primaryContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
20
|
+
primaryHue?: number | undefined;
|
|
21
|
+
success?: import("../lib/util/color.js").RgbColor | undefined;
|
|
22
|
+
successContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
23
23
|
successHue?: number | undefined;
|
|
24
|
+
warning?: import("../lib/util/color.js").RgbColor | undefined;
|
|
25
|
+
warningContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
24
26
|
warningHue?: number | undefined;
|
|
25
|
-
primaryHue?: number | undefined;
|
|
26
|
-
infoHue?: number | undefined;
|
|
27
27
|
}, {
|
|
28
|
-
error?: string | undefined;
|
|
29
|
-
success?: string | undefined;
|
|
30
|
-
warning?: string | undefined;
|
|
31
28
|
light?: string | undefined;
|
|
32
29
|
dark?: string | undefined;
|
|
33
30
|
contrastSaturation?: number | undefined;
|
|
34
|
-
|
|
35
|
-
info?: string | undefined;
|
|
31
|
+
error?: string | undefined;
|
|
36
32
|
errorContrast?: string | undefined;
|
|
37
|
-
successContrast?: string | undefined;
|
|
38
|
-
warningContrast?: string | undefined;
|
|
39
|
-
primaryContrast?: string | undefined;
|
|
40
|
-
infoContrast?: string | undefined;
|
|
41
33
|
errorHue?: number | undefined;
|
|
34
|
+
info?: string | undefined;
|
|
35
|
+
infoContrast?: string | undefined;
|
|
36
|
+
infoHue?: number | undefined;
|
|
37
|
+
primary?: string | undefined;
|
|
38
|
+
primaryContrast?: string | undefined;
|
|
39
|
+
primaryHue?: number | undefined;
|
|
40
|
+
success?: string | undefined;
|
|
41
|
+
successContrast?: string | undefined;
|
|
42
42
|
successHue?: number | undefined;
|
|
43
|
+
warning?: string | undefined;
|
|
44
|
+
warningContrast?: string | undefined;
|
|
43
45
|
warningHue?: number | undefined;
|
|
44
|
-
primaryHue?: number | undefined;
|
|
45
|
-
infoHue?: number | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
export type Colors = z.infer<typeof colorsSchema>;
|
|
48
48
|
//# sourceMappingURL=colors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/customization/colors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/customization/colors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,WAAW,YACtB,SAAS,EACT,OAAO,EACP,SAAS,EACT,MAAM,EACN,SAAS,CACD,CAAA;AACV,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAA;AAEpD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCtB,CAAA;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA"}
|
|
@@ -15,112 +15,112 @@ export declare const customizationSchema: z.ZodObject<{
|
|
|
15
15
|
light: z.ZodOptional<z.ZodEffects<z.ZodString, import("../lib/util/color.js").RgbColor, string>>;
|
|
16
16
|
dark: z.ZodOptional<z.ZodEffects<z.ZodString, import("../lib/util/color.js").RgbColor, string>>;
|
|
17
17
|
contrastSaturation: z.ZodOptional<z.ZodNumber>;
|
|
18
|
-
}, Record<"error" | "
|
|
19
|
-
error?: import("../lib/util/color.js").RgbColor | undefined;
|
|
20
|
-
success?: import("../lib/util/color.js").RgbColor | undefined;
|
|
21
|
-
warning?: import("../lib/util/color.js").RgbColor | undefined;
|
|
18
|
+
}, Record<"error" | "info" | "primary" | "success" | "warning", z.ZodOptional<z.ZodEffects<z.ZodString, import("../lib/util/color.js").RgbColor, string>>>>, Record<"errorContrast" | "infoContrast" | "primaryContrast" | "successContrast" | "warningContrast", z.ZodOptional<z.ZodEffects<z.ZodString, import("../lib/util/color.js").RgbColor, string>>>>, Record<"errorHue" | "infoHue" | "primaryHue" | "successHue" | "warningHue", z.ZodOptional<z.ZodNumber>>>, "strip", z.ZodTypeAny, {
|
|
22
19
|
light?: import("../lib/util/color.js").RgbColor | undefined;
|
|
23
20
|
dark?: import("../lib/util/color.js").RgbColor | undefined;
|
|
24
21
|
contrastSaturation?: number | undefined;
|
|
25
|
-
|
|
26
|
-
info?: import("../lib/util/color.js").RgbColor | undefined;
|
|
22
|
+
error?: import("../lib/util/color.js").RgbColor | undefined;
|
|
27
23
|
errorContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
28
|
-
successContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
29
|
-
warningContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
30
|
-
primaryContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
31
|
-
infoContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
32
24
|
errorHue?: number | undefined;
|
|
25
|
+
info?: import("../lib/util/color.js").RgbColor | undefined;
|
|
26
|
+
infoContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
27
|
+
infoHue?: number | undefined;
|
|
28
|
+
primary?: import("../lib/util/color.js").RgbColor | undefined;
|
|
29
|
+
primaryContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
30
|
+
primaryHue?: number | undefined;
|
|
31
|
+
success?: import("../lib/util/color.js").RgbColor | undefined;
|
|
32
|
+
successContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
33
33
|
successHue?: number | undefined;
|
|
34
|
+
warning?: import("../lib/util/color.js").RgbColor | undefined;
|
|
35
|
+
warningContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
34
36
|
warningHue?: number | undefined;
|
|
35
|
-
primaryHue?: number | undefined;
|
|
36
|
-
infoHue?: number | undefined;
|
|
37
37
|
}, {
|
|
38
|
-
error?: string | undefined;
|
|
39
|
-
success?: string | undefined;
|
|
40
|
-
warning?: string | undefined;
|
|
41
38
|
light?: string | undefined;
|
|
42
39
|
dark?: string | undefined;
|
|
43
40
|
contrastSaturation?: number | undefined;
|
|
44
|
-
|
|
45
|
-
info?: string | undefined;
|
|
41
|
+
error?: string | undefined;
|
|
46
42
|
errorContrast?: string | undefined;
|
|
47
|
-
successContrast?: string | undefined;
|
|
48
|
-
warningContrast?: string | undefined;
|
|
49
|
-
primaryContrast?: string | undefined;
|
|
50
|
-
infoContrast?: string | undefined;
|
|
51
43
|
errorHue?: number | undefined;
|
|
44
|
+
info?: string | undefined;
|
|
45
|
+
infoContrast?: string | undefined;
|
|
46
|
+
infoHue?: number | undefined;
|
|
47
|
+
primary?: string | undefined;
|
|
48
|
+
primaryContrast?: string | undefined;
|
|
49
|
+
primaryHue?: number | undefined;
|
|
50
|
+
success?: string | undefined;
|
|
51
|
+
successContrast?: string | undefined;
|
|
52
52
|
successHue?: number | undefined;
|
|
53
|
+
warning?: string | undefined;
|
|
54
|
+
warningContrast?: string | undefined;
|
|
53
55
|
warningHue?: number | undefined;
|
|
54
|
-
primaryHue?: number | undefined;
|
|
55
|
-
infoHue?: number | undefined;
|
|
56
56
|
}>>;
|
|
57
57
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
58
58
|
title: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>]>;
|
|
59
59
|
href: z.ZodString;
|
|
60
|
-
rel: z.ZodOptional<z.ZodEffects<z.ZodString, "
|
|
60
|
+
rel: z.ZodOptional<z.ZodEffects<z.ZodString, "alternate" | "author" | "canonical" | "dns-prefetch" | "expect" | "external" | "help" | "icon" | "license" | "manifest" | "me" | "modulepreload" | "next" | "pingback" | "preconnect" | "prefetch" | "preload" | "prerender" | "prev" | "privacy-policy" | "search" | "stylesheet" | "terms-of-service", string>>;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
href: string;
|
|
63
62
|
title: string | Record<string, string | undefined>;
|
|
64
|
-
rel?: "search" | "expect" | "manifest" | "alternate" | "author" | "canonical" | "dns-prefetch" | "external" | "help" | "icon" | "license" | "me" | "modulepreload" | "next" | "pingback" | "preconnect" | "prefetch" | "preload" | "prerender" | "prev" | "privacy-policy" | "stylesheet" | "terms-of-service" | undefined;
|
|
65
|
-
}, {
|
|
66
63
|
href: string;
|
|
64
|
+
rel?: "alternate" | "author" | "canonical" | "dns-prefetch" | "expect" | "external" | "help" | "icon" | "license" | "manifest" | "me" | "modulepreload" | "next" | "pingback" | "preconnect" | "prefetch" | "preload" | "prerender" | "prev" | "privacy-policy" | "search" | "stylesheet" | "terms-of-service" | undefined;
|
|
65
|
+
}, {
|
|
67
66
|
title: string | Record<string, string | undefined>;
|
|
67
|
+
href: string;
|
|
68
68
|
rel?: string | undefined;
|
|
69
69
|
}>, "many">>;
|
|
70
70
|
}, "strip", z.ZodTypeAny, {
|
|
71
71
|
name?: string | undefined;
|
|
72
72
|
logo?: string | undefined;
|
|
73
73
|
colors?: {
|
|
74
|
-
error?: import("../lib/util/color.js").RgbColor | undefined;
|
|
75
|
-
success?: import("../lib/util/color.js").RgbColor | undefined;
|
|
76
|
-
warning?: import("../lib/util/color.js").RgbColor | undefined;
|
|
77
74
|
light?: import("../lib/util/color.js").RgbColor | undefined;
|
|
78
75
|
dark?: import("../lib/util/color.js").RgbColor | undefined;
|
|
79
76
|
contrastSaturation?: number | undefined;
|
|
80
|
-
|
|
81
|
-
info?: import("../lib/util/color.js").RgbColor | undefined;
|
|
77
|
+
error?: import("../lib/util/color.js").RgbColor | undefined;
|
|
82
78
|
errorContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
83
|
-
successContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
84
|
-
warningContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
85
|
-
primaryContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
86
|
-
infoContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
87
79
|
errorHue?: number | undefined;
|
|
80
|
+
info?: import("../lib/util/color.js").RgbColor | undefined;
|
|
81
|
+
infoContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
82
|
+
infoHue?: number | undefined;
|
|
83
|
+
primary?: import("../lib/util/color.js").RgbColor | undefined;
|
|
84
|
+
primaryContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
85
|
+
primaryHue?: number | undefined;
|
|
86
|
+
success?: import("../lib/util/color.js").RgbColor | undefined;
|
|
87
|
+
successContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
88
88
|
successHue?: number | undefined;
|
|
89
|
+
warning?: import("../lib/util/color.js").RgbColor | undefined;
|
|
90
|
+
warningContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
89
91
|
warningHue?: number | undefined;
|
|
90
|
-
primaryHue?: number | undefined;
|
|
91
|
-
infoHue?: number | undefined;
|
|
92
92
|
} | undefined;
|
|
93
93
|
links?: {
|
|
94
|
-
href: string;
|
|
95
94
|
title: string | Record<string, string | undefined>;
|
|
96
|
-
|
|
95
|
+
href: string;
|
|
96
|
+
rel?: "alternate" | "author" | "canonical" | "dns-prefetch" | "expect" | "external" | "help" | "icon" | "license" | "manifest" | "me" | "modulepreload" | "next" | "pingback" | "preconnect" | "prefetch" | "preload" | "prerender" | "prev" | "privacy-policy" | "search" | "stylesheet" | "terms-of-service" | undefined;
|
|
97
97
|
}[] | undefined;
|
|
98
98
|
}, {
|
|
99
99
|
name?: string | undefined;
|
|
100
100
|
logo?: string | undefined;
|
|
101
101
|
colors?: {
|
|
102
|
-
error?: string | undefined;
|
|
103
|
-
success?: string | undefined;
|
|
104
|
-
warning?: string | undefined;
|
|
105
102
|
light?: string | undefined;
|
|
106
103
|
dark?: string | undefined;
|
|
107
104
|
contrastSaturation?: number | undefined;
|
|
108
|
-
|
|
109
|
-
info?: string | undefined;
|
|
105
|
+
error?: string | undefined;
|
|
110
106
|
errorContrast?: string | undefined;
|
|
111
|
-
successContrast?: string | undefined;
|
|
112
|
-
warningContrast?: string | undefined;
|
|
113
|
-
primaryContrast?: string | undefined;
|
|
114
|
-
infoContrast?: string | undefined;
|
|
115
107
|
errorHue?: number | undefined;
|
|
108
|
+
info?: string | undefined;
|
|
109
|
+
infoContrast?: string | undefined;
|
|
110
|
+
infoHue?: number | undefined;
|
|
111
|
+
primary?: string | undefined;
|
|
112
|
+
primaryContrast?: string | undefined;
|
|
113
|
+
primaryHue?: number | undefined;
|
|
114
|
+
success?: string | undefined;
|
|
115
|
+
successContrast?: string | undefined;
|
|
116
116
|
successHue?: number | undefined;
|
|
117
|
+
warning?: string | undefined;
|
|
118
|
+
warningContrast?: string | undefined;
|
|
117
119
|
warningHue?: number | undefined;
|
|
118
|
-
primaryHue?: number | undefined;
|
|
119
|
-
infoHue?: number | undefined;
|
|
120
120
|
} | undefined;
|
|
121
121
|
links?: {
|
|
122
|
-
href: string;
|
|
123
122
|
title: string | Record<string, string | undefined>;
|
|
123
|
+
href: string;
|
|
124
124
|
rel?: string | undefined;
|
|
125
125
|
}[] | undefined;
|
|
126
126
|
}>>;
|
|
@@ -157,29 +157,29 @@ export declare const customizationSchema: z.ZodObject<{
|
|
|
157
157
|
name?: string | undefined;
|
|
158
158
|
logo?: string | undefined;
|
|
159
159
|
colors?: {
|
|
160
|
-
error?: import("../lib/util/color.js").RgbColor | undefined;
|
|
161
|
-
success?: import("../lib/util/color.js").RgbColor | undefined;
|
|
162
|
-
warning?: import("../lib/util/color.js").RgbColor | undefined;
|
|
163
160
|
light?: import("../lib/util/color.js").RgbColor | undefined;
|
|
164
161
|
dark?: import("../lib/util/color.js").RgbColor | undefined;
|
|
165
162
|
contrastSaturation?: number | undefined;
|
|
166
|
-
|
|
167
|
-
info?: import("../lib/util/color.js").RgbColor | undefined;
|
|
163
|
+
error?: import("../lib/util/color.js").RgbColor | undefined;
|
|
168
164
|
errorContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
169
|
-
successContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
170
|
-
warningContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
171
|
-
primaryContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
172
|
-
infoContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
173
165
|
errorHue?: number | undefined;
|
|
166
|
+
info?: import("../lib/util/color.js").RgbColor | undefined;
|
|
167
|
+
infoContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
168
|
+
infoHue?: number | undefined;
|
|
169
|
+
primary?: import("../lib/util/color.js").RgbColor | undefined;
|
|
170
|
+
primaryContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
171
|
+
primaryHue?: number | undefined;
|
|
172
|
+
success?: import("../lib/util/color.js").RgbColor | undefined;
|
|
173
|
+
successContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
174
174
|
successHue?: number | undefined;
|
|
175
|
+
warning?: import("../lib/util/color.js").RgbColor | undefined;
|
|
176
|
+
warningContrast?: import("../lib/util/color.js").RgbColor | undefined;
|
|
175
177
|
warningHue?: number | undefined;
|
|
176
|
-
primaryHue?: number | undefined;
|
|
177
|
-
infoHue?: number | undefined;
|
|
178
178
|
} | undefined;
|
|
179
179
|
links?: {
|
|
180
|
-
href: string;
|
|
181
180
|
title: string | Record<string, string | undefined>;
|
|
182
|
-
|
|
181
|
+
href: string;
|
|
182
|
+
rel?: "alternate" | "author" | "canonical" | "dns-prefetch" | "expect" | "external" | "help" | "icon" | "license" | "manifest" | "me" | "modulepreload" | "next" | "pingback" | "preconnect" | "prefetch" | "preload" | "prerender" | "prev" | "privacy-policy" | "search" | "stylesheet" | "terms-of-service" | undefined;
|
|
183
183
|
}[] | undefined;
|
|
184
184
|
} | undefined;
|
|
185
185
|
inviteCodeRequired?: boolean | undefined;
|
|
@@ -196,28 +196,28 @@ export declare const customizationSchema: z.ZodObject<{
|
|
|
196
196
|
name?: string | undefined;
|
|
197
197
|
logo?: string | undefined;
|
|
198
198
|
colors?: {
|
|
199
|
-
error?: string | undefined;
|
|
200
|
-
success?: string | undefined;
|
|
201
|
-
warning?: string | undefined;
|
|
202
199
|
light?: string | undefined;
|
|
203
200
|
dark?: string | undefined;
|
|
204
201
|
contrastSaturation?: number | undefined;
|
|
205
|
-
|
|
206
|
-
info?: string | undefined;
|
|
202
|
+
error?: string | undefined;
|
|
207
203
|
errorContrast?: string | undefined;
|
|
208
|
-
successContrast?: string | undefined;
|
|
209
|
-
warningContrast?: string | undefined;
|
|
210
|
-
primaryContrast?: string | undefined;
|
|
211
|
-
infoContrast?: string | undefined;
|
|
212
204
|
errorHue?: number | undefined;
|
|
205
|
+
info?: string | undefined;
|
|
206
|
+
infoContrast?: string | undefined;
|
|
207
|
+
infoHue?: number | undefined;
|
|
208
|
+
primary?: string | undefined;
|
|
209
|
+
primaryContrast?: string | undefined;
|
|
210
|
+
primaryHue?: number | undefined;
|
|
211
|
+
success?: string | undefined;
|
|
212
|
+
successContrast?: string | undefined;
|
|
213
213
|
successHue?: number | undefined;
|
|
214
|
+
warning?: string | undefined;
|
|
215
|
+
warningContrast?: string | undefined;
|
|
214
216
|
warningHue?: number | undefined;
|
|
215
|
-
primaryHue?: number | undefined;
|
|
216
|
-
infoHue?: number | undefined;
|
|
217
217
|
} | undefined;
|
|
218
218
|
links?: {
|
|
219
|
-
href: string;
|
|
220
219
|
title: string | Record<string, string | undefined>;
|
|
220
|
+
href: string;
|
|
221
221
|
rel?: string | undefined;
|
|
222
222
|
}[] | undefined;
|
|
223
223
|
} | undefined;
|
|
@@ -2,14 +2,14 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const linksSchema: z.ZodObject<{
|
|
3
3
|
title: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>]>;
|
|
4
4
|
href: z.ZodString;
|
|
5
|
-
rel: z.ZodOptional<z.ZodEffects<z.ZodString, "
|
|
5
|
+
rel: z.ZodOptional<z.ZodEffects<z.ZodString, "alternate" | "author" | "canonical" | "dns-prefetch" | "expect" | "external" | "help" | "icon" | "license" | "manifest" | "me" | "modulepreload" | "next" | "pingback" | "preconnect" | "prefetch" | "preload" | "prerender" | "prev" | "privacy-policy" | "search" | "stylesheet" | "terms-of-service", string>>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
href: string;
|
|
8
7
|
title: string | Record<string, string | undefined>;
|
|
9
|
-
rel?: "search" | "expect" | "manifest" | "alternate" | "author" | "canonical" | "dns-prefetch" | "external" | "help" | "icon" | "license" | "me" | "modulepreload" | "next" | "pingback" | "preconnect" | "prefetch" | "preload" | "prerender" | "prev" | "privacy-policy" | "stylesheet" | "terms-of-service" | undefined;
|
|
10
|
-
}, {
|
|
11
8
|
href: string;
|
|
9
|
+
rel?: "alternate" | "author" | "canonical" | "dns-prefetch" | "expect" | "external" | "help" | "icon" | "license" | "manifest" | "me" | "modulepreload" | "next" | "pingback" | "preconnect" | "prefetch" | "preload" | "prerender" | "prev" | "privacy-policy" | "search" | "stylesheet" | "terms-of-service" | undefined;
|
|
10
|
+
}, {
|
|
12
11
|
title: string | Record<string, string | undefined>;
|
|
12
|
+
href: string;
|
|
13
13
|
rel?: string | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
export type Links = z.infer<typeof linksSchema>;
|
|
@@ -11,12 +11,12 @@ export declare const keygripSchema: z.ZodObject<{
|
|
|
11
11
|
verify: z.ZodFunction<z.ZodTuple<[z.ZodAny, z.ZodString], z.ZodUnknown>, z.ZodBoolean>;
|
|
12
12
|
index: z.ZodFunction<z.ZodTuple<[z.ZodAny, z.ZodString], z.ZodUnknown>, z.ZodNumber>;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
verify: (args_0: any, args_1: string, ...args: unknown[]) => boolean;
|
|
15
14
|
sign: (args_0: any, ...args: unknown[]) => string;
|
|
15
|
+
verify: (args_0: any, args_1: string, ...args: unknown[]) => boolean;
|
|
16
16
|
index: (args_0: any, args_1: string, ...args: unknown[]) => number;
|
|
17
17
|
}, {
|
|
18
|
-
verify: (args_0: any, args_1: string, ...args: unknown[]) => boolean;
|
|
19
18
|
sign: (args_0: any, ...args: unknown[]) => string;
|
|
19
|
+
verify: (args_0: any, args_1: string, ...args: unknown[]) => boolean;
|
|
20
20
|
index: (args_0: any, args_1: string, ...args: unknown[]) => number;
|
|
21
21
|
}>;
|
|
22
22
|
export declare const deviceManagerOptionsSchema: z.ZodObject<{
|
|
@@ -40,12 +40,12 @@ export declare const deviceManagerOptionsSchema: z.ZodObject<{
|
|
|
40
40
|
verify: z.ZodFunction<z.ZodTuple<[z.ZodAny, z.ZodString], z.ZodUnknown>, z.ZodBoolean>;
|
|
41
41
|
index: z.ZodFunction<z.ZodTuple<[z.ZodAny, z.ZodString], z.ZodUnknown>, z.ZodNumber>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
verify: (args_0: any, args_1: string, ...args: unknown[]) => boolean;
|
|
44
43
|
sign: (args_0: any, ...args: unknown[]) => string;
|
|
44
|
+
verify: (args_0: any, args_1: string, ...args: unknown[]) => boolean;
|
|
45
45
|
index: (args_0: any, args_1: string, ...args: unknown[]) => number;
|
|
46
46
|
}, {
|
|
47
|
-
verify: (args_0: any, args_1: string, ...args: unknown[]) => boolean;
|
|
48
47
|
sign: (args_0: any, ...args: unknown[]) => string;
|
|
48
|
+
verify: (args_0: any, args_1: string, ...args: unknown[]) => boolean;
|
|
49
49
|
index: (args_0: any, args_1: string, ...args: unknown[]) => number;
|
|
50
50
|
}>>;
|
|
51
51
|
/**
|
|
@@ -69,50 +69,50 @@ export declare const deviceManagerOptionsSchema: z.ZodObject<{
|
|
|
69
69
|
*/
|
|
70
70
|
sameSite: z.ZodDefault<z.ZodEnum<["lax", "strict"]>>;
|
|
71
71
|
}, "strip", z.ZodTypeAny, {
|
|
72
|
-
age: number | null;
|
|
73
|
-
sameSite: "strict" | "lax";
|
|
74
|
-
secure: boolean;
|
|
75
72
|
keys?: {
|
|
76
|
-
verify: (args_0: any, args_1: string, ...args: unknown[]) => boolean;
|
|
77
73
|
sign: (args_0: any, ...args: unknown[]) => string;
|
|
74
|
+
verify: (args_0: any, args_1: string, ...args: unknown[]) => boolean;
|
|
78
75
|
index: (args_0: any, args_1: string, ...args: unknown[]) => number;
|
|
79
76
|
} | undefined;
|
|
77
|
+
age: number | null;
|
|
78
|
+
secure: boolean;
|
|
79
|
+
sameSite: "lax" | "strict";
|
|
80
80
|
}, {
|
|
81
81
|
keys?: {
|
|
82
|
-
verify: (args_0: any, args_1: string, ...args: unknown[]) => boolean;
|
|
83
82
|
sign: (args_0: any, ...args: unknown[]) => string;
|
|
83
|
+
verify: (args_0: any, args_1: string, ...args: unknown[]) => boolean;
|
|
84
84
|
index: (args_0: any, args_1: string, ...args: unknown[]) => number;
|
|
85
85
|
} | undefined;
|
|
86
86
|
age?: number | null | undefined;
|
|
87
|
-
sameSite?: "strict" | "lax" | undefined;
|
|
88
87
|
secure?: boolean | undefined;
|
|
88
|
+
sameSite?: "lax" | "strict" | undefined;
|
|
89
89
|
}>>;
|
|
90
90
|
}, "strip", z.ZodTypeAny, {
|
|
91
|
+
trustProxy?: ((addr: string, i: number, ...args: unknown[]) => boolean) | undefined;
|
|
92
|
+
rotationRate: number;
|
|
91
93
|
cookie: {
|
|
92
|
-
age: number | null;
|
|
93
|
-
sameSite: "strict" | "lax";
|
|
94
|
-
secure: boolean;
|
|
95
94
|
keys?: {
|
|
96
|
-
verify: (args_0: any, args_1: string, ...args: unknown[]) => boolean;
|
|
97
95
|
sign: (args_0: any, ...args: unknown[]) => string;
|
|
96
|
+
verify: (args_0: any, args_1: string, ...args: unknown[]) => boolean;
|
|
98
97
|
index: (args_0: any, args_1: string, ...args: unknown[]) => number;
|
|
99
98
|
} | undefined;
|
|
99
|
+
age: number | null;
|
|
100
|
+
secure: boolean;
|
|
101
|
+
sameSite: "lax" | "strict";
|
|
100
102
|
};
|
|
101
|
-
rotationRate: number;
|
|
102
|
-
trustProxy?: ((addr: string, i: number, ...args: unknown[]) => boolean) | undefined;
|
|
103
103
|
}, {
|
|
104
|
+
trustProxy?: ((addr: string, i: number, ...args: unknown[]) => boolean) | undefined;
|
|
105
|
+
rotationRate?: number | undefined;
|
|
104
106
|
cookie?: {
|
|
105
107
|
keys?: {
|
|
106
|
-
verify: (args_0: any, args_1: string, ...args: unknown[]) => boolean;
|
|
107
108
|
sign: (args_0: any, ...args: unknown[]) => string;
|
|
109
|
+
verify: (args_0: any, args_1: string, ...args: unknown[]) => boolean;
|
|
108
110
|
index: (args_0: any, args_1: string, ...args: unknown[]) => number;
|
|
109
111
|
} | undefined;
|
|
110
112
|
age?: number | null | undefined;
|
|
111
|
-
sameSite?: "strict" | "lax" | undefined;
|
|
112
113
|
secure?: boolean | undefined;
|
|
114
|
+
sameSite?: "lax" | "strict" | undefined;
|
|
113
115
|
} | undefined;
|
|
114
|
-
trustProxy?: ((addr: string, i: number, ...args: unknown[]) => boolean) | undefined;
|
|
115
|
-
rotationRate?: number | undefined;
|
|
116
116
|
}>;
|
|
117
117
|
export type DeviceManagerOptions = z.input<typeof deviceManagerOptionsSchema>;
|
|
118
118
|
export type DeviceInfo = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-manager.d.ts","sourceRoot":"","sources":["../../src/device/device-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAChE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,OAAO,EACL,eAAe,EAGhB,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EAAE,QAAQ,EAAoC,MAAM,gBAAgB,CAAA;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAG/C;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;EAIxB,CAAA;AAEF,eAAO,MAAM,0BAA0B;IACrC;;;OAGG;;IAOH;;;;OAIG;;IAEH;;OAEG;;;;;;;;;;;;;;;QAIC;;;;;;WAMG;;QAKH;;;;WAIG;;QAEH;;;;WAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIP,CAAA;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAO7E,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,QAAQ,CAAA;IAClB,cAAc,EAAE,eAAe,CAAA;CAChC,CAAA;AAED;;;;GAIG;AACH,qBAAa,aAAa;IAItB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAHxB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA6C;
|
|
1
|
+
{"version":3,"file":"device-manager.d.ts","sourceRoot":"","sources":["../../src/device/device-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAChE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,OAAO,EACL,eAAe,EAGhB,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EAAE,QAAQ,EAAoC,MAAM,gBAAgB,CAAA;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAG/C;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;EAIxB,CAAA;AAEF,eAAO,MAAM,0BAA0B;IACrC;;;OAGG;;IAOH;;;;OAIG;;IAEH;;OAEG;;;;;;;;;;;;;;;QAIC;;;;;;WAMG;;QAKH;;;;WAIG;;QAEH;;;;WAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIP,CAAA;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAO7E,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,QAAQ,CAAA;IAClB,cAAc,EAAE,eAAe,CAAA;CAChC,CAAA;AAED;;;;GAIG;AACH,qBAAa,aAAa;IAItB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAHxB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA6C;IAErE,YACmB,KAAK,EAAE,WAAW,EACnC,OAAO,GAAE,oBAAyB,EAGnC;IAEY,UAAU,CAAC,GAAG,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC,CAG9D;IAEY,IAAI,CACf,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,WAAW,UAAQ,GAClB,OAAO,CAAC,UAAU,CAAC,CAYrB;YAEa,MAAM;YAuBN,OAAO;YA0CP,MAAM;YAiBN,UAAU;IAyBxB,OAAO,CAAC,WAAW;YA4BL,UAAU;IASxB,OAAO,CAAC,WAAW;IAqBZ,kBAAkB,CAAC,GAAG,EAAE,eAAe,mBAE7C;CACF"}
|