@stacksjs/types 0.75.226 → 0.75.229

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/mobile.js ADDED
@@ -0,0 +1 @@
1
+ // @bun
@@ -22,6 +22,7 @@ export declare interface StripeConfig {
22
22
  secretKey: string
23
23
  apiVersion?: string
24
24
  webhookSecret?: string
25
+ webhookTolerance?: number
25
26
  }
26
27
  export declare interface AdyenConfig {
27
28
  apiKey?: string
@@ -14,10 +14,16 @@ export declare interface ApiSecurityOptions {
14
14
  rowScoping: ApiRowScopingPolicy
15
15
  models: ModelApiSelection
16
16
  }
17
+ /** Application-level rate limits: route `.rateLimit()`, `rateLimit()` and the auth lockout. */
18
+ export declare interface RateLimitSecurityOptions {
19
+ scale: number
20
+ }
17
21
  export declare interface SecurityOptions {
18
22
  driver: 'aws'
19
23
  firewall: FirewallOptions
20
24
  api: ApiSecurityOptions
25
+ rateLimit: RateLimitSecurityOptions
26
+ trustedProxies?: readonly string[]
21
27
  }
22
28
  export type FirewallConfig = Partial<FirewallOptions>;
23
29
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.75.226",
4
+ "version": "0.75.229",
5
5
  "description": "The Stacks framework types.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": [
@@ -31,6 +31,12 @@
31
31
  "import": "./dist/index.js",
32
32
  "default": "./dist/index.js"
33
33
  },
34
+ "./mobile": {
35
+ "types": "./dist/mobile.d.ts",
36
+ "bun": "./dist/mobile.js",
37
+ "import": "./dist/mobile.js",
38
+ "default": "./dist/mobile.js"
39
+ },
34
40
  "./*": {
35
41
  "types": "./dist/*.d.ts",
36
42
  "bun": "./dist/*.js",
@@ -58,8 +64,8 @@
58
64
  "dependencies": {
59
65
  "@stacksjs/bunpress": "^0.2.15",
60
66
  "@stacksjs/clapp": "^0.2.12",
61
- "@stacksjs/events": "0.75.226",
62
- "@stacksjs/strings": "0.75.226",
67
+ "@stacksjs/events": "0.75.229",
68
+ "@stacksjs/strings": "0.75.229",
63
69
  "@stacksjs/stx": "^0.2.567",
64
70
  "@stacksjs/ts-validation": "^0.5.6",
65
71
  "bun-query-builder": "^0.3.8"
@@ -73,7 +79,7 @@
73
79
  }
74
80
  },
75
81
  "devDependencies": {
76
- "@stacksjs/validation": "0.75.226",
82
+ "@stacksjs/validation": "0.75.229",
77
83
  "better-dx": "^0.2.24",
78
84
  "meilisearch": "^0.62.0"
79
85
  },
@@ -86,6 +92,12 @@
86
92
  "import": "./dist/index.js",
87
93
  "default": "./dist/index.js"
88
94
  },
95
+ "./mobile": {
96
+ "types": "./dist/mobile.d.ts",
97
+ "bun": "./dist/mobile.js",
98
+ "import": "./dist/mobile.js",
99
+ "default": "./dist/mobile.js"
100
+ },
89
101
  "./*": {
90
102
  "bun": "./dist/*",
91
103
  "import": "./dist/*",