@stacksjs/types 0.75.349 → 0.75.360

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.
Files changed (2) hide show
  1. package/dist/auth.d.ts +5 -0
  2. package/package.json +4 -4
package/dist/auth.d.ts CHANGED
@@ -102,6 +102,11 @@ export declare interface AuthOptions {
102
102
  refreshTokenExpiry?: number
103
103
  idleTimeout?: number
104
104
  rbacCacheTtl?: number
105
+ impersonation?: {
106
+ enabled: boolean
107
+ eligible: (userId: number) => boolean | Promise<boolean>
108
+ workspaceId?: (request: Request, subjectId: number) => string | number | null | Promise<string | number | null>
109
+ }
105
110
  browserSession?: BrowserSessionConfig
106
111
  oauthProvider?: OAuthProviderConfig
107
112
  tokenRotation?: number
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.75.349",
4
+ "version": "0.75.360",
5
5
  "description": "The Stacks framework types.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": [
@@ -64,8 +64,8 @@
64
64
  "dependencies": {
65
65
  "@stacksjs/bunpress": "^0.2.15",
66
66
  "@stacksjs/clapp": "^0.2.12",
67
- "@stacksjs/events": "0.75.349",
68
- "@stacksjs/strings": "0.75.349",
67
+ "@stacksjs/events": "0.75.360",
68
+ "@stacksjs/strings": "0.75.360",
69
69
  "@stacksjs/stx": "0.2.736",
70
70
  "@stacksjs/ts-validation": "^0.5.6",
71
71
  "bun-query-builder": "^0.3.28"
@@ -79,7 +79,7 @@
79
79
  }
80
80
  },
81
81
  "devDependencies": {
82
- "@stacksjs/validation": "0.75.349",
82
+ "@stacksjs/validation": "0.75.360",
83
83
  "better-dx": "^0.2.24",
84
84
  "meilisearch": "^0.62.0"
85
85
  },