@stacksjs/types 0.74.57 → 0.74.58
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/auth.d.ts +13 -0
- package/dist/email.d.ts +7 -0
- package/dist/oauth.d.ts +1 -0
- package/package.json +4 -4
package/dist/auth.d.ts
CHANGED
|
@@ -14,6 +14,18 @@ export declare interface AuthCookieConfig {
|
|
|
14
14
|
secure?: boolean
|
|
15
15
|
sameSite?: 'Strict' | 'Lax' | 'None'
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Policy for access tokens issued to first-party browser sessions.
|
|
19
|
+
*
|
|
20
|
+
* These lifetimes are absolute and expressed in milliseconds. They are
|
|
21
|
+
* separate from `idleTimeout`, which limits how long an otherwise-live session
|
|
22
|
+
* may go unused, and from API/OAuth token settings, which remain unchanged.
|
|
23
|
+
*/
|
|
24
|
+
export declare interface BrowserSessionConfig {
|
|
25
|
+
baselineLifetime?: number
|
|
26
|
+
rememberedLifetime?: number
|
|
27
|
+
withRefreshToken?: boolean
|
|
28
|
+
}
|
|
17
29
|
export declare interface AuthOptions {
|
|
18
30
|
enabled?: boolean
|
|
19
31
|
env?: string[]
|
|
@@ -35,6 +47,7 @@ export declare interface AuthOptions {
|
|
|
35
47
|
tokenExpiry: number
|
|
36
48
|
refreshTokenExpiry?: number
|
|
37
49
|
idleTimeout?: number
|
|
50
|
+
browserSession?: BrowserSessionConfig
|
|
38
51
|
tokenRotation: number
|
|
39
52
|
defaultAbilities: string[]
|
|
40
53
|
defaultTokenName: string
|
package/dist/email.d.ts
CHANGED
|
@@ -75,6 +75,7 @@ export declare interface EmailCategorizationConfig {
|
|
|
75
75
|
export declare interface EmailServerConfig {
|
|
76
76
|
enabled: boolean
|
|
77
77
|
scan?: boolean
|
|
78
|
+
mailboxUsers?: MailboxUserBackend
|
|
78
79
|
generatePasswords?: boolean
|
|
79
80
|
attachTo?: string
|
|
80
81
|
mode?: 'serverless' | 'server'
|
|
@@ -207,5 +208,11 @@ export declare interface MailtrapErrorResponse {
|
|
|
207
208
|
* Email category types for automatic email categorization (Gmail-style)
|
|
208
209
|
*/
|
|
209
210
|
export type EmailCategory = 'social' | 'forums' | 'updates' | 'promotions' | 'primary';
|
|
211
|
+
export type MailboxUserBackend = { driver: 'external' } | {
|
|
212
|
+
driver: 'dynamodb'
|
|
213
|
+
/** Existing table used by the mailbox verifier. Never created by the CLI. */
|
|
214
|
+
table: string
|
|
215
|
+
region?: string
|
|
216
|
+
}
|
|
210
217
|
export type EmailConfig = Partial<EmailOptions>;
|
|
211
218
|
export type MailtrapResponse = MailtrapSuccessResponse | MailtrapErrorResponse;
|
package/dist/oauth.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/types",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.74.
|
|
4
|
+
"version": "0.74.58",
|
|
5
5
|
"description": "The Stacks framework types.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": [
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@stacksjs/bunpress": "^0.2.8",
|
|
60
60
|
"@stacksjs/clapp": "^0.2.12",
|
|
61
|
-
"@stacksjs/events": "0.74.
|
|
62
|
-
"@stacksjs/strings": "0.74.
|
|
61
|
+
"@stacksjs/events": "0.74.58",
|
|
62
|
+
"@stacksjs/strings": "0.74.58",
|
|
63
63
|
"@stacksjs/stx": "^0.2.286",
|
|
64
64
|
"@stacksjs/ts-validation": "^0.5.6",
|
|
65
65
|
"bun-query-builder": "^0.2.70"
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@stacksjs/validation": "0.74.
|
|
76
|
+
"@stacksjs/validation": "0.74.58",
|
|
77
77
|
"better-dx": "^0.2.24",
|
|
78
78
|
"meilisearch": "^0.59.0"
|
|
79
79
|
},
|