@stacksjs/types 0.59.10 → 0.61.0

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 (85) hide show
  1. package/package.json +22 -25
  2. package/src/ai.ts +2 -1
  3. package/src/api.ts +12 -0
  4. package/src/chat.ts +1 -1
  5. package/src/cli.ts +76 -27
  6. package/src/cloud.ts +250 -27
  7. package/src/database.ts +18 -8
  8. package/src/dns.ts +286 -2
  9. package/src/email.ts +1 -3
  10. package/src/errors.ts +93 -0
  11. package/src/git.ts +1 -1
  12. package/src/hashing.ts +9 -9
  13. package/src/helpers.ts +2 -5
  14. package/src/index.ts +1 -0
  15. package/src/library.ts +765 -5
  16. package/src/model-names.ts +1 -0
  17. package/src/model.ts +92 -33
  18. package/src/notifications.ts +11 -1
  19. package/src/ports.ts +1 -0
  20. package/src/search-engine.ts +38 -13
  21. package/src/security.ts +1 -1
  22. package/src/services.ts +6 -6
  23. package/src/stacks.ts +11 -0
  24. package/src/tables.ts +1 -1
  25. package/src/ui.ts +1 -1
  26. package/src/utils.ts +6 -7
  27. package/dist/ai.d.ts +0 -15
  28. package/dist/analytics.d.ts +0 -19
  29. package/dist/api.d.ts +0 -59
  30. package/dist/app.d.ts +0 -135
  31. package/dist/auto-imports.d.ts +0 -1
  32. package/dist/binary.d.ts +0 -11
  33. package/dist/build.d.ts +0 -2
  34. package/dist/cache.d.ts +0 -88
  35. package/dist/cdn.d.ts +0 -16
  36. package/dist/chat.d.ts +0 -4
  37. package/dist/cli.d.ts +0 -278
  38. package/dist/cloud.d.ts +0 -69
  39. package/dist/components.d.ts +0 -60
  40. package/dist/configure.d.ts +0 -12
  41. package/dist/cron-jobs.d.ts +0 -43
  42. package/dist/database.d.ts +0 -37
  43. package/dist/dependencies.d.ts +0 -62
  44. package/dist/deploy.d.ts +0 -12
  45. package/dist/dns.d.ts +0 -175
  46. package/dist/docs.d.ts +0 -22
  47. package/dist/email.d.ts +0 -14
  48. package/dist/env.d.ts +0 -1
  49. package/dist/errors.d.ts +0 -1
  50. package/dist/events.d.ts +0 -30
  51. package/dist/exit-code.d.ts +0 -10
  52. package/dist/file-systems.d.ts +0 -60
  53. package/dist/git.d.ts +0 -129
  54. package/dist/hashing.d.ts +0 -109
  55. package/dist/helpers.d.ts +0 -1
  56. package/dist/i18n.d.ts +0 -19
  57. package/dist/index.d.ts +0 -58
  58. package/dist/inspect.d.ts +0 -9
  59. package/dist/library.d.ts +0 -134
  60. package/dist/logger.d.ts +0 -49
  61. package/dist/manifest.d.ts +0 -9
  62. package/dist/model.d.ts +0 -70
  63. package/dist/money.d.ts +0 -2
  64. package/dist/notifications.d.ts +0 -117
  65. package/dist/pages.d.ts +0 -10
  66. package/dist/payments.d.ts +0 -60
  67. package/dist/ports.d.ts +0 -19
  68. package/dist/promise.d.ts +0 -1
  69. package/dist/push.d.ts +0 -35
  70. package/dist/pwa.d.ts +0 -7
  71. package/dist/queue.d.ts +0 -36
  72. package/dist/reactivity.d.ts +0 -1
  73. package/dist/router.d.ts +0 -78
  74. package/dist/scheduler.d.ts +0 -1
  75. package/dist/search-engine.d.ts +0 -118
  76. package/dist/security.d.ts +0 -18
  77. package/dist/services.d.ts +0 -33
  78. package/dist/sms.d.ts +0 -1
  79. package/dist/ssg.d.ts +0 -2
  80. package/dist/stacks.d.ts +0 -196
  81. package/dist/storage.d.ts +0 -12
  82. package/dist/tables.d.ts +0 -52
  83. package/dist/team.d.ts +0 -8
  84. package/dist/ui.d.ts +0 -165
  85. package/dist/utils.d.ts +0 -33
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.59.10",
4
+ "version": "0.61.0",
5
5
  "description": "The Stacks framework types.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -46,42 +46,39 @@
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@stacksjs/validation": "latest",
49
- "neverthrow": "^6.1.0"
49
+ "neverthrow": "^6.2.1"
50
50
  },
