@stacksjs/config 0.59.1 → 0.59.2

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.
@@ -0,0 +1,7 @@
1
+ import type { StacksOptions } from '@stacksjs/types';
2
+ import defaults from './defaults';
3
+ import overrides from './overrides';
4
+ export declare const config: StacksOptions;
5
+ export declare const ai: Partial<import("@stacksjs/types").AiOptions>, analytics: Partial<import("@stacksjs/types").AnalyticsOptions>, app: Partial<import("@stacksjs/types").AppOptions>, cache: Partial<import("@stacksjs/types").CacheOptions>, cloud: Partial<import("@stacksjs/types").CloudOptions>, cli: Partial<import("@stacksjs/types").BinaryOptions>, database: Partial<import("@stacksjs/types").DatabaseOptions>, dns: Partial<import("@stacksjs/types").DnsOptions>, docs: import("@stacksjs/types").DocsUserConfig, email: Partial<import("@stacksjs/types").EmailOptions>, git: Partial<import("@stacksjs/types").GitOptions>, hashing: Partial<import("@stacksjs/types").HashingOptions>, library: Partial<import("@stacksjs/types").LibraryOptions>, logger: Partial<import("@stacksjs/types").LoggerOptions>, notification: Partial<import("@stacksjs/types").NotificationOptions>, payment: Partial<import("@stacksjs/types").PaymentOptions>, ports: import("@stacksjs/types").Ports, queue: import("@stacksjs/types").DeepPartial<import("@stacksjs/types").QueueOptions>, security: import("@stacksjs/types").DeepPartial<import("@stacksjs/types").SecurityOptions>, searchEngine: Partial<import("@stacksjs/types").SearchEngineOptions>, services: Partial<import("@stacksjs/types").ServicesOptions>, storage: Partial<import("@stacksjs/types").StorageOptions>, team: import("@stacksjs/types").Team, ui: Partial<import("@stacksjs/types").UiOptions>;
6
+ export { defaults, overrides };
7
+ export * from './helpers';
@@ -0,0 +1,343 @@
1
+ declare const _default: {
2
+ ai: {
3
+ deploy: false;
4
+ models: ("amazon.titan-embed-text-v1" | "amazon.titan-text-express-v1" | "amazon.titan-embed-image-v1" | "amazon.titan-image-generator-v1" | "anthropic.claude-v1" | "anthropic.claude-v2" | "anthropic.claude-v2:1" | "anthropic.claude-instant-v1" | "meta.llama2-13b-chat-v1" | "meta.llama2-70b-chat-v1")[];
5
+ };
6
+ analytics: {
7
+ driver: undefined;
8
+ };
9
+ app: {
10
+ name: string;
11
+ description: string;
12
+ env: string;
13
+ url: string;
14
+ debug: true;
15
+ key: string;
16
+ timezone: string;
17
+ locale: string;
18
+ fallbackLocale: "en";
19
+ cipher: string;
20
+ docMode: false;
21
+ redirectUrls: never[];
22
+ maintenanceMode: false;
23
+ };
24
+ cli: {
25
+ name: string;
26
+ command: string;
27
+ description: string;
28
+ source: string;
29
+ deploy: false;
30
+ };
31
+ cache: {
32
+ driver: string;
33
+ prefix: string;
34
+ ttl: number;
35
+ drivers: {
36
+ redis: {
37
+ connection: string;
38
+ host: string;
39
+ port: number;
40
+ username: string;
41
+ password: string;
42
+ };
43
+ };
44
+ };
45
+ cloud: {
46
+ type: "serverless";
47
+ driver: "aws";
48
+ storage: {};
49
+ environments: ("development" | "staging" | "production")[];
50
+ firewall: {
51
+ enabled: true;
52
+ countryCodes: never[];
53
+ ipAddresses: never[];
54
+ queryString: never[];
55
+ httpHeaders: never[];
56
+ rateLimitPerMinute: number;
57
+ useIpReputationLists: true;
58
+ useKnownBadInputsRuleSet: true;
59
+ };
60
+ cdn: {
61
+ allowedMethods: "GET_HEAD";
62
+ cachedMethods: "GET_HEAD";
63
+ minTtl: number;
64
+ defaultTtl: number;
65
+ maxTtl: number;
66
+ compress: true;
67
+ priceClass: "PriceClass_All";
68
+ originShieldRegion: string;
69
+ cookieBehavior: "none";
70
+ allowList: {
71
+ cookies: never[];
72
+ headers: never[];
73
+ queryStrings: never[];
74
+ };
75
+ realtimeLogs: {
76
+ enabled: true;
77
+ samplingRate: number;
78
+ };
79
+ };
80
+ api: {
81
+ deploy: false;
82
+ prefix: string;
83
+ description: string;
84
+ prewarm: true;
85
+ memorySize: number;
86
+ timeout: number;
87
+ };
88
+ fileSystem: false;
89
+ };
90
+ database: {
91
+ default: string;
92
+ name: string;
93
+ connections: {
94
+ sqlite: {
95
+ database: string;
96
+ prefix: string;
97
+ };
98
+ };
99
+ };
100
+ dns: {
101
+ driver: "aws";
102
+ a: never[];
103
+ aaaa: never[];
104
+ cname: never[];
105
+ mx: never[];
106
+ txt: never[];
107
+ };
108
+ docs: {
109
+ lang: string;
110
+ title: string;
111
+ description: string;
112
+ lastUpdated: true;
113
+ deploy: false;
114
+ themeConfig: {
115
+ editLink: {
116
+ pattern: string;
117
+ text: string;
118
+ };
119
+ footer: {
120
+ message: string;
121
+ copyright: string;
122
+ };
123
+ };
124
+ };
125
+ email: {
126
+ from: {
127
+ name: string;
128
+ address: string;
129
+ };
130
+ mailboxes: never[];
131
+ server: {
132
+ scan: true;
133
+ };
134
+ };
135
+ git: {
136
+ hooks: {
137
+ 'pre-commit': string;
138
+ };
139
+ scopes: string[];
140
+ messages: {
141
+ type: string;
142
+ scope: string;
143
+ customScope: string;
144
+ subject: string;
145
+ body: string;
146
+ breaking: string;
147
+ footerPrefixesSelect: string;
148
+ customFooterPrefixes: string;
149
+ footer: string;
150
+ confirmCommit: string;
151
+ };
152
+ types: {
153
+ value: string;
154
+ name: string;
155
+ emoji: string;
156
+ }[];
157
+ };
158
+ hashing: {
159
+ driver: "argon2";
160
+ bcrypt: {
161
+ rounds: number;
162
+ cost: number;
163
+ };
164
+ argon2: {
165
+ memory: number;
166
+ threads: number;
167
+ time: number;
168
+ };
169
+ };
170
+ library: {
171
+ name: string;
172
+ owner: string;
173
+ repository: string;
174
+ license: "MIT";
175
+ author: string;
176
+ contributors: string[];
177
+ defaultLanguage: "en";
178
+ vueComponents: {
179
+ name: string;
180
+ description: string;
181
+ keywords: string[];
182
+ tags: {
183
+ name: string[];
184
+ description: string;
185
+ attributes: {
186
+ name: string;
187
+ description: string;
188
+ }[];
189
+ }[];
190
+ };
191
+ webComponents: {
192
+ name: string;
193
+ description: string;
194
+ keywords: string[];
195
+ tags: {
196
+ name: string[];
197
+ description: string;
198
+ attributes: {
199
+ name: string;
200
+ description: string;
201
+ }[];
202
+ }[];
203
+ };
204
+ functions: {
205
+ name: string;
206
+ description: string;
207
+ keywords: string[];
208
+ shouldGenerateSourcemap: false;
209
+ functions: string[];
210
+ };
211
+ };
212
+ logger: {
213
+ level: 3;
214
+ logFilePath: string;
215
+ errorsPath: string;
216
+ };
217
+ notification: {
218
+ default: string;
219
+ };
220
+ payment: {
221
+ driver: "stripe";
222
+ };
223
+ ports: {
224
+ frontend: number;
225
+ backend: number;
226
+ admin: number;
227
+ library: number;
228
+ desktop: number;
229
+ email: number;
230
+ docs: number;
231
+ inspect: number;
232
+ api: number;
233
+ systemTray: number;
234
+ };
235
+ queue: {
236
+ default: "sync";
237
+ connections: {
238
+ sync: {
239
+ driver: "sync";
240
+ };
241
+ database: {
242
+ driver: "database";
243
+ table: "jobs";
244
+ queue: "default";
245
+ retry_after: 90;
246
+ };
247
+ redis: {
248
+ driver: "redis";
249
+ connection: "default";
250
+ queue: "default";
251
+ retry_after: 90;
252
+ };
253
+ sqs: {
254
+ driver: "sqs";
255
+ key: "";
256
+ secret: "";
257
+ prefix: "";
258
+ suffix: "";
259
+ queue: "default";
260
+ region: "us-east-1";
261
+ };
262
+ };
263
+ };
264
+ searchEngine: {
265
+ driver: "meilisearch";
266
+ };
267
+ security: {
268
+ firewall: {
269
+ enabled: true;
270
+ countryCodes: never[];
271
+ ipAddresses: never[];
272
+ queryString: never[];
273
+ httpHeaders: never[];
274
+ rateLimitPerMinute: number;
275
+ useIpReputationLists: true;
276
+ useKnownBadInputsRuleSet: true;
277
+ };
278
+ };
279
+ services: {
280
+ aws: {
281
+ accountId: string;
282
+ appId: string;
283
+ apiKey: string;
284
+ region: string;
285
+ };
286
+ algolia: {
287
+ appId: string;
288
+ apiKey: string;
289
+ };
290
+ meilisearch: {
291
+ appId: string;
292
+ apiKey: string;
293
+ };
294
+ stripe: {
295
+ appId: string;
296
+ apiKey: string;
297
+ };
298
+ planetscale: {
299
+ appId: string;
300
+ apiKey: string;
301
+ };
302
+ supabase: {
303
+ appId: string;
304
+ apiKey: string;
305
+ };
306
+ };
307
+ storage: {
308
+ driver: "s3";
309
+ };
310
+ team: {
311
+ name: string;
312
+ members: {
313
+ 'Chris Breuer': string;
314
+ };
315
+ };
316
+ ui: {
317
+ shortcuts: [string, string][];
318
+ safelist: string;
319
+ trigger: string;
320
+ classPrefix: string;
321
+ reset: "tailwind";
322
+ icons: "heroicons"[];
323
+ fonts: {
324
+ email: {
325
+ title: string;
326
+ text: string;
327
+ };
328
+ desktop: {
329
+ title: string;
330
+ text: string;
331
+ };
332
+ mobile: {
333
+ title: string;
334
+ text: string;
335
+ };
336
+ web: {
337
+ title: string;
338
+ text: string;
339
+ };
340
+ };
341
+ };
342
+ };
343
+ export default _default;
@@ -0,0 +1,37 @@
1
+ import type { AppConfig, CacheConfig, CdnConfig, ChatConfig, CliConfig, DatabaseConfig, DependenciesConfig, DnsConfig, EmailConfig, Events, GitConfig, HashingConfig, JobConfig, LibraryConfig, Model, NotificationConfig, PaymentConfig, QueueConfig, SearchEngineConfig, SecurityConfig, ServicesConfig, SmsConfig, StacksConfig, StorageConfig, UiConfig } from '@stacksjs/types';
2
+ import { config } from '.';
3
+ export type LocalUrlType = 'frontend' | 'backend' | 'api' | 'admin' | 'library' | 'email' | 'docs' | 'inspect' | 'desktop';
4
+ export declare function localUrl({ domain, type, localhost, https, network, }?: {
5
+ domain?: string | undefined;
6
+ type?: config.LocalUrlType | undefined;
7
+ localhost?: boolean | undefined;
8
+ https?: boolean | undefined;
9
+ network?: boolean | undefined;
10
+ }): Promise<any>;
11
+ export declare function defineStacksConfig(config: StacksConfig): Partial<import("@stacksjs/types").StacksOptions>;
12
+ export declare function defineApp(config: AppConfig): Partial<import("@stacksjs/types").AppOptions>;
13
+ export declare function defineCache(config: CacheConfig): Partial<import("@stacksjs/types").CacheOptions>;
14
+ export declare function defineCdn(config: CdnConfig): Partial<import("@stacksjs/types").CdnOptions>;
15
+ export declare function defineChat(config: ChatConfig): import("@stacksjs/types/dist/chat.js").ChatOptions;
16
+ export declare function defineCli(config: CliConfig): import("@stacksjs/types").CliOptions;
17
+ export declare function defineJob(config: JobConfig): import("@stacksjs/types").JobOptions;
18
+ export declare function defineCronJob(config: JobConfig): import("@stacksjs/types").JobOptions;
19
+ export declare function defineDatabase(config: DatabaseConfig): Partial<import("@stacksjs/types").DatabaseOptions>;
20
+ export declare function defineDependencies(config: DependenciesConfig): import("@stacksjs/types").DependenciesOptions;
21
+ export declare function defineDns(config: DnsConfig): Partial<import("@stacksjs/types").DnsOptions>;
22
+ export declare function defineEmailConfig(config: EmailConfig): Partial<import("@stacksjs/types").EmailOptions>;
23
+ export declare function defineEmail(config: EmailConfig): Partial<import("@stacksjs/types").EmailOptions>;
24
+ export declare function defineGit(config: GitConfig): Partial<import("@stacksjs/types").GitOptions>;
25
+ export declare function defineHashing(config: HashingConfig): Partial<import("@stacksjs/types").HashingOptions>;
26
+ export declare function defineLibrary(config: LibraryConfig): Partial<import("@stacksjs/types").LibraryOptions>;
27
+ export declare function defineNotification(config: NotificationConfig): Partial<import("@stacksjs/types").NotificationOptions>;
28
+ export declare function definePayment(config: PaymentConfig): Partial<import("@stacksjs/types").PaymentOptions>;
29
+ export declare function defineQueue(config: QueueConfig): import("@stacksjs/types").DeepPartial<import("@stacksjs/types").QueueOptions>;
30
+ export declare function defineSearchEngine(config: SearchEngineConfig): Partial<import("@stacksjs/types").SearchEngineOptions>;
31
+ export declare function defineSecurity(config: SecurityConfig): import("@stacksjs/types").DeepPartial<import("@stacksjs/types").SecurityOptions>;
32
+ export declare function defineServices(config: ServicesConfig): Partial<import("@stacksjs/types").ServicesOptions>;
33
+ export declare function defineSms(config: SmsConfig): SmsConfig;
34
+ export declare function defineStorage(config: StorageConfig): Partial<import("@stacksjs/types").StorageOptions>;
35
+ export declare function defineUi(config: UiConfig): Partial<import("@stacksjs/types").UiOptions>;
36
+ export declare function defineModel(config: Model): Partial<import("@stacksjs/types").ModelOptions>;
37
+ export declare function defineEvents(config: Events): Events;
@@ -0,0 +1,2 @@
1
+ export * as config from './config';
2
+ export * from './config';