@stacksjs/types 0.75.520 → 0.75.524

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/ai.d.ts CHANGED
@@ -62,3 +62,4 @@ declare type AiModel = | BedrockModel
62
62
  // Any other model id, for Bedrock or a first-party provider
63
63
  | (string & {});
64
64
  export type AiConfig = Partial<AiOptions>;
65
+ export {};
package/dist/cloud.d.ts CHANGED
@@ -365,3 +365,4 @@ declare type InfrastructureOptions = Partial<{
365
365
  tunnel: TunnelCloudConfig
366
366
  }>;
367
367
  export type CloudConfig = Partial<CloudOptions>;
368
+ export {};
@@ -128,3 +128,4 @@ export type InferCommandOptions<TOptions extends CommandOptionsMap> = {
128
128
  }
129
129
  /** A command example, either literal text or a function of the binary name. */
130
130
  export type CommandExample = string | ((bin: string) => string);
131
+ export {};
@@ -69,3 +69,4 @@ export declare enum Every {
69
69
  Month = '0 0 1 * *',
70
70
  Year = '0 0 1 1 *',
71
71
  }
72
+ export {};
package/dist/dns.d.ts CHANGED
@@ -360,3 +360,4 @@ export type ExtraParamName = | 'DUNS_NUMBER'
360
360
  | string;
361
361
  export type ExtraParamValue = string;
362
362
  export type DnsConfig = Partial<DnsOptions>;
363
+ export {};
package/dist/email.d.ts CHANGED
@@ -240,3 +240,4 @@ export type EmailConfig = Partial<EmailOptions>;
240
240
  */
241
241
  export type EmailResult = EmailSent | EmailFailed;
242
242
  export type MailtrapResponse = MailtrapSuccessResponse | MailtrapErrorResponse;
243
+ export {};
package/dist/git.d.ts CHANGED
@@ -58,3 +58,4 @@ declare interface Hooks {
58
58
  }
59
59
  export declare interface GitHooks extends Hooks {}
60
60
  export type GitConfig = Partial<GitOptions>;
61
+ export {};
package/dist/model.d.ts CHANGED
@@ -416,3 +416,4 @@ export type Attributes = Record<string, any>;
416
416
  * Type alias for a collection of models
417
417
  */
418
418
  export type ModelRecord = Record<string, Model>;
