@stacksjs/types 0.70.294 → 0.70.297
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 +20 -0
- package/dist/server.d.ts +26 -0
- package/dist/stacks.d.ts +2 -1
- package/package.json +3 -3
package/dist/auth.d.ts
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The browser cookie that carries a personal access token.
|
|
3
|
+
*
|
|
4
|
+
* One name, in one place. Before stacksjs/stacks#2236 there were two: the
|
|
5
|
+
* writer (`authCookie()`) defaulted to `stacks_auth` while every reader looked
|
|
6
|
+
* for `config.auth.defaultTokenName` (`auth-token`), so a cookie the framework
|
|
7
|
+
* set was never one the framework read.
|
|
8
|
+
*/
|
|
9
|
+
export declare interface AuthCookieConfig {
|
|
10
|
+
name?: string
|
|
11
|
+
path?: string
|
|
12
|
+
domain?: string
|
|
13
|
+
maxAge?: number
|
|
14
|
+
secure?: boolean
|
|
15
|
+
sameSite?: 'Strict' | 'Lax' | 'None'
|
|
16
|
+
}
|
|
1
17
|
export declare interface AuthOptions {
|
|
2
18
|
enabled?: boolean
|
|
3
19
|
env?: string[]
|
|
@@ -21,6 +37,7 @@ export declare interface AuthOptions {
|
|
|
21
37
|
tokenRotation: number
|
|
22
38
|
defaultAbilities: string[]
|
|
23
39
|
defaultTokenName: string
|
|
40
|
+
cookie: AuthCookieConfig
|
|
24
41
|
passwordReset: {
|
|
25
42
|
expire: number
|
|
26
43
|
throttle: number
|
|
@@ -36,6 +53,9 @@ export declare interface AuthOptions {
|
|
|
36
53
|
registration?: {
|
|
37
54
|
preventEnumeration?: boolean
|
|
38
55
|
}
|
|
56
|
+
socials?: {
|
|
57
|
+
matching?: 'link' | 'create' | 'refuse'
|
|
58
|
+
}
|
|
39
59
|
}
|
|
40
60
|
export declare interface AuthInstance {
|
|
41
61
|
guard: string
|
package/dist/server.d.ts
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
/**` prefix, or a mutating verb - which made a plain `GET /health`
|
|
2
|
+
* declared on the API process unreachable, and pushed URL design around an
|
|
3
|
+
* internal deployment detail (stacksjs/stacks#2230).
|
|
4
|
+
*
|
|
5
|
+
* The route table cannot be consulted from the views process: it is registered
|
|
6
|
+
* in the API process, which is a separate process under `buddy dev` and
|
|
7
|
+
* potentially a separate host in production. So the app states it here, the way
|
|
8
|
+
* a Next app states `rewrites()`.
|
|
9
|
+
*
|
|
10
|
+
* Note that stx runs its request hook BEFORE static file serving, so a path
|
|
11
|
+
* listed here shadows a `public/` file of the same name.
|
|
12
|
+
*/
|
|
13
|
+
export declare interface ApiProxyOptions {
|
|
14
|
+
prefixes?: string[]
|
|
15
|
+
paths?: string[]
|
|
16
|
+
methods?: string[]
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* **Server Options** - `config/server.ts`.
|
|
20
|
+
*
|
|
21
|
+
* How the views server behaves in the split views/API topology, shared by
|
|
22
|
+
* `buddy dev` and `buddy serve`.
|
|
23
|
+
*/
|
|
24
|
+
export declare interface ServerConfig {
|
|
25
|
+
proxy?: ApiProxyOptions
|
|
26
|
+
}
|
|
1
27
|
export declare interface ServerOptions {
|
|
2
28
|
type?:
|
|
3
29
|
| 'frontend'
|
package/dist/stacks.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AiConfig, AnalyticsConfig, AppConfig, AuthConfig, BinaryConfig, CacheConfig, CloudConfig, CmsConfig, CommerceConfig, CorsConfig, DashboardConfig, DatabaseConfig, DnsConfig, DocsConfig, EmailConfig, ErrorConfig, FeatureFlagsConfig, FilesystemsConfig, GitConfig, HashingConfig, ImagesConfig, LibraryConfig, LoggingConfig, MarketingConfig, MonitoringConfig, NotificationConfig, PaymentConfig, Ports, QueueConfig, RealtimeConfig, SaasConfig, SearchEngineConfig, SecurityConfig, ServicesConfig, Team, UiConfig } from '.';
|
|
1
|
+
import type { AiConfig, AnalyticsConfig, AppConfig, AuthConfig, BinaryConfig, CacheConfig, CloudConfig, CmsConfig, CommerceConfig, CorsConfig, DashboardConfig, DatabaseConfig, DnsConfig, DocsConfig, EmailConfig, ErrorConfig, FeatureFlagsConfig, FilesystemsConfig, GitConfig, HashingConfig, ImagesConfig, LibraryConfig, LoggingConfig, MarketingConfig, MonitoringConfig, NotificationConfig, PaymentConfig, Ports, QueueConfig, RealtimeConfig, SaasConfig, SearchEngineConfig, SecurityConfig, ServerConfig, ServicesConfig, Team, UiConfig } from '.';
|
|
2
2
|
/**
|
|
3
3
|
* **Stacks Options**
|
|
4
4
|
*
|
|
@@ -39,6 +39,7 @@ export declare interface StacksOptions {
|
|
|
39
39
|
saas: SaasConfig
|
|
40
40
|
security: SecurityConfig
|
|
41
41
|
searchEngine: SearchEngineConfig
|
|
42
|
+
server: ServerConfig
|
|
42
43
|
services: ServicesConfig
|
|
43
44
|
filesystems: FilesystemsConfig
|
|
44
45
|
team: Team
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/types",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.70.
|
|
4
|
+
"version": "0.70.297",
|
|
5
5
|
"description": "The Stacks framework types.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": [
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@stacksjs/clapp": "^0.2.12",
|
|
61
61
|
"@stacksjs/stx": "^0.2.148",
|
|
62
62
|
"@stacksjs/ts-validation": "^0.5.0",
|
|
63
|
-
"bun-query-builder": "^0.2.
|
|
63
|
+
"bun-query-builder": "^0.2.23"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"meilisearch": "^0.59.0"
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@stacksjs/validation": "0.70.
|
|
74
|
+
"@stacksjs/validation": "0.70.297",
|
|
75
75
|
"better-dx": "^0.2.17",
|
|
76
76
|
"meilisearch": "^0.59.0"
|
|
77
77
|
},
|