@stacksjs/types 0.75.528 → 0.75.535
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 +1 -1
- package/dist/file-systems.d.ts +5 -0
- package/dist/queue.d.ts +81 -81
- package/dist/realtime.d.ts +232 -232
- package/dist/stack-extensions.d.ts +7 -6
- package/package.json +6 -6
package/dist/ai.d.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* `anthropic.claude-haiku-4-20250514-v1:0` never existed.
|
|
14
14
|
* `STACKS_BEDROCK_LIVE=1 bun test` re-checks the list against a live account.
|
|
15
15
|
*/
|
|
16
|
-
export declare const bedrockModels: readonly [
|
|
16
|
+
export declare const bedrockModels: readonly ['global.anthropic.claude-opus-5-5', 'global.anthropic.claude-sonnet-5-5', 'global.anthropic.claude-haiku-4-5-20251001-v1:0', 'us.anthropic.claude-opus-5-5', 'us.anthropic.claude-sonnet-5-5', 'us.anthropic.claude-haiku-4-5-20251001-v1:0', 'amazon.nova-micro-v1:0', 'amazon.nova-lite-v1:0', 'amazon.nova-pro-v1:0', 'us.amazon.nova-premier-v1:0', 'global.amazon.nova-2-lite-v1:0', 'amazon.titan-embed-text-v2:0', 'amazon.titan-embed-text-v1', 'amazon.titan-embed-image-v1', 'amazon.nova-2-multimodal-embeddings-v1:0', 'meta.llama3-8b-instruct-v1:0', 'meta.llama3-70b-instruct-v1:0', 'us.meta.llama3-3-70b-instruct-v1:0', 'us.meta.llama4-maverick-17b-instruct-v1:0', 'us.meta.llama4-scout-17b-instruct-v1:0'];
|
|
17
17
|
/**
|
|
18
18
|
* **AI Options**
|
|
19
19
|
*
|
package/dist/file-systems.d.ts
CHANGED
|
@@ -35,24 +35,29 @@ export declare interface FileSystemOptions {
|
|
|
35
35
|
driver: 'local'
|
|
36
36
|
root: string
|
|
37
37
|
}
|
|
38
|
+
|
|
38
39
|
public: {
|
|
39
40
|
driver: 'public'
|
|
40
41
|
root: string
|
|
41
42
|
visibility?: 'public'
|
|
42
43
|
}
|
|
44
|
+
|
|
43
45
|
private: {
|
|
44
46
|
driver: 'private'
|
|
45
47
|
root: string
|
|
46
48
|
visibility?: 'private'
|
|
47
49
|
}
|
|
50
|
+
|
|
48
51
|
efs: {
|
|
49
52
|
driver: 'local'
|
|
50
53
|
root: string
|
|
51
54
|
}
|
|
55
|
+
|
|
52
56
|
s3: {
|
|
53
57
|
driver: 's3'
|
|
54
58
|
root: string
|
|
55
59
|
}
|
|
60
|
+
|
|
56
61
|
[key: string]: {
|
|
57
62
|
driver: string
|
|
58
63
|
root: string
|
package/dist/queue.d.ts
CHANGED
|
@@ -8,99 +8,99 @@ export declare const QueuePresets: {
|
|
|
8
8
|
* Development preset - uses sync driver
|
|
9
9
|
*/
|
|
10
10
|
readonly development: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
};
|
|
11
|
+
readonly default: 'sync';
|
|
12
|
+
readonly connections: {
|
|
13
|
+
readonly sync: {
|
|
14
|
+
readonly driver: 'sync'
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
readonly failed: {
|
|
18
|
+
readonly driver: 'database';
|
|
19
|
+
readonly table: 'failed_jobs'
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
22
|
/**
|
|
23
23
|
* Production preset - uses Redis with bun-queue
|
|
24
24
|
*/
|
|
25
25
|
readonly production: {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
};
|
|
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
|
+
};
|
|
36
|
+
readonly defaultDeadLetterOptions: {
|
|
37
|
+
readonly enabled: true;
|
|
38
|
+
readonly maxRetries: 3
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
readonly failed: {
|
|
43
|
+
readonly driver: 'redis';
|
|
44
|
+
readonly prefix: 'stacks:failed'
|
|
45
|
+
};
|
|
46
|
+
readonly worker: {
|
|
47
|
+
readonly concurrency: 5;
|
|
48
|
+
readonly shutdownTimeout: 30000
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
51
|
/**
|
|
52
52
|
* High performance preset - optimized for throughput
|
|
53
53
|
*/
|
|
54
54
|
readonly highPerformance: {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
};
|
|
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
|
+
};
|
|
66
|
+
readonly horizontalScaling: {
|
|
67
|
+
readonly enabled: true;
|
|
68
|
+
readonly maxWorkersPerInstance: 20;
|
|
69
|
+
readonly jobsPerWorker: 50
|
|
70
|
+
};
|
|
71
|
+
readonly defaultDeadLetterOptions: {
|
|
72
|
+
readonly enabled: true;
|
|
73
|
+
readonly maxRetries: 5
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
readonly failed: {
|
|
78
|
+
readonly driver: 'redis';
|
|
79
|
+
readonly prefix: 'stacks:failed'
|
|
80
|
+
};
|
|
81
|
+
readonly worker: {
|
|
82
|
+
readonly concurrency: 20;
|
|
83
|
+
readonly shutdownTimeout: 60000
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
86
|
/**
|
|
87
87
|
* Database preset - uses database driver
|
|
88
88
|
*/
|
|
89
89
|
readonly database: {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
}
|
|
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
|
+
}
|
|
98
|
+
};
|
|
99
|
+
readonly failed: {
|
|
100
|
+
readonly driver: 'database';
|
|
101
|
+
readonly table: 'failed_jobs'
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
104
|
};
|
|
105
105
|
/**
|
|
106
106
|
* Rate limiter configuration
|
package/dist/realtime.d.ts
CHANGED
|
@@ -6,242 +6,242 @@ export declare const RealtimePresets: {
|
|
|
6
6
|
* Server mode presets (ts-broadcasting)
|
|
7
7
|
*/
|
|
8
8
|
readonly server: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
};
|
|
9
|
+
/**
|
|
10
|
+
* Development preset - minimal config, debug enabled
|
|
11
|
+
*/
|
|
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
|
+
};
|
|
24
|
+
readonly healthCheck: {
|
|
25
|
+
readonly enabled: true;
|
|
26
|
+
readonly path: '/health'
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
readonly channels: {
|
|
30
|
+
readonly public: true;
|
|
31
|
+
readonly private: true;
|
|
32
|
+
readonly presence: true
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Production preset - optimized for production workloads
|
|
37
|
+
*/
|
|
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
|
+
};
|
|
51
|
+
readonly rateLimit: {
|
|
52
|
+
readonly enabled: true;
|
|
53
|
+
readonly maxConnectionsPerIp: 100;
|
|
54
|
+
readonly maxMessagesPerSecond: 50;
|
|
55
|
+
readonly maxPayloadSize: 65536
|
|
56
|
+
};
|
|
57
|
+
readonly loadManagement: {
|
|
58
|
+
readonly maxConnections: 10000;
|
|
59
|
+
readonly backpressureThreshold: 1000;
|
|
60
|
+
readonly messageQueueSize: 10000;
|
|
61
|
+
readonly gracefulShutdownTimeout: 30000
|
|
62
|
+
};
|
|
63
|
+
readonly autoScaling: {
|
|
64
|
+
readonly min: 2;
|
|
65
|
+
readonly max: 10;
|
|
66
|
+
readonly targetCPU: 70
|
|
67
|
+
};
|
|
68
|
+
readonly healthCheck: {
|
|
69
|
+
readonly enabled: true;
|
|
70
|
+
readonly path: '/health';
|
|
71
|
+
readonly interval: 30
|
|
72
|
+
};
|
|
73
|
+
readonly metrics: {
|
|
74
|
+
readonly enabled: true;
|
|
75
|
+
readonly port: 9090;
|
|
76
|
+
readonly path: '/metrics'
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
readonly channels: {
|
|
80
|
+
readonly public: true;
|
|
81
|
+
readonly private: true;
|
|
82
|
+
readonly presence: true
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* High performance preset - optimized for high throughput
|
|
87
|
+
*/
|
|
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
|
+
};
|
|
97
|
+
readonly rateLimit: {
|
|
98
|
+
readonly enabled: true;
|
|
99
|
+
readonly maxConnectionsPerIp: 500;
|
|
100
|
+
readonly maxMessagesPerSecond: 200;
|
|
101
|
+
readonly maxPayloadSize: 131072
|
|
102
|
+
};
|
|
103
|
+
readonly loadManagement: {
|
|
104
|
+
readonly maxConnections: 100000;
|
|
105
|
+
readonly backpressureThreshold: 5000;
|
|
106
|
+
readonly messageQueueSize: 50000;
|
|
107
|
+
readonly gracefulShutdownTimeout: 60000
|
|
108
|
+
};
|
|
109
|
+
readonly autoScaling: {
|
|
110
|
+
readonly min: 4;
|
|
111
|
+
readonly max: 50;
|
|
112
|
+
readonly targetCPU: 60
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Chat application preset
|
|
118
|
+
*/
|
|
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
|
+
};
|
|
127
|
+
readonly rateLimit: {
|
|
128
|
+
readonly enabled: true;
|
|
129
|
+
readonly maxConnectionsPerIp: 10;
|
|
130
|
+
readonly maxMessagesPerSecond: 20
|
|
131
|
+
};
|
|
132
|
+
readonly loadManagement: {
|
|
133
|
+
readonly maxConnections: 50000
|
|
134
|
+
}
|
|
135
|
+
};
|
|
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
|
+
}
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Gaming preset - low latency, high throughput
|
|
148
|
+
*/
|
|
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
|
+
};
|
|
158
|
+
readonly rateLimit: {
|
|
159
|
+
readonly enabled: true;
|
|
160
|
+
readonly maxConnectionsPerIp: 50;
|
|
161
|
+
readonly maxMessagesPerSecond: 100
|
|
162
|
+
};
|
|
163
|
+
readonly loadManagement: {
|
|
164
|
+
readonly maxConnections: 50000;
|
|
165
|
+
readonly backpressureThreshold: 2000;
|
|
166
|
+
readonly messageQueueSize: 20000
|
|
167
|
+
};
|
|
168
|
+
readonly autoScaling: {
|
|
169
|
+
readonly min: 2;
|
|
170
|
+
readonly max: 20;
|
|
171
|
+
readonly targetCPU: 50
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
readonly channels: {
|
|
175
|
+
readonly public: true;
|
|
176
|
+
readonly private: true;
|
|
177
|
+
readonly presence: true
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
181
|
/**
|
|
182
182
|
* Serverless mode presets (API Gateway WebSocket)
|
|
183
183
|
*/
|
|
184
184
|
readonly serverless: {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
}
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
}
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
};
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
185
|
+
/**
|
|
186
|
+
* Development preset
|
|
187
|
+
*/
|
|
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
|
+
};
|
|
199
|
+
readonly channels: {
|
|
200
|
+
readonly public: true;
|
|
201
|
+
readonly private: true;
|
|
202
|
+
readonly presence: true
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
/**
|
|
206
|
+
* Production preset
|
|
207
|
+
*/
|
|
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
|
+
};
|
|
220
|
+
readonly channels: {
|
|
221
|
+
readonly public: true;
|
|
222
|
+
readonly private: true;
|
|
223
|
+
readonly presence: true
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
/**
|
|
227
|
+
* Notifications preset - simple push notifications
|
|
228
|
+
*/
|
|
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
|
+
};
|
|
238
|
+
readonly channels: {
|
|
239
|
+
readonly public: true;
|
|
240
|
+
readonly private: true;
|
|
241
|
+
readonly presence: false
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
245
|
};
|
|
246
246
|
/**
|
|
247
247
|
* Redis adapter configuration for horizontal scaling
|
|
@@ -4,7 +4,13 @@
|
|
|
4
4
|
* Third-party stack authors: submit a PR to add your stack here.
|
|
5
5
|
* Once merged, all Stacks users will get autocomplete for your stack name.
|
|
6
6
|
*/
|
|
7
|
-
export declare const stackExtensionRegistry: Record<string, StackRegistryEntry
|
|
7
|
+
export declare const stackExtensionRegistry: Record<string, StackRegistryEntry>
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* All known stack extension names, derived from the registry.
|
|
11
|
+
* Uses `(string & {})` to also accept any custom/unregistered stack name.
|
|
12
|
+
*/
|
|
13
|
+
export type KnownStackName = keyof typeof stackExtensionRegistry | (string & {});
|
|
8
14
|
// ─── Stack Extensions Registry ──────────────────────────────────────────────
|
|
9
15
|
//
|
|
10
16
|
// This is the central registry of known stack extensions. Third-party authors
|
|
@@ -146,11 +152,6 @@ export type StackDirectory = | 'app'
|
|
|
146
152
|
| 'locales'
|
|
147
153
|
| 'docs'
|
|
148
154
|
| (string & {});
|
|
149
|
-
/**
|
|
150
|
-
* All known stack extension names, derived from the registry.
|
|
151
|
-
* Uses `(string & {})` to also accept any custom/unregistered stack name.
|
|
152
|
-
*/
|
|
153
|
-
export type KnownStackName = keyof typeof stackExtensionRegistry | (string & {});
|
|
154
155
|
export type ConflictStrategy = 'skip' | 'overwrite' | 'backup';
|
|
155
156
|
/**
|
|
156
157
|
* The registry type for `config/stacks.ts`.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/types",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.75.
|
|
4
|
+
"version": "0.75.535",
|
|
5
5
|
"description": "The Stacks framework types.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": [
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@stacksjs/bunpress": "^0.2.15",
|
|
66
66
|
"@stacksjs/clapp": "^0.2.12",
|
|
67
|
-
"@stacksjs/events": "0.75.
|
|
68
|
-
"@stacksjs/strings": "0.75.
|
|
69
|
-
"@stacksjs/stx": "0.2.
|
|
67
|
+
"@stacksjs/events": "0.75.535",
|
|
68
|
+
"@stacksjs/strings": "0.75.535",
|
|
69
|
+
"@stacksjs/stx": "0.2.842",
|
|
70
70
|
"@stacksjs/ts-validation": "^0.5.7",
|
|
71
|
-
"bun-query-builder": "^0.3.
|
|
71
|
+
"bun-query-builder": "^0.3.44"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"meilisearch": "^0.62.0",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@stacksjs/validation": "0.75.
|
|
86
|
+
"@stacksjs/validation": "0.75.535",
|
|
87
87
|
"better-dx": "^0.2.24",
|
|
88
88
|
"meilisearch": "^0.62.0",
|
|
89
89
|
"stripe": "23.0.0"
|