419
+ export {};
package/dist/queue.d.ts CHANGED
@@ -7,98 +7,98 @@ export declare const QueuePresets: {
7
7
  /**
8
8
  * Development preset - uses sync driver
9
9
  */
10
- development: {
11
- default: 'sync';
12
- connections: {
13
- sync: {
14
- driver: 'sync'
10
+ readonly development: {
11
+ readonly default: 'sync';
12
+ readonly connections: {
13
+ readonly sync: {
14
+ readonly driver: 'sync'
15
15
  }
16
16
  };
17
- failed: {
18
- driver: 'database';
19
- table: 'failed_jobs'
17
+ readonly failed: {
18
+ readonly driver: 'database';
19
+ readonly table: 'failed_jobs'
20
20
  }
21
21
  };
22
22
  /**
23
23
  * Production preset - uses Redis with bun-queue
24
24
  */
25
- production: {
26
- default: 'redis';
27
- connections: {
28
- redis: {
29
- driver: 'redis';
30
- prefix: 'stacks:queue';
31
- concurrency: 5;
32
- distributedLock: true;
33
- metrics: {
34
- enabled: true
25
+ readonly production: {
26
+ readonly default: 'redis';
27
+ readonly connections: {
28
+ readonly redis: {
29
+ readonly driver: 'redis';
30
+ readonly prefix: 'stacks:queue';
31
+ readonly concurrency: 5;
32
+ readonly distributedLock: true;
33
+ readonly metrics: {
34
+ readonly enabled: true
35
35
  };
36
- defaultDeadLetterOptions: {
37
- enabled: true;
38
- maxRetries: 3
36
+ readonly defaultDeadLetterOptions: {
37
+ readonly enabled: true;
38
+ readonly maxRetries: 3
39
39
  }
40
40
  }
41
41
  };
42
- failed: {
43
- driver: 'redis';
44
- prefix: 'stacks:failed'
42
+ readonly failed: {
43
+ readonly driver: 'redis';
44
+ readonly prefix: 'stacks:failed'
45
45
  };
46
- worker: {
47
- concurrency: 5;
48
- shutdownTimeout: 30000
46
+ readonly worker: {
47
+ readonly concurrency: 5;
48
+ readonly shutdownTimeout: 30000
49
49
  }
50
50
  };
51
51
  /**
52
52
  * High performance preset - optimized for throughput
53
53
  */
54
- highPerformance: {
55
- default: 'redis';
56
- connections: {
57
- redis: {
58
- driver: 'redis';
59
- prefix: 'stacks:queue';
60
- concurrency: 20;
61
- distributedLock: true;
62
- metrics: {
63
- enabled: true;
64
- collectInterval: 5000
54
+ readonly highPerformance: {
55
+ readonly default: 'redis';
56
+ readonly connections: {
57
+ readonly redis: {
58
+ readonly driver: 'redis';
59
+ readonly prefix: 'stacks:queue';
60
+ readonly concurrency: 20;
61
+ readonly distributedLock: true;
62
+ readonly metrics: {
63
+ readonly enabled: true;
64
+ readonly collectInterval: 5000
65
65
  };
66
- horizontalScaling: {
67
- enabled: true;
68
- maxWorkersPerInstance: 20;
69
- jobsPerWorker: 50
66
+ readonly horizontalScaling: {
67
+ readonly enabled: true;
68
+ readonly maxWorkersPerInstance: 20;
69
+ readonly jobsPerWorker: 50
70
70
  };
71
- defaultDeadLetterOptions: {
72
- enabled: true;
73
- maxRetries: 5
71
+ readonly defaultDeadLetterOptions: {
72
+ readonly enabled: true;
73
+ readonly maxRetries: 5
74
74
  }
75
75
  }
76
76
  };
77
- failed: {
78
- driver: 'redis';
79
- prefix: 'stacks:failed'
77
+ readonly failed: {
78
+ readonly driver: 'redis';
79
+ readonly prefix: 'stacks:failed'
80
80
  };
81
- worker: {
82
- concurrency: 20;
83
- shutdownTimeout: 60000
81
+ readonly worker: {
82
+ readonly concurrency: 20;
83
+ readonly shutdownTimeout: 60000
84
84
  }
85
85
  };
86
86
  /**
87
87
  * Database preset - uses database driver
88
88
  */
89
- database: {
90
- default: 'database';
91
- connections: {
92
- database: {
93
- driver: 'database';
94
- table: 'jobs';
95
- queue: 'default';
96
- retryAfter: 90
89
+ readonly database: {
90
+ readonly default: 'database';
91
+ readonly connections: {
92
+ readonly database: {
93
+ readonly driver: 'database';
94
+ readonly table: 'jobs';
95
+ readonly queue: 'default';
96
+ readonly retryAfter: 90
97
97
  }
98
98
  };
99
- failed: {
100
- driver: 'database';
101
- table: 'failed_jobs'
99
+ readonly failed: {
100
+ readonly driver: 'database';
101
+ readonly table: 'failed_jobs'
102
102
  }
103
103
  }
104
104
  };
@@ -5,240 +5,240 @@ export declare const RealtimePresets: {
5
5
  /**
6
6
  * Server mode presets (ts-broadcasting)
7
7
  */
8
- server: {
8
+ readonly server: {
9
9
  /**
10
10
  * Development preset - minimal config, debug enabled
11
11
  */
12
- development: {
13
- enabled: true;
14
- mode: 'server';
15
- debug: true;
16
- server: {
17
- host: 'localhost';
18
- port: 6001;
19
- scheme: 'ws';
20
- driver: 'bun';
21
- rateLimit: {
22
- enabled: false
12
+ readonly development: {
13
+ readonly enabled: true;
14
+ readonly mode: 'server';
15
+ readonly debug: true;
16
+ readonly server: {
17
+ readonly host: 'localhost';
18
+ readonly port: 6001;
19
+ readonly scheme: 'ws';
20
+ readonly driver: 'bun';
21
+ readonly rateLimit: {
22
+ readonly enabled: false
23
23
  };
24
- healthCheck: {
25
- enabled: true;
26
- path: '/health'
24
+ readonly healthCheck: {
25
+ readonly enabled: true;
26
+ readonly path: '/health'
27
27
  }
28
28
  };
29
- channels: {
30
- public: true;
31
- private: true;
32
- presence: true
29
+ readonly channels: {
30
+ readonly public: true;
31
+ readonly private: true;
32
+ readonly presence: true
33
33
  }
34
34
  };
35
35
  /**
36
36
  * Production preset - optimized for production workloads
37
37
  */
38
- production: {
39
- enabled: true;
40
- mode: 'server';
41
- debug: false;
42
- server: {
43
- host: '0.0.0.0';
44
- port: 6001;
45
- scheme: 'wss';
46
- driver: 'bun';
47
- redis: {
48
- enabled: true;
49
- prefix: 'stacks:realtime:'
38
+ readonly production: {
39
+ readonly enabled: true;
40
+ readonly mode: 'server';
41
+ readonly debug: false;
42
+ readonly server: {
43
+ readonly host: '0.0.0.0';
44
+ readonly port: 6001;
45
+ readonly scheme: 'wss';
46
+ readonly driver: 'bun';
47
+ readonly redis: {
48
+ readonly enabled: true;
49
+ readonly prefix: 'stacks:realtime:'
50
50
  };
51
- rateLimit: {
52
- enabled: true;
53
- maxConnectionsPerIp: 100;
54
- maxMessagesPerSecond: 50;
55
- maxPayloadSize: 65536
51
+ readonly rateLimit: {
52
+ readonly enabled: true;
53
+ readonly maxConnectionsPerIp: 100;
54
+ readonly maxMessagesPerSecond: 50;
55
+ readonly maxPayloadSize: 65536
56
56
  };
57
- loadManagement: {
58
- maxConnections: 10000;
59
- backpressureThreshold: 1000;
60
- messageQueueSize: 10000;
61
- gracefulShutdownTimeout: 30000
57
+ readonly loadManagement: {
58
+ readonly maxConnections: 10000;
59
+ readonly backpressureThreshold: 1000;
60
+ readonly messageQueueSize: 10000;
61
+ readonly gracefulShutdownTimeout: 30000
62
62
  };
63
- autoScaling: {
64
- min: 2;
65
- max: 10;
66
- targetCPU: 70
63
+ readonly autoScaling: {
64
+ readonly min: 2;
65
+ readonly max: 10;
66
+ readonly targetCPU: 70
67
67
  };
68
- healthCheck: {
69
- enabled: true;
70
- path: '/health';
71
- interval: 30
68
+ readonly healthCheck: {
69
+ readonly enabled: true;
70
+ readonly path: '/health';
71
+ readonly interval: 30
72
72
  };
73
- metrics: {
74
- enabled: true;
75
- port: 9090;
76
- path: '/metrics'
73
+ readonly metrics: {
74
+ readonly enabled: true;
75
+ readonly port: 9090;
76
+ readonly path: '/metrics'
77
77
  }
78
78
  };
79
- channels: {
80
- public: true;
81
- private: true;
82
- presence: true
79
+ readonly channels: {
80
+ readonly public: true;
81
+ readonly private: true;
82
+ readonly presence: true
83
83
  }
84
84
  };
85
85
  /**
86
86
  * High performance preset - optimized for high throughput
87
87
  */
88
- highPerformance: {
89
- enabled: true;
90
- mode: 'server';
91
- server: {
92
- driver: 'bun';
93
- redis: {
94
- enabled: true;
95
- cluster: true
88
+ readonly highPerformance: {
89
+ readonly enabled: true;
90
+ readonly mode: 'server';
91
+ readonly server: {
92
+ readonly driver: 'bun';
93
+ readonly redis: {
94
+ readonly enabled: true;
95
+ readonly cluster: true
96
96
  };
97
- rateLimit: {
98
- enabled: true;
99
- maxConnectionsPerIp: 500;
100
- maxMessagesPerSecond: 200;
101
- maxPayloadSize: 131072
97
+ readonly rateLimit: {
98
+ readonly enabled: true;
99
+ readonly maxConnectionsPerIp: 500;
100
+ readonly maxMessagesPerSecond: 200;
101
+ readonly maxPayloadSize: 131072
102
102
  };
103
- loadManagement: {
104
- maxConnections: 100000;
105
- backpressureThreshold: 5000;
106
- messageQueueSize: 50000;
107
- gracefulShutdownTimeout: 60000
103
+ readonly loadManagement: {
104
+ readonly maxConnections: 100000;
105
+ readonly backpressureThreshold: 5000;
106
+ readonly messageQueueSize: 50000;
107
+ readonly gracefulShutdownTimeout: 60000
108
108
  };
109
- autoScaling: {
110
- min: 4;
111
- max: 50;
112
- targetCPU: 60
109
+ readonly autoScaling: {
110
+ readonly min: 4;
111
+ readonly max: 50;
112
+ readonly targetCPU: 60
113
113
  }
114
114
  }
115
115
  };
116
116
  /**
117
117
  * Chat application preset
118
118
  */
119
- chat: {
120
- enabled: true;
121
- mode: 'server';
122
- server: {
123
- driver: 'bun';
124
- redis: {
125
- enabled: true
119
+ readonly chat: {
120
+ readonly enabled: true;
121
+ readonly mode: 'server';
122
+ readonly server: {
123
+ readonly driver: 'bun';
124
+ readonly redis: {
125
+ readonly enabled: true
126
126
  };
127
- rateLimit: {
128
- enabled: true;
129
- maxConnectionsPerIp: 10;
130
- maxMessagesPerSecond: 20
127
+ readonly rateLimit: {
128
+ readonly enabled: true;
129
+ readonly maxConnectionsPerIp: 10;
130
+ readonly maxMessagesPerSecond: 20
131
131
  };
132
- loadManagement: {
133
- maxConnections: 50000
132
+ readonly loadManagement: {
133
+ readonly maxConnections: 50000
134
134
  }
135
135
  };
136
- channels: {
137
- public: true;
138
- private: true;
139
- presence: {
140
- enabled: true;
141
- maxMembersPerChannel: 500;
142
- memberInfoTtl: 60
136
+ readonly channels: {
137
+ readonly public: true;
138
+ readonly private: true;
139
+ readonly presence: {
140
+ readonly enabled: true;
141
+ readonly maxMembersPerChannel: 500;
142
+ readonly memberInfoTtl: 60
143
143
  }
144
144
  }
145
145
  };
146
146
  /**
147
147
  * Gaming preset - low latency, high throughput
148
148
  */
149
- gaming: {
150
- enabled: true;
151
- mode: 'server';
152
- server: {
153
- driver: 'bun';
154
- redis: {
155
- enabled: true;
156
- cluster: true
149
+ readonly gaming: {
150
+ readonly enabled: true;
151
+ readonly mode: 'server';
152
+ readonly server: {
153
+ readonly driver: 'bun';
154
+ readonly redis: {
155
+ readonly enabled: true;
156
+ readonly cluster: true
157
157
  };
158
- rateLimit: {
159
- enabled: true;
160
- maxConnectionsPerIp: 50;
161
- maxMessagesPerSecond: 100
158
+ readonly rateLimit: {
159
+ readonly enabled: true;
160
+ readonly maxConnectionsPerIp: 50;
161
+ readonly maxMessagesPerSecond: 100
162
162
  };
163
- loadManagement: {
164
- maxConnections: 50000;
165
- backpressureThreshold: 2000;
166
- messageQueueSize: 20000
163
+ readonly loadManagement: {
164
+ readonly maxConnections: 50000;
165
+ readonly backpressureThreshold: 2000;
166
+ readonly messageQueueSize: 20000
167
167
  };
168
- autoScaling: {
169
- min: 2;
170
- max: 20;
171
- targetCPU: 50
168
+ readonly autoScaling: {
169
+ readonly min: 2;
170
+ readonly max: 20;
171
+ readonly targetCPU: 50
172
172
  }
173
173
  };
174
- channels: {
175
- public: true;
176
- private: true;
177
- presence: true
174
+ readonly channels: {
175
+ readonly public: true;
176
+ readonly private: true;
177
+ readonly presence: true
178
178
  }
179
179
  }
180
180
  };
181
181
  /**
182
182
  * Serverless mode presets (API Gateway WebSocket)
183
183
  */
184
- serverless: {
184
+ readonly serverless: {
185
185
  /**
186
186
  * Development preset
187
187
  */
188
- development: {
189
- enabled: true;
190
- mode: 'serverless';
191
- debug: true;
192
- serverless: {
193
- connectionTimeout: 3600;
194
- idleTimeout: 600;
195
- stageName: 'dev';
196
- memorySize: 256;
197
- timeout: 30
188
+ readonly development: {
189
+ readonly enabled: true;
190
+ readonly mode: 'serverless';
191
+ readonly debug: true;
192
+ readonly serverless: {
193
+ readonly connectionTimeout: 3600;
194
+ readonly idleTimeout: 600;
195
+ readonly stageName: 'dev';
196
+ readonly memorySize: 256;
197
+ readonly timeout: 30
198
198
  };
199
- channels: {
200
- public: true;
201
- private: true;
202
- presence: true
199
+ readonly channels: {
200
+ readonly public: true;
201
+ readonly private: true;
202
+ readonly presence: true
203
203
  }
204
204
  };
205
205
  /**
206
206
  * Production preset
207
207
  */
208
- production: {
209
- enabled: true;
210
- mode: 'serverless';
211
- debug: false;
212
- serverless: {
213
- connectionTimeout: 3600;
214
- idleTimeout: 600;
215
- stageName: 'production';
216
- memorySize: 512;
217
- timeout: 30;
218
- provisionedConcurrency: 2
208
+ readonly production: {
209
+ readonly enabled: true;
210
+ readonly mode: 'serverless';
211
+ readonly debug: false;
212
+ readonly serverless: {
213
+ readonly connectionTimeout: 3600;
214
+ readonly idleTimeout: 600;
215
+ readonly stageName: 'production';
216
+ readonly memorySize: 512;
217
+ readonly timeout: 30;
218
+ readonly provisionedConcurrency: 2
219
219
  };
220
- channels: {
221
- public: true;
222
- private: true;
223
- presence: true
220
+ readonly channels: {
221
+ readonly public: true;
222
+ readonly private: true;
223
+ readonly presence: true
224
224
  }
225
225
  };
226
226
  /**
227
227
  * Notifications preset - simple push notifications
228
228
  */
229
- notifications: {
230
- enabled: true;
231
- mode: 'serverless';
232
- serverless: {
233
- connectionTimeout: 7200;
234
- idleTimeout: 1800;
235
- memorySize: 256;
236
- timeout: 15
229
+ readonly notifications: {
230
+ readonly enabled: true;
231
+ readonly mode: 'serverless';
232
+ readonly serverless: {
233
+ readonly connectionTimeout: 7200;
234
+ readonly idleTimeout: 1800;
235
+ readonly memorySize: 256;
236
+ readonly timeout: 15
237
237
  };
238
- channels: {
239
- public: true;
240
- private: true;
241
- presence: false
238
+ readonly channels: {
239
+ readonly public: true;
240
+ readonly private: true;
241
+ readonly presence: false
242
242
  }
243
243
  }
244
244
  }
package/dist/request.d.ts CHANGED
@@ -344,3 +344,4 @@ export type RequestValidationRules = Record<string, string | {
344
344
  rule: { validate: (value: any) => any }
345
345
  message?: string | Record<string, string>
346
346
  }>;
347
+ export {};
package/dist/router.d.ts CHANGED
@@ -106,3 +106,4 @@ export type StatusCode = 200 | 201 | 202 | 204 | 301 | 302 | 304 | 400 | 401 | 4
106
106
  export type RedirectCode = Extract<StatusCode, 301 | 302>;
107
107
  export type MiddlewareFn = (_request: Request) => Promise<void>;
108
108
  declare type Prefix = string;
109
+ export {};
package/dist/team.d.ts CHANGED
@@ -5,3 +5,4 @@ export declare interface Team {
5
5
  declare type TeamMemberName = string;
6
6
  declare type Email = string;
7
7
  declare type TeamMembers = Record<TeamMemberName, Email>;
8
+ export {};
package/dist/ui.d.ts CHANGED
@@ -57,3 +57,4 @@ export type UiConfig = Partial<UiOptions>;
57
57
  * @default "tailwind"
58
58
  */
59
59
  export type ResetPreset = 'tailwind' | 'normalize' | 'sanitize' | 'eric-meyer' | 'antfu' | null;
60
+ export {};
package/dist/utils.d.ts CHANGED
@@ -41,3 +41,4 @@ export type DeepMerge<F, S> = S extends MergeLeaf | readonly unknown[] ? S
41
41
  export type DeepPartial<T> = {
42
42
  [P in keyof T]?: DeepPartial<T[P]>
43
43
  }
44
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.75.520",
4
+ "version": "0.75.524",
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.520",
68
- "@stacksjs/strings": "0.75.520",
67
+ "@stacksjs/events": "0.75.524",
68
+ "@stacksjs/strings": "0.75.524",
69
69
  "@stacksjs/stx": "0.2.807",
70
70
  "@stacksjs/ts-validation": "^0.5.7",
71
71
  "bun-query-builder": "^0.3.38"
@@ -83,7 +83,7 @@
83
83
  }
84
84
  },
85
85
  "devDependencies": {
86
- "@stacksjs/validation": "0.75.520",
86
+ "@stacksjs/validation": "0.75.524",
87
87
  "better-dx": "^0.2.24",
88
88
  "meilisearch": "^0.62.0",
89
89
  "stripe": "23.0.0"