51
51
  "dependencies": {
52
- "@mdit-vue/plugin-component": "^2.0.0",
53
- "@mdit-vue/plugin-frontmatter": "^2.0.0",
54
- "@mdit-vue/types": "^2.0.0",
52
+ "@mdit-vue/plugin-component": "^2.1.3",
53
+ "@mdit-vue/plugin-frontmatter": "^2.1.3",
54
+ "@mdit-vue/types": "^2.1.0",
55
55
  "@rollup/pluginutils": "^5.1.0",
56
56
  "@stacksjs/validation": "latest",
57
57
  "@types/aws4": "^1.11.6",
58
- "@types/bcryptjs": "^2.4.6",
59
- "@types/bun": "^1.0.8",
58
+ "@types/bun": "^1.1.2",
60
59
  "@types/crypto-js": "^4.2.2",
61
- "@types/eslint": "^8.56.5",
62
60
  "@types/fs-extra": "^11.0.4",
63
- "@types/markdown-it-link-attributes": "^3.0.4",
61
+ "@types/markdown-it-link-attributes": "^3.0.5",
64
62
  "@types/minimatch": "^5.1.2",
65
- "@types/node": "^20.11.24",
66
63
  "@types/nprogress": "^0.2.3",
67
- "@vinejs/vine": "^1.7.1",
64
+ "@vinejs/vine": "^2.0.0",
68
65
  "cac": "^6.7.14",
69
- "markdown-it": "^14.0.0",
70
- "meilisearch": "^0.37.0",
71
- "neverthrow": "^6.1.0",
66
+ "markdown-it": "^14.1.0",
67
+ "meilisearch": "^0.40.0",
68
+ "neverthrow": "^6.2.1",
72
69
  "ora": "^8.0.1",
73
- "unocss": "^0.58.5",
74
- "unplugin-auto-import": "^0.17.5",
75
- "unplugin-vue-components": "^0.26.0",
76
- "vite": "^5.1.5",
77
- "vite-plugin-inspect": "^0.8.3",
78
- "vite-plugin-pwa": "^0.19.2",
79
- "vite-ssg": "^0.23.6",
80
- "vitepress": "1.0.0-rc.44",
81
- "vue": "^3.4.21"
70
+ "unocss": "^0.60.3",
71
+ "unplugin-auto-import": "^0.17.6",
72
+ "unplugin-vue-components": "^0.27.0",
73
+ "vite": "^5.2.11",
74
+ "vite-plugin-inspect": "^0.8.4",
75
+ "vite-plugin-pwa": "^0.20.0",
76
+ "vite-ssg": "^0.23.7",
77
+ "vitepress": "1.2.2",
78
+ "vue": "^3.4.27"
82
79
  },
83
80
  "devDependencies": {
84
- "aws-cdk-lib": "^2.131.0",
85
- "typescript": "^5.3.3"
81
+ "aws-cdk-lib": "^2.142.1",
82
+ "typescript": "^5.4.5"
86
83
  }
87
84
  }
package/src/ai.ts CHANGED
@@ -1,4 +1,5 @@
1
- type AiModel = 'amazon.titan-embed-text-v1'
1
+ type AiModel =
2
+ | 'amazon.titan-embed-text-v1'
2
3
  | 'amazon.titan-text-lite-v1'
3
4
  | 'amazon.titan-text-express-v1'
4
5
  | 'amazon.titan-embed-image-v1'
package/src/api.ts CHANGED
@@ -27,6 +27,18 @@ export interface ApiOptions {
27
27
  */
28
28
  prefix: string
29
29
 
30
+ middleware: string[]
31
+
32
+ routes:
33
+ | {
34
+ index: boolean
35
+ show: boolean
36
+ store: boolean
37
+ update: boolean
38
+ destroy: boolean
39
+ }
40
+ | boolean
41
+
30
42
  /**
31
43
  * **API Prewarm**
32
44
  *
package/src/chat.ts CHANGED
@@ -1,4 +1,4 @@
1
- interface ChatOptions {}
1
+ type ChatOptions = {}
2
2
  export type { ChatOptions }
3
3
 
4
4
  export type ChatConfig = ChatOptions
package/src/cli.ts CHANGED
@@ -193,43 +193,90 @@ export type ActionOptions = {
193
193
  domains?: boolean
194
194
  count?: number
195
195
  dryRun?: boolean // used in buddy release
196
- } & CliOptions & DomainsOptions
197
-
198
- export type BuildOption = 'components' | 'vueComponents' | 'webComponents' | 'elements' | 'functions' | 'docs' | 'views' | 'stacks' | 'all' | 'buddy' | 'server'
196
+ } & CliOptions &
197
+ DomainsOptions
198
+
199
+ export type BuildOption =
200
+ | 'components'
201
+ | 'vueComponents'
202
+ | 'webComponents'
203
+ | 'elements'
204
+ | 'functions'
205
+ | 'docs'
206
+ | 'views'
207
+ | 'stacks'
208
+ | 'all'
209
+ | 'buddy'
210
+ | 'server'
199
211
  export type BuildOptions = {
200
- [key in BuildOption]: boolean;
212
+ [key in BuildOption]: boolean
201
213
  } & CliOptions
202
214
 
203
215
  export type AddOption = 'table' | 'calendar' | 'all'
204
216
  export type AddOptions = {
205
- [key in AddOption]?: boolean;
217
+ [key in AddOption]?: boolean
206
218
  } & CliOptions
207
219
 
208
220
  export type CreateStringOption = 'name'
209
- export type CreateBooleanOption = 'ui' | 'components' | 'web-components' | 'vue' | 'views' | 'functions' | 'api' | 'database'
221
+ export type CreateBooleanOption =
222
+ | 'ui'
223
+ | 'components'
224
+ | 'web-components'
225
+ | 'vue'
226
+ | 'views'
227
+ | 'functions'
228
+ | 'api'
229
+ | 'database'
210
230
  export type CreateOptions = {
211
231
  [key in CreateBooleanOption]: boolean
212
232
  } & {
213
233
  [key in CreateStringOption]: string
214
234
  } & CliOptions
215
235
 
216
- export type DevOption = 'components' | 'docs' | 'frontend' | 'api' | 'desktop' | 'all' | 'email' | 'system-tray' | 'interactive' | 'verbose'
236
+ export type DevOption =
237
+ | 'components'
238
+ | 'docs'
239
+ | 'frontend'
240
+ | 'api'
241
+ | 'desktop'
242
+ | 'all'
243
+ | 'email'
244
+ | 'system-tray'
245
+ | 'interactive'
246
+ | 'verbose'
217
247
  export type DevOptions = {
218
- [key in DevOption]: boolean;
248
+ [key in DevOption]: boolean
219
249
  } & CliOptions
220
250
 
221
- export type GeneratorOption = 'types' | 'entries' | 'webTypes' | 'customData' | 'ideHelpers' | 'componentMeta' | 'coreSymlink' | 'pkgxConfig'
251
+ export type GeneratorOption =
252
+ | 'types'
253
+ | 'entries'
254
+ | 'webTypes'
255
+ | 'customData'
256
+ | 'ideHelpers'
257
+ | 'componentMeta'
258
+ | 'coreSymlink'
259
+ | 'pkgxConfig'
222
260
  export type GeneratorOptions = {
223
- [key in GeneratorOption]?: boolean;
261
+ [key in GeneratorOption]?: boolean
224
262
  } & CliOptions
225
263
 
226
264
  export type LintOption = 'fix'
227
265
  export type LintOptions = {
228
- [key in LintOption]: boolean;
266
+ [key in LintOption]: boolean
229
267
  } & CliOptions
230
268
 
231
269
  export type MakeStringOption = 'name' | 'chat' | 'sms' | 'env'
232
- export type MakeBooleanOption = 'component' | 'page' | 'function' | 'language' | 'database' | 'migration' | 'model' | 'notification' | 'stack'
270
+ export type MakeBooleanOption =
271
+ | 'component'
272
+ | 'page'
273
+ | 'function'
274
+ | 'language'
275
+ | 'database'
276
+ | 'migration'
277
+ | 'model'
278
+ | 'notification'
279
+ | 'stack'
233
280
  export type MakeOptions = {
234
281
  [key in MakeBooleanOption]: boolean
235
282
  } & {
@@ -241,18 +288,18 @@ export type UpgradeBoolean = 'framework' | 'dependencies' | 'bun' | 'shell' | 'b
241
288
  export type UpgradeString = 'version'
242
289
 
243
290
  export type UpgradeOptions = {
244
- [key in UpgradeBoolean]: boolean;
291
+ [key in UpgradeBoolean]: boolean
245
292
  } & {
246
- [key in UpgradeString]: string;
293
+ [key in UpgradeString]: string
247
294
  } & CliOptions
248
295
 
249
296
  export type ExamplesString = 'version'
250
297
  export type ExamplesBoolean = 'components' | 'vue' | 'webComponents' | 'elements' | 'all' | 'force'
251
- export type ExamplesOption = ExamplesString & ExamplesBoolean | void
298
+ export type ExamplesOption = ExamplesString & ExamplesBoolean
252
299
  export type ExamplesOptions = {
253
- [key in ExamplesString]: string;
300
+ [key in ExamplesString]: string
254
301
  } & {
255
- [key in ExamplesBoolean]: boolean;
302
+ [key in ExamplesBoolean]: boolean
256
303
  } & CliOptions
257
304
  export type TestOptions = CliOptions & {
258
305
  showReport?: boolean
@@ -299,34 +346,36 @@ export type DomainsOptions = CliOptions & {
299
346
  contactType?: string
300
347
  }
301
348
 
302
- export interface CleanOptions extends CliOptions { }
349
+ export interface CleanOptions extends CliOptions {}
303
350
  export interface CloudCliOptions extends CliOptions {
304
351
  ssh?: boolean
305
352
  connect?: boolean
306
353
  jumpBox?: boolean
307
354
  }
308
- export interface CommitOptions extends CliOptions { }
309
- export interface KeyOptions extends CliOptions { }
355
+ export interface CommitOptions extends CliOptions {}
356
+ export interface KeyOptions extends CliOptions {}
310
357
  export interface FreshOptions extends CliOptions {
311
358
  dryRun?: boolean
312
359
  quiet?: boolean
313
360
  }
314
- export interface MigrateOptions extends CliOptions { }
315
- export interface InspireOptions extends CliOptions { }
316
- export interface InstallOptions extends CliOptions { }
361
+ export interface MigrateOptions extends CliOptions {
362
+ diff?: boolean
363
+ }
364
+ export interface InspireOptions extends CliOptions {}
365
+ export interface InstallOptions extends CliOptions {}
317
366
  export interface ReleaseOptions extends CliOptions {
318
367
  dryRun?: boolean
319
368
  }
320
369
  export interface ProjectsOptions extends CliOptions {
321
370
  list?: boolean
322
371
  }
323
- export interface PreinstallOptions extends CliOptions { }
324
- export interface PrepublishOptions extends CliOptions { }
372
+ export interface PreinstallOptions extends CliOptions {}
373
+ export interface PrepublishOptions extends CliOptions {}
325
374
  export interface PortsOptions extends CliOptions {
326
375
  ports?: Partial<Ports>
327
376
  }
328
- export interface TinkerOptions extends CliOptions { }
329
- export interface TypesOptions extends CliOptions { }
377
+ export interface TinkerOptions extends CliOptions {}
378
+ export interface TypesOptions extends CliOptions {}
330
379
 
331
380
  export type LibEntryType = 'vue-components' | 'web-components' | 'functions' | 'all'
332
381
 
package/src/cloud.ts CHANGED
@@ -1,32 +1,256 @@
1
- import type { ApiOptions } from './api'
1
+ import type { ApiConfig } from './api'
2
2
  import type { FirewallConfig } from './security'
3
3
 
4
4
  export type CountryCode =
5
- | 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AQ' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ'
6
- | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BV' | 'BW' | 'BY' | 'BZ'
7
- | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ'
8
- | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ'
9
- | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET'
10
- | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR'
11
- | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY'
12
- | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU'
13
- | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT'
14
- | 'JE' | 'JM' | 'JO' | 'JP'
15
- | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ'
16
- | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY'
17
- | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ'
18
- | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ'
5
+ | 'AD'
6
+ | 'AE'
7
+ | 'AF'
8
+ | 'AG'
9
+ | 'AI'
10
+ | 'AL'
11
+ | 'AM'
12
+ | 'AO'
13
+ | 'AQ'
14
+ | 'AR'
15
+ | 'AS'
16
+ | 'AT'
17
+ | 'AU'
18
+ | 'AW'
19
+ | 'AX'
20
+ | 'AZ'
21
+ | 'BA'
22
+ | 'BB'
23
+ | 'BD'
24
+ | 'BE'
25
+ | 'BF'
26
+ | 'BG'
27
+ | 'BH'
28
+ | 'BI'
29
+ | 'BJ'
30
+ | 'BL'
31
+ | 'BM'
32
+ | 'BN'
33
+ | 'BO'
34
+ | 'BQ'
35
+ | 'BR'
36
+ | 'BS'
37
+ | 'BT'
38
+ | 'BV'
39
+ | 'BW'
40
+ | 'BY'
41
+ | 'BZ'
42
+ | 'CA'
43
+ | 'CC'
44
+ | 'CD'
45
+ | 'CF'
46
+ | 'CG'
47
+ | 'CH'
48
+ | 'CI'
49
+ | 'CK'
50
+ | 'CL'
51
+ | 'CM'
52
+ | 'CN'
53
+ | 'CO'
54
+ | 'CR'
55
+ | 'CU'
56
+ | 'CV'
57
+ | 'CW'
58
+ | 'CX'
59
+ | 'CY'
60
+ | 'CZ'
61
+ | 'DE'
62
+ | 'DJ'
63
+ | 'DK'
64
+ | 'DM'
65
+ | 'DO'
66
+ | 'DZ'
67
+ | 'EC'
68
+ | 'EE'
69
+ | 'EG'
70
+ | 'EH'
71
+ | 'ER'
72
+ | 'ES'
73
+ | 'ET'
74
+ | 'FI'
75
+ | 'FJ'
76
+ | 'FK'
77
+ | 'FM'
78
+ | 'FO'
79
+ | 'FR'
80
+ | 'GA'
81
+ | 'GB'
82
+ | 'GD'
83
+ | 'GE'
84
+ | 'GF'
85
+ | 'GG'
86
+ | 'GH'
87
+ | 'GI'
88
+ | 'GL'
89
+ | 'GM'
90
+ | 'GN'
91
+ | 'GP'
92
+ | 'GQ'
93
+ | 'GR'
94
+ | 'GS'
95
+ | 'GT'
96
+ | 'GU'
97
+ | 'GW'
98
+ | 'GY'
99
+ | 'HK'
100
+ | 'HM'
101
+ | 'HN'
102
+ | 'HR'
103
+ | 'HT'
104
+ | 'HU'
105
+ | 'ID'
106
+ | 'IE'
107
+ | 'IL'
108
+ | 'IM'
109
+ | 'IN'
110
+ | 'IO'
111
+ | 'IQ'
112
+ | 'IR'
113
+ | 'IS'
114
+ | 'IT'
115
+ | 'JE'
116
+ | 'JM'
117
+ | 'JO'
118
+ | 'JP'
119
+ | 'KE'
120
+ | 'KG'
121
+ | 'KH'
122
+ | 'KI'
123
+ | 'KM'
124
+ | 'KN'
125
+ | 'KP'
126
+ | 'KR'
127
+ | 'KW'
128
+ | 'KY'
129
+ | 'KZ'
130
+ | 'LA'
131
+ | 'LB'
132
+ | 'LC'
133
+ | 'LI'
134
+ | 'LK'
135
+ | 'LR'
136
+ | 'LS'
137
+ | 'LT'
138
+ | 'LU'
139
+ | 'LV'
140
+ | 'LY'
141
+ | 'MA'
142
+ | 'MC'
143
+ | 'MD'
144
+ | 'ME'
145
+ | 'MF'
146
+ | 'MG'
147
+ | 'MH'
148
+ | 'MK'
149
+ | 'ML'
150
+ | 'MM'
151
+ | 'MN'
152
+ | 'MO'
153
+ | 'MP'
154
+ | 'MQ'
155
+ | 'MR'
156
+ | 'MS'
157
+ | 'MT'
158
+ | 'MU'
159
+ | 'MV'
160
+ | 'MW'
161
+ | 'MX'
162
+ | 'MY'
163
+ | 'MZ'
164
+ | 'NA'
165
+ | 'NC'
166
+ | 'NE'
167
+ | 'NF'
168
+ | 'NG'
169
+ | 'NI'
170
+ | 'NL'
171
+ | 'NO'
172
+ | 'NP'
173
+ | 'NR'
174
+ | 'NU'
175
+ | 'NZ'
19
176
  | 'OM'
20
- | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY'
177
+ | 'PA'
178
+ | 'PE'
179
+ | 'PF'
180
+ | 'PG'
181
+ | 'PH'
182
+ | 'PK'
183
+ | 'PL'
184
+ | 'PM'
185
+ | 'PN'
186
+ | 'PR'
187
+ | 'PS'
188
+ | 'PT'
189
+ | 'PW'
190
+ | 'PY'
21
191
  | 'QA'
22
- | 'RE' | 'RO' | 'RS' | 'RU' | 'RW'
23
- | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ'
24
- | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ'
25
- | 'UA' | 'UG' | 'UM' | 'US' | 'UY' | 'UZ'
26
- | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU'
27
- | 'WF' | 'WS'
28
- | 'YE' | 'YT'
29
- | 'ZA' | 'ZM' | 'ZW'
192
+ | 'RE'
193
+ | 'RO'
194
+ | 'RS'
195
+ | 'RU'
196
+ | 'RW'
197
+ | 'SA'
198
+ | 'SB'
199
+ | 'SC'
200
+ | 'SD'
201
+ | 'SE'
202
+ | 'SG'
203
+ | 'SH'
204
+ | 'SI'
205
+ | 'SJ'
206
+ | 'SK'
207
+ | 'SL'
208
+ | 'SM'
209
+ | 'SN'
210
+ | 'SO'
211
+ | 'SR'
212
+ | 'SS'
213
+ | 'ST'
214
+ | 'SV'
215
+ | 'SX'
216
+ | 'SY'
217
+ | 'SZ'
218
+ | 'TC'
219
+ | 'TD'
220
+ | 'TF'
221
+ | 'TG'
222
+ | 'TH'
223
+ | 'TJ'
224
+ | 'TK'
225
+ | 'TL'
226
+ | 'TM'
227
+ | 'TN'
228
+ | 'TO'
229
+ | 'TR'
230
+ | 'TT'
231
+ | 'TV'
232
+ | 'TW'
233
+ | 'TZ'
234
+ | 'UA'
235
+ | 'UG'
236
+ | 'UM'
237
+ | 'US'
238
+ | 'UY'
239
+ | 'UZ'
240
+ | 'VA'
241
+ | 'VC'
242
+ | 'VE'
243
+ | 'VG'
244
+ | 'VI'
245
+ | 'VN'
246
+ | 'VU'
247
+ | 'WF'
248
+ | 'WS'
249
+ | 'YE'
250
+ | 'YT'
251
+ | 'ZA'
252
+ | 'ZM'
253
+ | 'ZW'
30
254
 
31
255
  type Environment = 'development' | 'staging' | 'production'
32
256
 
@@ -35,7 +259,8 @@ export interface CloudOptions {
35
259
 
36
260
  driver: 'aws'
37
261
 
38
- // eslint-disable-next-line ts/ban-types
262
+ api: ApiConfig
263
+
39
264
  storage: {}
40
265
 
41
266
  /**
@@ -96,8 +321,6 @@ export interface CloudOptions {
96
321
  }
97
322
  }
98
323
 
99
- api: ApiOptions
100
-
101
324
  ai: boolean
102
325
  cli: boolean
103
326
  docs: boolean
package/src/database.ts CHANGED
@@ -1,12 +1,6 @@
1
1
  export interface DatabaseOptions {
2
2
  default: string
3
3
 
4
- /**
5
- * The name of the database to use.
6
- * @default stacks
7
- */
8
- name: string
9
-
10
4
  connections: {
11
5
  mysql?: {
12
6
  url?: string
@@ -24,11 +18,27 @@ export interface DatabaseOptions {
24
18
  prefix?: string
25
19
  }
26
20
 
27
- planetscale?: object
28
- postgres?: object
21
+ dynamodb?: {
22
+ key?: string
23
+ secret?: string
24
+ region?: string
25
+ prefix?: string
26
+ endpoint?: string
27
+ }
28
+
29
+ postgres?: {
30
+ url?: string
31
+ host?: string
32
+ port?: number
33
+ name?: string
34
+ username?: string
35
+ password?: string
36
+ prefix?: string
37
+ }
29
38
  }
30
39
 
31
40
  migrations: string
41
+ migrationLocks: string
32
42
  }
33
43
 
34
44
  export type DatabaseConfig = Partial<DatabaseOptions>